gallery-dl-studio

LOW
maintainer AndrewImm 0 votes scanned 2026-09-17 00:27:14.276658
View on AUR
Why flagged

The npx commands (vite, electron-builder) are used to build the project from its own source code, which is downloaded from the project's official GitHub repository; this is normal for building Electron apps and does not execute arbitrary remote code.

Triggered rules

Low AI review downgraded a static finding llm_review

The static rules flagged this MEDIUM, but an AI model (qwen/qwen3-235b-a22b-07-25) reviewed the full PKGBUILD and judged it LOW (confidence 95%): The npx commands (vite, electron-builder) are used to build the project from its own source code, which is downloaded from the project's official GitHub repository; this is normal for building Electron apps and does not execute arbitrary remote code.

1 higher static finding superseded - not the current verdict (shown for transparency)
Medium npx/bunx/deno executes a remote package remote_code_tool

`npx`/`bunx`/`pnpm dlx`/`deno run <url>` downloads AND runs a remote package at build time — the moral equivalent of piping a download into a shell. Severity downgraded: Node.js consumer context.

  • PKGBUILD:34 npx vite build
  • PKGBUILD:39 npx electron-builder --linux dir --x64

PKGBUILD

2 offending line(s) highlighted
1# Maintainer: AndrewImm-OP <bessmertnyja89@gmail.com>
2pkgname=gallery-dl-studio
3pkgver=9.93.0
4pkgrel=1
5pkgdesc="Beautiful GUI for gallery-dl - download images and media from 180+ sites"
6arch=('x86_64')
7url="https://github.com/AndrewImm-OP/gallery-dl-studio"
8license=('MIT')
9depends=('gtk3' 'nss' 'libxss' 'libnotify' 'alsa-lib' 'libsecret')
10optdepends=(
11 'gallery-dl: image gallery downloader backend'
12 'yt-dlp: video downloader backend'
13)
14makedepends=('nodejs>=18' 'npm')
15options=(!strip !debug)
16source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz"
17 "$pkgname.desktop"
18 "$pkgname.sh")
19sha256sums=('1de794131c1347158d97c3f81bdb17db6df59e7353164f303ca980b2aa9a7393'
20 'SKIP'
21 'SKIP')
22
23prepare() {
24 cd "$pkgname-$pkgver"
25 # Use a project-local npm cache and disable network during pacman
26 # post-install (electron postinstall sometimes wants to download
27 # binaries; we keep it offline-friendly by using cached deps).
28 npm install --no-audit --no-fund
29}
30
31build() {
32 cd "$pkgname-$pkgver"
33 # Build the renderer bundle and the electron main/preload.
34 npx vite build
35
36 # Package the unpacked Linux app via electron-builder. We only need
37 # `dir` target — actual install layout is provided by this PKGBUILD,
38 # not by a .deb/.AppImage.
39 npx electron-builder --linux dir --x64
40}
41
42package() {
43 cd "$pkgname-$pkgver"
44
45 # 1. Application files -> /opt/gallery-dl-studio
46 install -dm755 "$pkgdir/opt/$pkgname"
47 cp -r release/linux-unpacked/. "$pkgdir/opt/$pkgname/"
48
49 # The chrome-sandbox helper must be SUID root for non-Chrome users
50 # who don't have user namespaces enabled.
51 if [ -f "$pkgdir/opt/$pkgname/chrome-sandbox" ]; then
52 chmod 4755 "$pkgdir/opt/$pkgname/chrome-sandbox"
53 fi
54
55 # 2. Launcher in /usr/bin
56 install -Dm755 "$srcdir/$pkgname.sh" "$pkgdir/usr/bin/$pkgname"
57
58 # 3. Desktop entry
59 install -Dm644 "$srcdir/$pkgname.desktop" \
60 "$pkgdir/usr/share/applications/$pkgname.desktop"
61
62 # 4. Icons (multiple sizes for hicolor theme)
63 for size in 16 32 48 64 128 256 512; do
64 install -dm755 "$pkgdir/usr/share/icons/hicolor/${size}x${size}/apps"
65 done
66 # The single-source 512px PNG is enough; gtk-update-icon-cache will use it.
67 install -Dm644 "resources/icon.png" \
68 "$pkgdir/usr/share/icons/hicolor/512x512/apps/$pkgname.png"
69
70 # 5. License (best-effort)
71 if [ -f LICENSE ]; then
72 install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
73 fi
74}
75

Scan history

Scanned at (UTC)SeverityRules
2026-09-17 00:27:14 Low 2
2026-09-16 00:03:17 Low 2
2026-09-15 00:25:31 Low 2
2026-09-14 00:27:57 Low 2
2026-09-13 00:19:54 Low 2
2026-09-12 00:25:17 Low 2
2026-09-11 00:19:22 Low 2
2026-09-10 00:22:44 Low 2
2026-09-09 00:04:09 Low 2
2026-09-08 00:18:08 Low 2
2026-09-07 00:30:15 Low 2
2026-09-06 00:17:06 Low 2
2026-09-05 00:16:27 Low 2
2026-09-04 00:03:13 Low 2
2026-09-03 00:15:47 Low 2
2026-09-02 00:02:31 Low 2
2026-09-01 00:11:19 Low 2
2026-08-31 00:19:57 Low 2
2026-08-30 00:04:14 Low 2
2026-08-29 00:29:17 Low 2

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion