gallery-dl-studio

maintainer AndrewImm · 0 votes · scanned 2026-08-03 00:08:14.047287
LOW
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-08-03 00:08:14 LOW 2
2026-08-02 00:16:08 LOW 2
2026-08-01 00:11:18 LOW 2
2026-07-31 00:14:10 LOW 2
2026-07-30 00:17:23 LOW 2
2026-07-29 00:25:53 LOW 2
2026-07-28 00:07:28 LOW 2
2026-07-27 00:24:32 LOW 2
2026-07-26 00:07:32 LOW 2
2026-07-25 00:13:44 LOW 2
2026-07-24 00:02:28 LOW 2
2026-07-23 00:14:47 LOW 2
2026-07-22 00:29:32 LOW 2
2026-07-21 00:24:15 LOW 2
2026-07-20 00:19:49 LOW 2
2026-07-19 00:17:08 LOW 2
2026-07-18 00:14:48 LOW 2
2026-07-17 00:06:16 LOW 2
2026-07-16 00:05:41 LOW 2
2026-07-15 00:09:25 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