gb-studio-git

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

The npx command is used to run electron-forge make, which is a standard build tool for Electron applications and part of the project's legitimate build process from its own source; the source is from a trusted upstream GitHub repository, and the executed code is not obfuscated or from an untrusted remote location.

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 90%): The npx command is used to run electron-forge make, which is a standard build tool for Electron applications and part of the project's legitimate build process from its own source; the source is from a trusted upstream GitHub repository, and the executed code is not obfuscated or from an untrusted remote location.

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:51 npx electron-forge make --targets @electron-forge/maker-zip

PKGBUILD

1 offending line(s) highlighted
1# Ex-Maintainer: Valentijn V. <neko at catgirlsin dot space>
2# Maintainer: Riley T. <rt@hellscaped.dev>
3pkgname=gb-studio-git # '-bzr', '-git', '-hg' or '-svn'
4_pkgname=gb-studio
5pkgver=4.0.0.r3.g11278cb3a
6pkgrel=1
7pkgdesc="Visual retro game maker"
8arch=('x86_64')
9url="https://github.com/chrismaltby/gb-studio"
10license=('MIT')
11groups=()
12depends=('gtk3' 'libnotify' 'nss' 'libxss' 'libxtst' 'xdg-utils' 'util-linux' 'trash-cli')
13makedepends=('git' 'yarn' 'npm' 'nvm' 'nodejs')
14provides=("gb-studio")
15conflicts=("gb-studio")
16replaces=()
17backup=()
18options=()
19install=
20source=('git+https://github.com/chrismaltby/gb-studio.git')
21noextract=()
22md5sums=('SKIP')
23
24_ensure_local_nvm() {
25 # let's be sure we are starting clean
26 which nvm >/dev/null 2>&1 && nvm deactivate && nvm unload
27 export NVM_DIR="${srcdir}/.nvm"
28
29 # The init script returns 3 if version specified
30 # in ./.nvrc is not (yet) installed in $NVM_DIR
31 # but nvm itself still gets loaded ok
32 source /usr/share/nvm/init-nvm.sh || [[ $? != 1 ]]
33}
34
35pkgver() {
36 cd "$srcdir/${_pkgname}"
37 printf "%s" "$(git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g')"
38}
39
40build() {
41 cd "${_pkgname}"
42 msg2 "Setting up NVM to switch NodeJS version..."
43 _ensure_local_nvm
44 nvm install
45 msg2 "Installing yarn packages..."
46 yarn
47 msg2 "Hacky fix until they merge my PR for the linux target..."
48 sed 's/\"win32\"\]/\"win32\"\, \"linux\"]/' forge.config.js > temporaryhackplsignoreuntilmyprismerged
49 mv temporaryhackplsignoreuntilmyprismerged forge.config.js
50 msg2 "Building zip file..."
51 npx electron-forge make --targets @electron-forge/maker-zip
52 cd out/make/zip/linux/x64
53 msg2 "Extracting zip file..."
54 buildzip=$(ls *.zip)
55 bsdtar -xf "${buildzip}"
56}
57
58package() {
59 cd "${_pkgname}/out/make/zip/linux/x64/GB Studio-linux-x64"
60 mkdir -p "${pkgdir}/usr/lib/gb-studio"
61 mkdir "${pkgdir}/usr/bin"
62 cp -r ./* "${pkgdir}/usr/lib/gb-studio"
63 ln -s /usr/lib/gb-studio/gb-studio "${pkgdir}/usr/bin/gb-studio"
64
65 install -D -m644 ./LICENSES.chromium.html "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
66 install -D -m644 ./LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/COPYRIGHT"
67}
68

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