beyondallreason-git
maintainer tiziodcaio
· 1 votes
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged
The npx electron-builder call is part of a standard build process for an Electron-based application from its official source repositories; the package builds from trusted project-owned git sources 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 electron-builder call is part of a standard build process for an Electron-based application from its official source repositories; the package builds from trusted project-owned git sources 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:72
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>
2
pkgname=beyondallreason-git
3
electronver=42
4
pkgver=r4555.30fda84
5
electronver=42
6
pkgrel=1
7
pkgdesc="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"
8
arch=(x86_64)
9
url="https://beyondallreason.info"
10
license=('GPL-2.0-or-later' 'CC-BY-SA-4.0' 'CC-BY-NC-ND-4.0')
11
depends=(electron${electronver} gtk3 sdl2 zlib bash)
12
makedepends=(nodejs git jq npm)
13
conflicts=(beyondallreason-appimage)
14
source=("git+https://github.com/beyond-all-reason/BYAR-Chobby.git"
15
"git+https://github.com/beyond-all-reason/spring-launcher.git"
16
"run.sh" "beyondallreason.desktop")
17
18
provides=(beyondallreason)
19
conflicts=(beyondallreason)
20
21
b2sums=('SKIP'
22
'SKIP'
23
'f60a49716afae0ff71e76e497852ae6849407dcbf302a0098c914b1b75a672043beda334e2ac311a11237d6907ffa51ab035607786ad2adfcdc12cf58c78b21b'
24
'29bad1442d12fe970722e2d4ab6f4daea47b8d3014b1d4dc11eab5b790329c434f7b109a21a396138313a10cd36821f9c711515ed4666466c71e7f0b90ff65c5')
25
26
27
pkgver() {
28
cd "BYAR-Chobby"
29
30
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
31
}
32
33
prepare() {
34
cd "BYAR-Chobby"
35
36
mkdir -p $srcdir/app/chobby $srcdir/src
37
38
export PACKAGE_VERSION=$(echo "1.$(git rev-list --count HEAD).0")
39
export GITHUB_REPOSITORY="beyond-all-reason/BYAR-Chobby"
40
41
cp -r dist_cfg $srcdir/app/chobby
42
cp -r build $srcdir/app/chobby
43
44
cd "../spring-launcher"
45
46
cp -r $srcdir/app/chobby/dist_cfg/* $srcdir/src/
47
for dir in bin files build; do
48
mkdir -p $dir
49
if [ -d $srcdir/src/$dir/ ]; then
50
mv $srcdir/src/$dir/* $dir/
51
rm -rf $srcdir/src/$dir
52
fi
53
done
54
55
echo "Making build for version: $PACKAGE_VERSION"
56
node $srcdir/app/chobby/build/make_package_json.js package.json $srcdir/app/chobby/dist_cfg/config.json $GITHUB_REPOSITORY $PACKAGE_VERSION
57
58
jq '.build.linux.target="dir"' <<<$(<package.json) > package.json
59
cat package.json
60
61
npm ci --ignore-scripts
62
63
sed -i 's|\${process\.resourcesPath}/\.\.||g' src/spring_platform.js
64
}
65
66
build() {
67
cd "spring-launcher"
68
69
electronDist="/usr/lib/electron${electronver}"
70
electronVersion=$(<"${electronDist}/version")
71
72
npx electron-builder -- -c.electronDist=$electronDist -c.electronVersion=$electronVer --linux --dir
73
}
74
75
package() {
76
cd "./spring-launcher"
77
78
mkdir -p $pkgdir/usr/{bin,share/beyondallreason}
79
80
cp -a dist/linux*unpacked/resources/** $pkgdir/usr/share/beyondallreason
81
82
rm -r $pkgdir/usr/share/beyondallreason/app.asar.unpacked/node_modules/7zip-bin/linux/arm*
83
84
install -Dm644 $srcdir/app/chobby/dist_cfg/config.json $pkgdir/usr/share/beyondallreason
85
86
install -Dm755 $srcdir/run.sh $pkgdir/usr/bin/beyondallreason
87
install -Dm755 dist/linux*unpacked/bin/pr-downloader $pkgdir/usr/bin/
88
89
install -Dm644 $srcdir/app/chobby/dist_cfg/build/icon.png $pkgdir/usr/share/icons/hicolor/128x128/apps/beyondallreason.png
90
install -Dm644 $srcdir/beyondallreason.desktop $pkgdir/usr/share/applications/beyondallreason.desktop
91
}
92
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 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 |