visual-studio-code-electron-bin
The package downloads prebuilt RPMs from Microsoft's official domain (code.visualstudio.com), which is plausibly the project's own release infrastructure; despite the non-standard URL format, the source is trustworthy and checksummed, and the build process only installs and configures the official binaries.
Triggered rules
llm_review
The static rules flagged this MEDIUM, but an AI model (qwen/qwen3-235b-a22b-2507) reviewed the full PKGBUILD and judged it LOW (confidence 95%): The package downloads prebuilt RPMs from Microsoft's official domain (code.visualstudio.com), which is plausibly the project's own release infrastructure; despite the non-standard URL format, the source is trustworthy and checksummed, and the build process only installs and configures the official binaries.
1 higher static finding superseded - not the current verdict (shown for transparency)
source_untrusted_domain
One or more source=() URLs point to a host outside the trusted allowlist (github.com, gitlab.com, codeberg.org, pypi.org, …).
-
PKGBUILD:52
source_aarch64=("${pkgname%-bin}-${pkgver}-aarch64.rpm::https://code.visualstudio.com/sha/download?build=stable&os=linux-rpm-arm64")
PKGBUILD
1 offending line(s) highlighted# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
# `vscodium-electron.js` from Richardn <rniu at umich dot edu>
_appname=code
_pkgname="visual-studio-${_appname}"
pkgname="${_pkgname}-electron-bin"
_debname=com.microsoft.VSCode
pkgver=1.144.0
_electronversion=43
pkgrel=1
pkgdesc="Visual Studio Code (vscode): Editor for building and debugging modern web and cloud applications."
arch=(
'aarch64'
'armv7h'
'x86_64'
)
url="https://code.visualstudio.com/"
_ghurl="https://github.com/microsoft/vscode"
#_dlurl="https://packages.microsoft.com/yumrepos/vscode/Packages/c"
license=('LicenseRef-scancode-commercial-license')
provides=(
"${_pkgname}"
"vs${_appname}"
)
conflicts=(
"${pkgname%-bin}"
"${_pkgname}"
"${_appname}"
"${_pkgname}-insiders"
"${_pkgname}-marketplace"
)
depends=(
"electron${_electronversion}"
'nodejs'
'libx11'
'libxkbfile'
'webkit2gtk-4.1'
'libsecret'
'glibc>=2.28'
'gcc-libs>=8.1.0'
)
optdepends=(
'gvfs: For move to trash functionality'
'libdbusmenu-glib: For KDE global menu'
)
options=(
'!strip'
)
source=(
"${pkgname%-bin}.js"
"${pkgname%-bin}.sh"
)
source_aarch64=("${pkgname%-bin}-${pkgver}-aarch64.rpm::https://code.visualstudio.com/sha/download?build=stable&os=linux-rpm-arm64")
source_armv7h=("${pkgname%-bin}-${pkgver}-armv7h.rpm::https://code.visualstudio.com/sha/download?build=stable&os=linux-rpm-armhf")
source_x86_64=("${pkgname%-bin}-${pkgver}-x86_64.rpm::https://code.visualstudio.com/sha/download?build=stable&os=linux-rpm-x64")
sha256sums=('dc6e622af50c366f1713adfa1de690bbee9af76c8fec1d4dccddadffc9bdf2ba'
'13fb5f66f31ced197d0e2b566daae599ffe96ab6f9eea7a0ffccbfc2eedae92f')
sha256sums_aarch64=('c3e620a22b5d444b433dcd7fd27238fb71d3afb6a52df534ab03474d683543c5')
sha256sums_armv7h=('2a1e8e5ac39de60f3e6e10d20da38d9dd90bee798cf9c419f69934b39cc11730')
sha256sums_x86_64=('ecd59c8a9f99f966a0aabfcc0675772b5b263ad652aa80322115a6e9215e7544')
pkgver() {
cat "${srcdir}/.pkgver" 2>/dev/null || echo "${pkgver}"
}
_get_app_dir() {
find "${srcdir}" -type f -name "resources.pak" ! -path "*/node_modules/*" -printf '%h\n' 2>/dev/null \
| while read -r d; do [[ -d "${d}/resources" ]] && { echo "$d"; return 0; }; done
}
_check_electron_version() {
local _v=$(strings "$(find "$(_get_app_dir)" -maxdepth 1 -type f \
-executable -printf '%s %p\n' | sort -nr | head -1 | cut -d' ' -f2-)" \
| grep -oP 'Electron/\K[0-9]+' | head -1)
[[ -z "$_v" ]] && { echo -e "\033[1;33mNote: Could not check version.\033[0m"; return; }
(( _v == _electronversion )) && c=32 || c=31
echo -e "Electron version: \033[1;${c}m$_v$([[ $c -eq 31 ]] && echo " (expected $_electronversion)")\033[0m"
}
prepare() {
_check_electron_version
sed -i -e "
s/@electronversion@/${_electronversion}/g
s/@appname@/${pkgname%-bin}/g
" "${srcdir}/${pkgname%-bin}.sh" "${srcdir}/${pkgname%-bin}.js"
grep '"version": ' "$(_get_app_dir)/resources/app/package.json" | awk '{print $2}' | tr -d '"' | tr -d ',' > "${srcdir}/.pkgver"
sed -i "s/${_debname}.desktop/${pkgname%-bin}.desktop/g" "${srcdir}/usr/share/appdata/${_debname}.appdata.xml"
sed -i -e "
s/\/usr\/share\/${_appname}\/${_appname}/${pkgname%-bin}/g
s/Icon=vs${_appname}/Icon=${pkgname%-bin}/g
" "${srcdir}/usr/share/applications/${_debname}"*.desktop
rm -rf "$(_get_app_dir)/resources/app/node-compile-cache"
}
package() {
install -Dm755 "${srcdir}/${pkgname%-bin}.sh" "${pkgdir}/usr/bin/${pkgname%-bin}"
install -Dm755 "${srcdir}/${pkgname%-bin}.js" -t "${pkgdir}/usr/lib/${pkgname%-bin}"
cp -a "$(_get_app_dir)/resources/app/." "${pkgdir}/usr/lib/${pkgname%-bin}/"
install -Dm644 "${srcdir}/usr/share/appdata/${_debname}.appdata.xml" "${pkgdir}/usr/share/appdata/${pkgname%-bin}.appdata.xml"
install -Dm644 "${srcdir}/usr/share/applications/${_debname}.UrlHandler.desktop" "${pkgdir}/usr/share/applications/${pkgname%-bin}-UrlHandler.desktop"
install -Dm644 "${srcdir}/usr/share/applications/${_debname}.desktop" "${pkgdir}/usr/share/applications/${pkgname%-bin}.desktop"
install -Dm644 "${srcdir}/usr/share/mime/packages/${_appname}-workspace.xml" "${pkgdir}/usr/share/mime/packages/${pkgname%-bin}-workspace.xml"
install -Dm644 "${srcdir}/usr/share/pixmaps/vs${_appname}.png" "${pkgdir}/usr/share/icons/hicolor/512x512/apps/${pkgname%-bin}.png"
install -Dm644 "${srcdir}/usr/share/bash-completion/completions/${_appname}" -t "${pkgdir}/usr/share/bash-completion/completions"
install -Dm644 "${srcdir}/usr/share/zsh/site-functions/_${_appname}" -t "${pkgdir}/usr/share/zsh/vendor-completions/"
install -Dm644 "${srcdir}/usr/share/${_appname}/resources/app/licenses/"* -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
Changes since previous scan
--- PKGBUILD @ 2026-10-29 00:13+++ PKGBUILD @ 2026-11-01 00:21@@ -4,7 +4,7 @@ _pkgname="visual-studio-${_appname}" pkgname="${_pkgname}-electron-bin" _debname=com.microsoft.VSCode-pkgver=1.143.0+pkgver=1.144.0 _electronversion=43 pkgrel=1 pkgdesc="Visual Studio Code (vscode): Editor for building and debugging modern web and cloud applications."@@ -54,9 +54,9 @@ source_x86_64=("${pkgname%-bin}-${pkgver}-x86_64.rpm::https://code.visualstudio.com/sha/download?build=stable&os=linux-rpm-x64") sha256sums=('dc6e622af50c366f1713adfa1de690bbee9af76c8fec1d4dccddadffc9bdf2ba' '13fb5f66f31ced197d0e2b566daae599ffe96ab6f9eea7a0ffccbfc2eedae92f')-sha256sums_aarch64=('748258df06e3c6c7c94081d3d53ad265ca3e1217840928e81001546cff376252')-sha256sums_armv7h=('8ae4f1581c767977aed86ec82781123bcd42d25020093b9f3b2f000725193f30')-sha256sums_x86_64=('624da32c2c3634cffe741c8a76218aa82e747f25eef5d03ea05133de617bc319')+sha256sums_aarch64=('c3e620a22b5d444b433dcd7fd27238fb71d3afb6a52df534ab03474d683543c5')+sha256sums_armv7h=('2a1e8e5ac39de60f3e6e10d20da38d9dd90bee798cf9c419f69934b39cc11730')+sha256sums_x86_64=('ecd59c8a9f99f966a0aabfcc0675772b5b263ad652aa80322115a6e9215e7544') pkgver() { cat "${srcdir}/.pkgver" 2>/dev/null || echo "${pkgver}" }@@ -84,6 +84,7 @@ s/\/usr\/share\/${_appname}\/${_appname}/${pkgname%-bin}/g s/Icon=vs${_appname}/Icon=${pkgname%-bin}/g " "${srcdir}/usr/share/applications/${_debname}"*.desktop+ rm -rf "$(_get_app_dir)/resources/app/node-compile-cache" } package() { install -Dm755 "${srcdir}/${pkgname%-bin}.sh" "${pkgdir}/usr/bin/${pkgname%-bin}"Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-11-01 00:21:48 | Low | 2 |
| 2026-10-31 00:07:41 | Low | 2 |
| 2026-10-30 00:29:30 | Low | 2 |
| 2026-10-29 01:51:16 | Medium | 1 |
| 2026-10-29 00:13:55 | Low | 2 |
| 2026-10-28 00:06:54 | Low | 2 |
| 2026-10-27 00:23:28 | Low | 2 |
| 2026-10-26 01:43:34 | Medium | 1 |
| 2026-10-26 00:12:40 | Low | 2 |
| 2026-10-25 00:20:48 | Low | 2 |
| 2026-10-24 00:14:55 | Low | 2 |
| 2026-10-23 00:02:19 | Low | 2 |
| 2026-10-22 05:34:05 | Medium | 1 |
| 2026-10-20 00:10:31 | Clean | 2 |
| 2026-10-19 03:23:49 | Medium | 1 |
| 2026-10-19 00:03:55 | Low | 2 |
| 2026-10-18 00:06:55 | Low | 2 |
| 2026-10-17 00:21:55 | Low | 2 |
| 2026-10-16 00:12:47 | Low | 2 |
| 2026-10-15 00:28:05 | Low | 2 |