woocommerce-pos
maintainer orphaned
· 0 votes
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged
The npx command runs 'electron-forge package' which is a standard build tool for packaging Electron apps, and all sources are from legitimate project repositories; the command 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 command runs 'electron-forge package' which is a standard build tool for packaging Electron apps, and all sources are from legitimate project repositories; the command 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:76
npx electron-forge package
PKGBUILD
1 offending line(s) highlighted
1
# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
2
pkgname=woocommerce-pos
3
_pkgname=WooCommerce-POS
4
pkgver=1.6.2
5
_electronversion=30
6
_nodeversion=20
7
pkgrel=1
8
pkgdesc="Electron Desktop App for WooCommerce POS"
9
arch=('x86_64')
10
url="https://github.com/wcpos/electron"
11
license=('MIT')
12
conflicts=("${pkgname}")
13
depends=(
14
"electron${_electronversion}"
15
)
16
makedepends=(
17
'npm'
18
'nvm'
19
'gendesk'
20
'yarn'
21
'gcc'
22
'cmake'
23
'curl'
24
)
25
source=(
26
"${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz"
27
"expo.git::git+https://github.com/wcpos/managed-expo.git"
28
"${pkgname}.sh"
29
)
30
sha256sums=('8f25dc488ca9fd5f840724550e0af47a97687c092aca48821524f91d387d9ba2'
31
'SKIP'
32
'2b2e8aeed33fd71c521e49fd54fb2fa81218d16aef8bccb88d77909055ab8051')
33
_ensure_local_nvm() {
34
export NVM_DIR="${srcdir}/.nvm"
35
source /usr/share/nvm/init-nvm.sh || [[ $? != 1 ]]
36
nvm install "${_nodeversion}"
37
nvm use "${_nodeversion}"
38
}
39
build() {
40
sed -e "s|@electronversion@|${_electronversion}|" \
41
-e "s|@appname@|${pkgname}|g" \
42
-e "s|@runname@|app.asar|g" \
43
-e "s|@cfgdirname@|${_pkgname//-/ }|g" \
44
-e "s|@options@|env ELECTRON_OZONE_PLATFORM_HINT=auto|g" \
45
-i "${srcdir}/${pkgname}.sh"
46
_ensure_local_nvm
47
gendesk -f -n -q --pkgname="${pkgname}" --pkgdesc="${pkgdesc}" --categories="Development" --name="${_pkgname}" --exec="${pkgname} %U"
48
export npm_config_build_from_source=true
49
export ELECTRON_SKIP_BINARY_DOWNLOAD=1
50
#export SYSTEM_ELECTRON_VERSION="$(electron${_electronversion} -v | sed 's/v//g')"
51
#export npm_config_target="${SYSTEM_ELECTRON_VERSION}"
52
#export ELECTRONVERSION="${_electronversion}"
53
HOME="${srcdir}/.electron-gyp"
54
mkdir -p "${srcdir}/.electron-gyp"
55
touch "${srcdir}/.electron-gyp/.yarnrc"
56
if [ `curl -s ipinfo.io/country | grep CN | wc -l ` -ge 1 ];then
57
export npm_config_registry=https://registry.npmmirror.com
58
export npm_config_disturl=https://registry.npmmirror.com/-/binary/node/
59
export npm_config_electron_mirror=https://registry.npmmirror.com/-/binary/electron/
60
export npm_config_electron_builder_binaries_mirror=https://registry.npmmirror.com/-/binary/electron-builder-binaries/
61
else
62
echo "Your network is OK."
63
fi
64
cd "${srcdir}/expo.git"
65
# .yarnrc.yml existed.
66
yarn install
67
yarn export:electron
68
# Fix bundle path
69
sed -i 's/src="\/_expo/src="_expo/g' dist/index.html
70
cd "${srcdir}/electron-${pkgver}"
71
sed "s|process.resourcesPath|\"\/usr\/lib\/${pkgname}\"|g" -i src/main/util.ts
72
cp -r "${srcdir}/expo.git/dist" "${srcdir}/electron-${pkgver}"
73
# .yarnrc.yml existed.
74
yarn install
75
yarn run rebuild:all
76
npx electron-forge package
77
}
78
package() {
79
install -Dm755 "${srcdir}/${pkgname}.sh" "${pkgdir}/usr/bin/${pkgname}"
80
install -Dm755 -d "${pkgdir}/usr/lib/${pkgname}"
81
cp -r "${srcdir}/electron-${pkgver}/out/${_pkgname//-/ }-linux-"*/resources/{app,dist} "${pkgdir}/usr/lib/${pkgname}"
82
install -Dm644 "${srcdir}/${pkgname}.desktop" -t "${pkgdir}/usr/share/applications"
83
install -Dm644 "${srcdir}/electron-${pkgver}/icons/icon.png" "${pkgdir}/usr/share/pixmaps/${pkgname}.png"
84
install -Dm644 "${srcdir}/electron-${pkgver}/out/${_pkgname//-/ }-linux-"*/LICENSE* -t "${pkgdir}/usr/share/licenses/${pkgname}"
85
}
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 |