windows95-git

maintainer zxp19821005 · 0 votes · scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged The 'yarn add -D @electron-forge/plugin-local-electron' call installs a package from the npm registry that is not pinned in the lockfile at that point. However, @electron-forge/plugin-local-electron is a well-known, official package from the electron-forge monorepo (published by the Electron Forge team on the official npm registry), not from a personal or unofficial host. Its purpose here is legitimate: it allows building with a system-installed Electron binary rather than downloading one. The risk is the same as any other undeclared npm dependency fetched at build time — a registry compromise or typosquat — but this is a recognized, maintained official package. The pattern is sloppy (should be in package.json/lockfile) but not a genuine supply-chain red flag beyond normal npm usage. Overall this is low severity: non-standard packaging practice but not a real security concern.

Triggered rules

LOW AI review downgraded a static finding llm_review

The static rules flagged this MEDIUM, but an AI model (anthropic/claude-4.6-sonnet-20260217) reviewed the full PKGBUILD and judged it LOW (confidence 72%): The 'yarn add -D @electron-forge/plugin-local-electron' call installs a package from the npm registry that is not pinned in the lockfile at that point. However, @electron-forge/plugin-local-electron is a well-known, official package from the electron-forge monorepo (published by the Electron Forge team on the official npm registry), not from a personal or unofficial host. Its purpose here is legitimate: it allows building with a system-installed Electron binary rather than downloading one. The risk is the same as any other undeclared npm dependency fetched at build time — a registry compromise or typosquat — but this is a recognized, maintained official package. The pattern is sloppy (should be in package.json/lockfile) but not a genuine supply-chain red flag beyond normal npm usage. Overall this is low severity: non-standard packaging practice but not a real security concern.

1 higher static finding superseded - not the current verdict (shown for transparency)
MEDIUM npm/yarn/pnpm install of an undeclared external package npm_install_external

Runs `npm/yarn/pnpm install <package>` for a package not in source=(), pulling unpinned, unreviewed code at build time. Severity downgraded: the package declares/looks like a Node.js consumer, where build-time installs are expected.

  • PKGBUILD:102 NODE_ENV=development yarn add -D @electron-forge/plugin-local-electron

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
2pkgname=windows95-git
3_pkgname='Windows 95'
4pkgver=5.0.0.r0.g35c82c5
5_electronversion=41
6_nodeversion=22
7pkgrel=1
8pkgdesc="💩🚀 Windows 95 in Electron. Runs on macOS, Linux, and Windows.(Use system-wide electron)"
9arch=('any')
10url="https://github.com/felixrieseberg/windows95"
11license=('LicenseRef-custom')
12provides=("${pkgname%-git}=${pkgver%.r*}")
13conflicts=("${pkgname%-git}")
14depends=(
15 "electron${_electronversion}"
16 'nodejs'
17)
18makedepends=(
19 'npm'
20 'nvm'
21 'git'
22 'curl'
23 'gendesk'
24 'yarn'
25 'libicns'
26 'jq'
27)
28options=(
29 '!emptydirs'
30)
31source=(
32 "${pkgname//-/.}::git+${url}.git"
33 "${pkgname//-/.}.rpm::${url}/releases/download/v${pkgver%.r*}/${pkgname%-git}-${pkgver%.r*}-1.x86_64.rpm"
34 "${pkgname%-git}.sh"
35)
36sha256sums=('SKIP'
37 '9385f8f72be41b975c4e6a5f3c25ac5dc8bf4bf71ec75dff71aa91836767601f'
38 '31ad33b633744f5361abd964be306cea53ae1050e760c787115f7eca60045ae6')
39pkgver() {
40 cd "${srcdir}/${pkgname//-/.}"
41 set -o pipefail
42 git describe --long --tags --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/v//g' ||
43 printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
44}
45_ensure_local_nvm() {
46 local NVM_DIR="${srcdir}/.nvm"
47 source /usr/share/nvm/init-nvm.sh || [[ $? != 1 ]]
48 nvm install "${_nodeversion}"
49 nvm use "${_nodeversion}"
50}
51_get_electron_version() {
52 _elec_ver=$(jq -r '.devDependencies["electron"] // .dependencies["electron"]' "${srcdir}/${pkgname//-/.}/package.json" | tr -d '^')
53 _main_ver=$(echo "${_elec_ver}" | cut -d. -f1)
54 echo -e "The electron version is: \033[1;31m${_main_ver}\033[0m"
55}
56prepare() {
57 cd "${srcdir}/${pkgname//-/.}"
58 _get_electron_version
59 sed -i -e "
60 s/@electronversion@/${_electronversion}/g
61 s/@appname@/${pkgname%-git}/g
62 s/@runname@/app/g
63 s/@cfgdirname@/${pkgname%-git}/g
64 s/@options@//g
65 " "${srcdir}/${pkgname%-git}.sh"
66 gendesk -q -f -n \
67 --pkgname="${pkgname%-git}" \
68 --pkgdesc="${pkgdesc}" \
69 --categories="Utility" \
70 --name="${_pkgname}" \
71 --exec="${pkgname%-git} %U"
72 install -Dm755 -d "${srcdir}/${pkgname//-/.}/images"
73 cp "${srcdir}/usr/lib/${pkgname%-git}/resources/app/images/"* "${srcdir}/${pkgname//-/.}/images"
74 export SYSTEM_ELECTRON_VERSION="$(electron${_electronversion} -v | sed 's/v//g')"
75 local HOME="${srcdir}/.electron-gyp"
76 mkdir -p "${srcdir}/.electron-gyp"
77 if [[ "$(curl -s ipinfo.io/country)" == *"CN"* ]]; then
78 {
79 export YARN_REGISTRY="https://registry.npmmirror.com"
80 export ELECTRON_MIRROR="https://registry.npmmirror.com/-/binary/electron/"
81 export ELECTRON_BUILDER_BINARIES_MIRROR="https://registry.npmmirror.com/-/binary/electron-builder-binaries/"
82 export YARN_CACHE_FOLDER="${srcdir}/.yarn/cache"
83 export YARN_PLUGINS_FOLDER="${srcdir}/.yarn/plugins"
84 export YARN_GLOBAL_FOLDER="${srcdir}/.yarn/global"
85 export YARN_USE_HARDLINKS=true
86 # export YARN_BUILD_FROM_SOURCE=true
87 export YARN_LINK_WORKSPACE_PACKAGES=true
88 export YARN_FETCH_RETRIES=3
89 export YARN_FETCH_RETRY_TIMEOUT=10000
90 export YARN_NETWORK_CONCURRENCY=32
91 }
92 find ./ -type f -name "yarn.lock" -exec sed -i "s/registry.yarnpkg.com/registry.npmmirror.com/g" {} +
93 fi
94 _ensure_local_nvm
95 icns2png -x assets/icon.icns -o assets
96 sed -i "s/\"electron\": \"[^\"]*\"/\"electron\": \"${SYSTEM_ELECTRON_VERSION}\"/g" package.json
97 sed -i -e '
98 4i\const os = require("os");
99 s|`C:\\\\Users\\\\FelixRieseberg\\\\AppData\\\\Local\\\\Temp`|os.tmpdir();|g
100 ' forge.config.js
101 NODE_ENV=development yarn install --cache-folder "${srcdir}/.yarn_cache"
102 NODE_ENV=development yarn add -D @electron-forge/plugin-local-electron
103}
104build() {
105 cd "${srcdir}/${pkgname//-/.}"
106 export ELECTRON_SKIP_BINARY_DOWNLOAD=1
107 _ensure_local_nvm
108 local electronDist="/usr/lib/electron${_electronversion}"
109 sed -i '/makers: \[/i\
110 plugins: [\
111 {\
112 name: "@electron-forge/plugin-local-electron",\
113 config: {\
114 electronPath: "'"${electronDist}"'",\
115 },\
116 },\
117 ],' forge.config.*
118 NODE_ENV=production yarn run package
119}
120package() {
121 install -Dm755 "${srcdir}/${pkgname%-git}.sh" "${pkgdir}/usr/bin/${pkgname%-git}"
122 install -Dm755 -d "${pkgdir}/usr/lib/${pkgname%-git}"
123 cp -a "${srcdir}/${pkgname//-/.}/out/${pkgname%-git}-linux-"*"/resources/". "${pkgdir}/usr/lib/${pkgname%-git}/"
124 _icon_sizes=(256x256 512x512 1024x1024)
125 for _icons in "${_icon_sizes[@]}";do
126 install -Dm644 "${srcdir}/${pkgname//-/.}/assets/icon_${_icons}x32.png" \
127 "${pkgdir}/usr/share/icons/hicolor/${_icons}/apps/${pkgname%-git}.png"
128 done
129 install -Dm644 "${srcdir}/${pkgname%-git}.desktop" -t "${pkgdir}/usr/share/applications"
130 install -Dm644 "${srcdir}/${pkgname//-/.}/LICENSE.md" -t "${pkgdir}/usr/share/licenses/${pkgname}"
131}
132

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