flomo-bin
The package downloads a prebuilt Windows executable (.exe) from a personal GitHub repository not affiliated with the official project, which is an unverifiable binary from a swappable host, posing a supply-chain risk.
Triggered rules
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:26
"LICENSE.html::https://help.flomoapp.com/legal/"
llm_review
An AI model (qwen/qwen3-235b-a22b-2507) reviewed this and agrees it is MEDIUM (confidence 95%): The package downloads a prebuilt Windows executable (.exe) from a personal GitHub repository not affiliated with the official project, which is an unverifiable binary from a swappable host, posing a supply-chain risk.
PKGBUILD
1 offending line(s) highlighted# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
pkgname=flomo-bin
_pkgname=Flomo
_zhsname='浮墨笔记'
pkgver=5.26.82
_electronversion=36
pkgrel=1
pkgdesc="A new generation of cloud knowledge base for personal note-taking and knowledge creation, team collaboration and knowledge accumulation.(Prebuilt version.Use system-wide electron)新一代云端知识库,用于个人笔记与知识创作,团队协同与知识沉淀"
arch=('x86_64')
url="https://flomoapp.com/"
_dlurl="https://github.com/zxp19821005/My_AUR_Files"
license=('LicenseRef-custom')
conflicts=("${pkgname%-bin}")
prodives=("${pkgname%-bin}=${pkgver}")
depends=(
"electron${_electronversion}"
)
makedepends=(
'gendesk'
'asar'
'icoutils'
'7zip'
)
source=(
"${pkgname%-bin}-${pkgver}.exe::${_dlurl}/releases/download/${pkgname%-bin}/${pkgname%-bin}-${pkgver}-x64.exe"
"LICENSE.html::https://help.flomoapp.com/legal/"
"${pkgname%-bin}.sh"
)
sha256sums=('ec5f2edf73bbdda93d3b957171609589b5f434f5a41cda3d8fecabf86fcaa259'
'f65b8b79b175cf9321fdecc7f0d3ea4d50d879a1d5a4a46dca1ac1a7fbce67b2'
'a774c2f54fbbeeaac3cefc0f7250796d30c86d27f0fd40b7eaf9c0fdb021623d')
_get_app_dir() {
find "${srcdir}" -type f -name "resources.pak" -exec dirname {} + | head -n 1
}
_check_electron_version() {
_electronversion="$(strings "$(_get_app_dir)/${pkgname%-bin}.exe" | grep '^Chrome/[0-9.]* Electron/[0-9]' | cut -d'/' -f3 | cut -d'.' -f1)"
echo -e "The electron version is: \033[1;31m${_electronversion}\033[0m"
}
prepare() {
sed -i -e "
s/@electronversion@/${_electronversion}/g
s/@appname@/${pkgname%-bin}/g
s/@runname@/app.asar/g
s/@cfgdirname@/${pkgname%-bin}卡片笔记/g
" "${srcdir}/${pkgname%-bin}.sh"
gendesk -q -f -n \
--pkgname="${pkgname%-bin}" \
--pkgdesc="${pkgdesc}" \
--categories="Office" \
--name="${pkgname%-bin}" \
--exec="${pkgname%-bin} %U" \
--custom="Name[zh_CN]=${_zhsname}"
7z x -aoa "${srcdir}/${pkgname%-bin}-${pkgver}.exe"
install -Dm755 -d "${srcdir}/tmp"
7z x -aoa "${srcdir}/\$PLUGINSDIR/app-64.7z" -o"${srcdir}/tmp"
_check_electron_version
asar e "${srcdir}/tmp/resources/app.asar" "${srcdir}/app.asar.unpacked"
rm -rf "${srcdir}/tmp/resources/app.asar"
find "${srcdir}/app.asar.unpacked" -type f -name "*.gz" -exec rm -rf {} +
sed -i -e "
s/icon.ico/icon.png/g
s/process.resourcesPath/\'\/usr\/lib\/${pkgname%-bin}\'/g
" "${srcdir}/app.asar.unpacked/background.js"
sed -i 's/"icons\/"+e/"icons\/icon.png"/g' "${srcdir}/app.asar.unpacked/background.js"
cp "${srcdir}/app.asar.unpacked/icons/32x32.png" "${srcdir}/app.asar.unpacked/icons/darkTemplate.png"
cp "${srcdir}/app.asar.unpacked/icons/32x32.png" "${srcdir}/app.asar.unpacked/icons/icon.png"
asar p "${srcdir}/app.asar.unpacked" "${srcdir}/tmp/resources/app.asar"
}
package() {
install -Dm755 "${srcdir}/${pkgname%-bin}.sh" "${pkgdir}/usr/bin/${pkgname%-bin}"
install -Dm755 -d "${pkgdir}/usr/lib/${pkgname%-bin}"
local _app_dir=$(_get_app_dir)
cp -a "${_app_dir}/resources/"* "${pkgdir}/usr/lib/${pkgname%-bin}/"
rm -rf "${pkgdir}/usr/lib/${pkgname%-bin}/elevate.exe"
icon_sizes=(16x16 24x24 32x32 48x48 64x64 128x128 256x256 512x512 1024x1024)
for _icons in "${icon_sizes[@]}";do
install -Dm644 "${srcdir}/app.asar.unpacked/icons/${_icons}.png" \
"${pkgdir}/usr/share/icons/hicolor/${_icons}/apps/${pkgname%-bin}.png"
done
install -Dm644 "${srcdir}/${pkgname%-bin}.desktop" -t "${pkgdir}/usr/share/applications"
install -Dm644 "${srcdir}/LICENSE.html" -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 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 00:19:57 | Medium | 2 |
| 2026-08-30 00:04:14 | Medium | 2 |
| 2026-08-29 00:29:17 | Medium | 2 |