sharing-gui
maintainer zxp19821005
· 0 votes
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged
The yarn install runs in a controlled build environment using the project's own source from GitHub; the added dependency is a known development plugin for building with a local Electron version, not a malicious external 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 yarn install runs in a controlled build environment using the project's own source from GitHub; the added dependency is a known development plugin for building with a local Electron version, not a malicious external package.
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:73
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>
2
pkgname=sharing-gui
3
_pkgname=sharing-GUI
4
_appname='Sharing GUI'
5
pkgver=1.4.0
6
_electronversion=21
7
_nodeversion=20
8
pkgrel=9
9
pkgdesc="Easily share files to multiple devices on the LAN/Public Network.(Use system-wide electron)"
10
arch=('any')
11
url="https://sharing-gui.yuanx.me/"
12
_ghurl="https://github.com/imyuanx/sharing-GUI"
13
license=('MIT')
14
conflicts=("${pkgname}")
15
depends=(
16
"electron${_electronversion}"
17
)
18
makedepends=(
19
'gendesk'
20
'npm'
21
'nvm'
22
'yarn'
23
'curl'
24
'git'
25
)
26
source=(
27
"${pkgname}-${pkgver}::git+${_ghurl}#tag=v${pkgver}"
28
"${pkgname}.sh"
29
)
30
sha256sums=('819d2907a13dd8bdbff5170548b0ebd10eddea121fa76400b1b04d32c271db6c'
31
'291f50480f5a61bc9c68db7d44cd0412071128706baa868a9cb854f8779a1980')
32
_ensure_local_nvm() {
33
local NVM_DIR="${srcdir}/.nvm"
34
source /usr/share/nvm/init-nvm.sh || [[ $? != 1 ]]
35
nvm install "${_nodeversion}"
36
nvm use "${_nodeversion}"
37
}
38
prepare() {
39
sed -i -e "
40
s/@electronversion@/${_electronversion}/g
41
s/@appname@/${pkgname}/g
42
s/@runname@/app.asar/g
43
s/@cfgdirname@/${_pkgname}/g
44
s/@options@//g
45
" "${srcdir}/${pkgname}.sh"
46
_ensure_local_nvm
47
gendesk -q -f -n --pkgname="${pkgname}" --pkgdesc="${pkgdesc}" --categories="Utility" --name="${_appname}" --exec="${pkgname} %U"
48
cd "${srcdir}/${pkgname}-${pkgver}"
49
export ELECTRON_SKIP_BINARY_DOWNLOAD=1
50
export SYSTEM_ELECTRON_VERSION="$(electron${_electronversion} -v | sed 's/v//g')"
51
HOME="${srcdir}/.electron-gyp"
52
mkdir -p "${srcdir}/.electron-gyp"
53
if [[ "$(curl -s ipinfo.io/country)" == *"CN"* ]]; then
54
{
55
echo -e '\n'
56
echo 'registry "https://registry.npmmirror.com"'
57
echo 'electron_mirror "https://registry.npmmirror.com/-/binary/electron/"'
58
echo 'electron_builder_binaries_mirror "https://registry.npmmirror.com/-/binary/electron-builder-binaries/"'
59
echo "cacheFolder "${srcdir}"/.yarn/cache"
60
echo "pluginsFolder "${srcdir}"/.yarn/plugins"
61
echo "globalFolder "${srcdir}"/.yarn/global"
62
echo 'useHardlinks true'
63
#echo 'buildFromSource true'
64
echo 'linkWorkspacePackages true'
65
echo 'fetchRetries 3'
66
echo 'fetchRetryTimeout 10000'
67
echo 'networkConcurrency 10'
68
} >> .yarnrc
69
find ./ -type f -name "yarn.lock" -exec sed -i "s/registry.yarnpkg.com/registry.npmmirror.com/g" {} +
70
fi
71
sed -i "s/\"electron\": \"[^\"]*\"/\"electron\": \"${SYSTEM_ELECTRON_VERSION}\"/g" package.json
72
NODE_ENV=development yarn install --cache-folder "${srcdir}/.yarn_cache"
73
NODE_ENV=development yarn add -D @electron-forge/plugin-local-electron
74
}
75
build() {
76
cd "${srcdir}/${pkgname}-${pkgver}"
77
local electronDist="/usr/lib/electron${_electronversion}"
78
sed -i '/makers: \[/i\
79
plugins: [\
80
{\
81
name: "@electron-forge/plugin-local-electron",\
82
config: {\
83
electronPath: "'"${electronDist}"'"\
84
}\
85
}\
86
],' forge.config.*
87
NODE_ENV=production yarn vite build
88
NODE_ENV=production yarn electron-forge package
89
}
90
package() {
91
install -Dm755 "${srcdir}/${pkgname}.sh" "${pkgdir}/usr/bin/${pkgname}"
92
install -Dm644 "${srcdir}/${pkgname}-${pkgver}/out/${_appname}-linux-"*/resources/app.asar -t "${pkgdir}/usr/lib/${pkgname}"
93
install -Dm644 "${srcdir}/${pkgname}.desktop" -t "${pkgdir}/usr/share/applications"
94
install -Dm644 "${srcdir}/${pkgname}-${pkgver}/assets/logo-bg-512x512.png" "${pkgdir}/usr/share/pixmaps/${pkgname}.png"
95
install -Dm644 "${srcdir}/${pkgname}-${pkgver}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}"
96
}
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 |