gb-studio-git
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
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)
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# Ex-Maintainer: Valentijn V. <neko at catgirlsin dot space>
# Maintainer: Riley T. <rt@hellscaped.dev>
pkgname=gb-studio-git # '-bzr', '-git', '-hg' or '-svn'
_pkgname=gb-studio
pkgver=4.0.0.r3.g11278cb3a
pkgrel=1
pkgdesc="Visual retro game maker"
arch=('x86_64')
url="https://github.com/chrismaltby/gb-studio"
license=('MIT')
groups=()
depends=('gtk3' 'libnotify' 'nss' 'libxss' 'libxtst' 'xdg-utils' 'util-linux' 'trash-cli')
makedepends=('git' 'yarn' 'npm' 'nvm' 'nodejs')
provides=("gb-studio")
conflicts=("gb-studio")
replaces=()
backup=()
options=()
install=
source=('git+https://github.com/chrismaltby/gb-studio.git')
noextract=()
md5sums=('SKIP')
_ensure_local_nvm() {
# let's be sure we are starting clean
which nvm >/dev/null 2>&1 && nvm deactivate && nvm unload
export NVM_DIR="${srcdir}/.nvm"
# The init script returns 3 if version specified
# in ./.nvrc is not (yet) installed in $NVM_DIR
# but nvm itself still gets loaded ok
source /usr/share/nvm/init-nvm.sh || [[ $? != 1 ]]
}
pkgver() {
cd "$srcdir/${_pkgname}"
printf "%s" "$(git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g')"
}
build() {
cd "${_pkgname}"
msg2 "Setting up NVM to switch NodeJS version..."
_ensure_local_nvm
nvm install
msg2 "Installing yarn packages..."
yarn
msg2 "Hacky fix until they merge my PR for the linux target..."
sed 's/\"win32\"\]/\"win32\"\, \"linux\"]/' forge.config.js > temporaryhackplsignoreuntilmyprismerged
mv temporaryhackplsignoreuntilmyprismerged forge.config.js
msg2 "Building zip file..."
npx electron-forge make --targets @electron-forge/maker-zip
cd out/make/zip/linux/x64
msg2 "Extracting zip file..."
buildzip=$(ls *.zip)
bsdtar -xf "${buildzip}"
}
package() {
cd "${_pkgname}/out/make/zip/linux/x64/GB Studio-linux-x64"
mkdir -p "${pkgdir}/usr/lib/gb-studio"
mkdir "${pkgdir}/usr/bin"
cp -r ./* "${pkgdir}/usr/lib/gb-studio"
ln -s /usr/lib/gb-studio/gb-studio "${pkgdir}/usr/bin/gb-studio"
install -D -m644 ./LICENSES.chromium.html "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -D -m644 ./LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/COPYRIGHT"
}
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 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 |