beyondallreason

maintainer tiziodcaio · 1 votes · scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged The npx command runs electron-builder on the locally checked-out spring-launcher project, which is part of the official Beyond All Reason codebase; this is a standard build step, not execution of a remote untrusted package.

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 command runs electron-builder on the locally checked-out spring-launcher project, which is part of the official Beyond All Reason codebase; this is a standard build step, not execution of a remote untrusted package.

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:62 npx electron-builder -- -c.electronDist=$electronDist -c.electronVersion=$electronVer --linux --dir

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: dbas.so <d dot bass05 at proton dot me>
2pkgname=beyondallreason
3electronver=42
4pkgver=1.2988.0
5electronver=42
6pkgrel=4
7pkgdesc="The latest release of BYAR-Chobby, the launcher for Beyond All Reason - An open source RTS game built on top of the Spring RTS Engine"
8arch=(x86_64)
9url="https://beyondallreason.info"
10license=('GPL-2.0-or-later' 'CC-BY-SA-4.0' 'CC-BY-NC-ND-4.0')
11depends=(electron${electronver} gtk3 sdl2 zlib bash)
12makedepends=(nodejs git jq npm)
13conflicts=(beyondallreason-appimage)
14source=("git+https://github.com/beyond-all-reason/BYAR-Chobby.git#tag=v$pkgver"
15 "git+https://github.com/beyond-all-reason/spring-launcher.git#commit=2c0a6e17b50ab04ea592c53963c571e5ccb071ba"
16 "run.sh" "beyondallreason.desktop")
17
18b2sums=('e7bf39475b03da7bb4611b6ac716dbfbcf514afdcad0349ba8e17f456627087bb7bfe8d67f5eeb31eb039bbf79bc74d20bcf170e7b49b6a41a1889bebfe7175a'
19 '8bf68c86c60a72c06c3bb042dc21a4a66bb389a912579998587df8e5213fa2eef2172a506d91bfaaf86b57d8d37b3cec85825c1581ec14d4bc7b55ac2ca44969'
20 'f60a49716afae0ff71e76e497852ae6849407dcbf302a0098c914b1b75a672043beda334e2ac311a11237d6907ffa51ab035607786ad2adfcdc12cf58c78b21b'
21 '29bad1442d12fe970722e2d4ab6f4daea47b8d3014b1d4dc11eab5b790329c434f7b109a21a396138313a10cd36821f9c711515ed4666466c71e7f0b90ff65c5')
22
23prepare() {
24 cd "BYAR-Chobby"
25
26 mkdir -p $srcdir/app/chobby $srcdir/src
27
28 export PACKAGE_VERSION=$(echo "1.$(git rev-list --count HEAD).0")
29 export GITHUB_REPOSITORY="beyond-all-reason/BYAR-Chobby"
30
31 cp -r dist_cfg $srcdir/app/chobby
32 cp -r build $srcdir/app/chobby
33
34 cd "../spring-launcher"
35
36 cp -r $srcdir/app/chobby/dist_cfg/* $srcdir/src/
37 for dir in bin files build; do
38 mkdir -p $dir
39 if [ -d $srcdir/src/$dir/ ]; then
40 mv $srcdir/src/$dir/* $dir/
41 rm -rf $srcdir/src/$dir
42 fi
43 done
44
45 echo "Making build for version: $PACKAGE_VERSION"
46 node $srcdir/app/chobby/build/make_package_json.js package.json $srcdir/app/chobby/dist_cfg/config.json $GITHUB_REPOSITORY $PACKAGE_VERSION
47
48 jq '.build.linux.target="dir"' <<<$(<package.json) > package.json
49 cat package.json
50
51 npm ci --ignore-scripts
52
53 sed -i 's|\${process\.resourcesPath}/\.\.||g' src/spring_platform.js
54}
55
56build() {
57 cd "spring-launcher"
58
59 electronDist="/usr/lib/electron${electronver}"
60 electronVersion=$(<"${electronDist}/version")
61
62 npx electron-builder -- -c.electronDist=$electronDist -c.electronVersion=$electronVer --linux --dir
63}
64
65package() {
66 cd "./spring-launcher"
67
68 mkdir -p $pkgdir/usr/{bin,share/beyondallreason}
69
70 cp -a dist/linux*unpacked/resources/** $pkgdir/usr/share/beyondallreason
71
72 rm -r $pkgdir/usr/share/beyondallreason/app.asar.unpacked/node_modules/7zip-bin/linux/arm*
73
74 install -Dm644 $srcdir/app/chobby/dist_cfg/config.json $pkgdir/usr/share/beyondallreason
75
76 install -Dm755 $srcdir/run.sh $pkgdir/usr/bin/beyondallreason
77 install -Dm755 dist/linux*unpacked/bin/pr-downloader $pkgdir/usr/bin/
78
79 install -Dm644 $srcdir/app/chobby/dist_cfg/build/icon.png $pkgdir/usr/share/icons/hicolor/128x128/apps/beyondallreason.png
80 install -Dm644 $srcdir/beyondallreason.desktop $pkgdir/usr/share/applications/beyondallreason.desktop
81}
82

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