astrofox-bin

MEDIUM
maintainer zxp19821005 0 votes scanned 2026-09-17 00:27:14.276658
View on AUR
Why flagged

The package downloads a prebuilt RPM from a non-standard host (files.astrofox.io), which is not a common source for AUR packages; while the checksum is verified, the use of a third-party binary from a non-official, non-whitelisted host introduces a supply-chain risk if the host were compromised.

Triggered rules

Medium source=() URL on a non-standard host 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:22 "${pkgname%-bin}-${pkgver}.rpm::https://files.astrofox.io/download/${_pkgname}-linux-x86_64.rpm"
Medium AI review llm_review

An AI model (qwen/qwen3-235b-a22b-2507) reviewed this and agrees it is MEDIUM (confidence 85%): The package downloads a prebuilt RPM from a non-standard host (files.astrofox.io), which is not a common source for AUR packages; while the checksum is verified, the use of a third-party binary from a non-official, non-whitelisted host introduces a supply-chain risk if the host were compromised.

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
2pkgname=astrofox-bin
3_pkgname=Astrofox
4pkgver=2.0.0
5_electronversion=39
6pkgrel=1
7pkgdesc="A motion graphics program that lets you turn audio into amazing videos.(Prebuilt version.Use system-wide electron)"
8arch=('x86_64')
9url="https://astrofox.io"
10_ghurl="https://github.com/astrofox-io/astrofox"
11license=('MIT')
12provides=("${pkgname%-bin}=${pkgver}")
13conflicts=("${pkgname%-bin}")
14depends=(
15 "electron${_electronversion}"
16 'ffmpeg'
17)
18makedepends=(
19 'asar'
20)
21source=(
22 "${pkgname%-bin}-${pkgver}.rpm::https://files.astrofox.io/download/${_pkgname}-linux-x86_64.rpm"
23 "LICENSE-${pkgver}::https://raw.githubusercontent.com/astrofox-io/astrofox/v${pkgver}/LICENSE"
24 "${pkgname%-bin}.sh"
25)
26sha256sums=('8eacc577adbc66d38073f0382a698d804ab0c27f35df27ce8c7c3ab33d22ad25'
27 '2366e943e400fbf8d55651d8f29257f7a680ce6fcb428d0215e75362f8728e43'
28 'a774c2f54fbbeeaac3cefc0f7250796d30c86d27f0fd40b7eaf9c0fdb021623d')
29_get_app_dir() {
30 find "${srcdir}" -type f -name "resources.pak" -exec dirname {} + | head -n 1
31}
32_check_electron_version() {
33 echo "Verifying Electron version..."
34 local _main_exe=$(find "$(_get_app_dir)" -maxdepth 1 -type f -executable -printf '%s %p\n' | sort -nr | head -1 | cut -d' ' -f2-)
35 [[ -z "${_main_exe}" ]] && echo -e "\033[1;33mNote: Could not find Electron binary.\033[0m" && return
36 local _elec_ver=$(strings "${_main_exe}" | grep -oP 'Electron/\K[0-9]+' | head -1)
37 [[ -z "${_elec_ver}" ]] && echo -e "\033[1;33mNote: Could not determine Electron version.\033[0m" && return
38 [[ "${_elec_ver}" != "${_electronversion}" ]] &&
39 echo -e "\033[1;31mWarning: Electron version mismatch! Detected: ${_elec_ver}, Expected: ${_electronversion}\033[0m" ||
40 echo -e "Electron version verified: \033[1;31m${_elec_ver}\033[0m"
41}
42prepare() {
43 _check_electron_version
44 sed -i -e "
45 s/@electronversion@/${_electronversion}/g
46 s/@appname@/${pkgname%-bin}/g
47 s/@runname@/app.asar/g
48 s/@cfgdirname@/${_pkgname}/g
49 " "${srcdir}/${pkgname%-bin}.sh"
50 sed -i "s/\/opt\/${_pkgname}\/${_pkgname}/${pkgname%-bin}/g" "${srcdir}/usr/share/applications/${_pkgname}.desktop"
51 local _app_dir=$(_get_app_dir)
52 asar e "${_app_dir}/resources/app.asar" "${srcdir}/app.asar.unpacked"
53 rm -rf "${_app_dir}/resources/app.asar"
54 find "${srcdir}/app.asar.unpacked/electron" -type f -exec sed -i "s/process.resourcesPath/\'\/usr\/lib\/${pkgname%-bin}\'/g" {} +
55 asar p "${srcdir}/app.asar.unpacked" "${_app_dir}/resources/app.asar"
56 ln -sf "/usr/bin/ffmpeg" "${_app_dir}/resources/bin/ffmpeg"
57}
58package() {
59 install -Dm755 "${srcdir}/${pkgname%-bin}.sh" "${pkgdir}/usr/bin/${pkgname%-bin}"
60 install -Dm755 -d "${pkgdir}/usr/lib/${pkgname%-bin}"
61 local _app_dir=$(_get_app_dir)
62 cp -a "${_app_dir}/resources/"* "${pkgdir}/usr/lib/${pkgname%-bin}/"
63 find "${srcdir}" -type f \( -name "*.png" -o -name "*.svg" \) -path "*share/icons/*" | while read -r _i; do
64 _extension="${_i##*.}"
65 _icon_path="${_i#*share/icons/}"
66 _target_dir="/usr/share/icons/$(dirname "${_icon_path}")"
67 install -Dm644 "${_i}" "${pkgdir}${_target_dir}/${pkgname%-bin}.${_extension}"
68 done
69 install -Dm644 "${srcdir}/usr/share/applications/${_pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname%-bin}.desktop"
70 install -Dm644 "${srcdir}/LICENSE-${pkgver}" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
71}

Changes since previous scan

--- PKGBUILD @ 2026-08-31 00:19
+++ PKGBUILD @ 2026-09-17 00:27
@@ -1,9 +1,9 @@
# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
pkgname=astrofox-bin
_pkgname=Astrofox
-pkgver=1.4.0
-_electronversion=16
-pkgrel=10
+pkgver=2.0.0
+_electronversion=39
+pkgrel=1
pkgdesc="A motion graphics program that lets you turn audio into amazing videos.(Prebuilt version.Use system-wide electron)"
arch=('x86_64')
url="https://astrofox.io"
@@ -13,42 +13,59 @@
conflicts=("${pkgname%-bin}")
depends=(
"electron${_electronversion}"
+ 'ffmpeg'
)
makedepends=(
- 'fuse2'
'asar'
)
source=(
- "${pkgname%-bin}-${pkgver}.AppImage::https://files.astrofox.io/download/${_pkgname}-${pkgver}.AppImage"
+ "${pkgname%-bin}-${pkgver}.rpm::https://files.astrofox.io/download/${_pkgname}-linux-x86_64.rpm"
"LICENSE-${pkgver}::https://raw.githubusercontent.com/astrofox-io/astrofox/v${pkgver}/LICENSE"
"${pkgname%-bin}.sh"
)
-sha256sums=('05327ea2944741d8bab8ef5f8bfd33530fbbb72ad85b6e4c411714c6fd295b65'
+sha256sums=('8eacc577adbc66d38073f0382a698d804ab0c27f35df27ce8c7c3ab33d22ad25'
'2366e943e400fbf8d55651d8f29257f7a680ce6fcb428d0215e75362f8728e43'
- '291f50480f5a61bc9c68db7d44cd0412071128706baa868a9cb854f8779a1980')
+ 'a774c2f54fbbeeaac3cefc0f7250796d30c86d27f0fd40b7eaf9c0fdb021623d')
+_get_app_dir() {
+ find "${srcdir}" -type f -name "resources.pak" -exec dirname {} + | head -n 1
+}
+_check_electron_version() {
+ echo "Verifying Electron version..."
+ local _main_exe=$(find "$(_get_app_dir)" -maxdepth 1 -type f -executable -printf '%s %p\n' | sort -nr | head -1 | cut -d' ' -f2-)
+ [[ -z "${_main_exe}" ]] && echo -e "\033[1;33mNote: Could not find Electron binary.\033[0m" && return
+ local _elec_ver=$(strings "${_main_exe}" | grep -oP 'Electron/\K[0-9]+' | head -1)
+ [[ -z "${_elec_ver}" ]] && echo -e "\033[1;33mNote: Could not determine Electron version.\033[0m" && return
+ [[ "${_elec_ver}" != "${_electronversion}" ]] &&
+ echo -e "\033[1;31mWarning: Electron version mismatch! Detected: ${_elec_ver}, Expected: ${_electronversion}\033[0m" ||
+ echo -e "Electron version verified: \033[1;31m${_elec_ver}\033[0m"
+}
prepare() {
+ _check_electron_version
sed -i -e "
s/@electronversion@/${_electronversion}/g
s/@appname@/${pkgname%-bin}/g
s/@runname@/app.asar/g
s/@cfgdirname@/${_pkgname}/g
- s/@options@//g
" "${srcdir}/${pkgname%-bin}.sh"
- chmod a+x "${srcdir}/${pkgname%-bin}-${pkgver}.AppImage"
- "${srcdir}/${pkgname%-bin}-${pkgver}.AppImage" --appimage-extract > /dev/null
- sed -i "s/AppRun/${pkgname%-bin}/g" "${srcdir}/squashfs-root/${pkgname%-bin}.desktop"
- asar e "${srcdir}/squashfs-root/resources/app.asar" "${srcdir}/app.asar.unpacked"
- sed -i "s/process.resourcesPath/\"\/usr\/lib\/${pkgname%-bin}\"/g" "${srcdir}/app.asar.unpacked/main.js"
- asar p "${srcdir}/app.asar.unpacked" "${srcdir}/app.asar"
+ sed -i "s/\/opt\/${_pkgname}\/${_pkgname}/${pkgname%-bin}/g" "${srcdir}/usr/share/applications/${_pkgname}.desktop"
+ local _app_dir=$(_get_app_dir)
+ asar e "${_app_dir}/resources/app.asar" "${srcdir}/app.asar.unpacked"
+ rm -rf "${_app_dir}/resources/app.asar"
+ find "${srcdir}/app.asar.unpacked/electron" -type f -exec sed -i "s/process.resourcesPath/\'\/usr\/lib\/${pkgname%-bin}\'/g" {} +
+ asar p "${srcdir}/app.asar.unpacked" "${_app_dir}/resources/app.asar"
+ ln -sf "/usr/bin/ffmpeg" "${_app_dir}/resources/bin/ffmpeg"
}
package() {
install -Dm755 "${srcdir}/${pkgname%-bin}.sh" "${pkgdir}/usr/bin/${pkgname%-bin}"
- install -Dm644 "${srcdir}/app.asar" -t "${pkgdir}/usr/lib/${pkgname%-bin}"
- install -Dm644 "${srcdir}/squashfs-root/resources/app-update.yml" -t "${pkgdir}/usr/lib/${pkgname%-bin}"
- install -Dm755 "${srcdir}/squashfs-root/resources/bin/ffmpeg" -t "${pkgdir}/usr/lib/${pkgname%-bin}/bin"
- install -Dm644 "${srcdir}/squashfs-root/swiftshader/"* -t "${pkgdir}/usr/lib/${pkgname%-bin}/swiftshader"
- install -Dm644 "${srcdir}/squashfs-root/usr/lib/"* -t "${pkgdir}/usr/lib/${pkgname%-bin}/lib"
- install -Dm644 "${srcdir}/squashfs-root/usr/share/icons/hicolor/0x0/apps/${pkgname%-bin}.png" -t "${pkgdir}/usr/share/pixmaps"
- install -Dm644 "${srcdir}/squashfs-root/${pkgname%-bin}.desktop" -t "${pkgdir}/usr/share/applications"
+ install -Dm755 -d "${pkgdir}/usr/lib/${pkgname%-bin}"
+ local _app_dir=$(_get_app_dir)
+ cp -a "${_app_dir}/resources/"* "${pkgdir}/usr/lib/${pkgname%-bin}/"
+ find "${srcdir}" -type f \( -name "*.png" -o -name "*.svg" \) -path "*share/icons/*" | while read -r _i; do
+ _extension="${_i##*.}"
+ _icon_path="${_i#*share/icons/}"
+ _target_dir="/usr/share/icons/$(dirname "${_icon_path}")"
+ install -Dm644 "${_i}" "${pkgdir}${_target_dir}/${pkgname%-bin}.${_extension}"
+ done
+ install -Dm644 "${srcdir}/usr/share/applications/${_pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname%-bin}.desktop"
install -Dm644 "${srcdir}/LICENSE-${pkgver}" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}

Scan history

Scanned at (UTC)SeverityRules
2026-09-17 00:27:14 Medium 2
2026-09-16 00:03:17 Medium 2
2026-09-15 00:25:31 Medium 2
2026-09-14 00:27:57 Medium 2
2026-09-13 00:19:54 Medium 2
2026-09-12 00:25:17 Medium 2
2026-09-11 00:19:22 Medium 2
2026-09-10 00:22:44 Medium 2
2026-09-09 00:04:09 Medium 2
2026-09-08 00:18:08 Medium 2
2026-09-07 00:30:15 Medium 2
2026-09-06 00:17:06 Medium 2
2026-09-05 00:16:27 Medium 2
2026-09-04 00:03:13 Medium 2
2026-09-03 00:15:47 Medium 2
2026-09-02 00:02:31 Medium 2
2026-09-01 00:11:19 Medium 2
2026-08-31 03:44:41 Medium 2
2026-08-31 00:19:57 Low 2
2026-08-30 00:04:14 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