gmail-desktop

maintainer alecmev · 1 votes · scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged The npx command runs electron-builder on the locally built project from a trusted GitHub source; this is a standard build step, not execution of a remote untrusted 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 npx command runs electron-builder on the locally built project from a trusted GitHub source; this is a standard build step, not execution of a remote untrusted package.

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:46 npx electron-builder \

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: Alec Mev <alec@mev.earth>
2# Contributor: Mark Wagie <mark dot wagie at proton dot me>
3
4pkgname=gmail-desktop
5_ver=3.0.0-alpha.37
6pkgver="${_ver//-/_}"
7pkgrel=1
8pkgdesc='Nifty Gmail desktop app'
9arch=('x86_64')
10url='https://github.com/timche/gmail-desktop/tree/develop'
11license=('MIT')
12_electronv=21 # https://github.com/timche/gmail-desktop/issues/385#issuecomment-1634102694
13depends=("electron${_electronv}")
14makedepends=(
15 'gendesk'
16 'npm'
17)
18optdepends=(
19 'libnotify: Desktop notifications'
20 'libappindicator-gtk3: Tray icon'
21)
22_dir="${pkgname}-${_ver}"
23source=("${_dir}.tar.gz::https://github.com/timche/gmail-desktop/archive/refs/tags/v${_ver}.tar.gz")
24sha256sums=('f6edd6bc221ca57a98bb5a551266f040b3158b1a6aac4ab17111c78edcf2a24c')
25
26prepare() {
27 cd "${_dir}"
28 sed -i '/husky/d' package.json
29 cat > "${pkgname}" <<EOF
30#!/usr/bin/env bash
31exec electron${_electronv} /usr/share/${pkgname}/app.asar "\$@"
32EOF
33 gendesk \
34 --pkgname "${pkgname}" \
35 --pkgdesc "${pkgdesc}" \
36 --name 'Gmail Desktop' \
37 --categories 'Network;Office;Email' \
38 -n \
39 -f
40}
41
42build() {
43 cd "${_dir}"
44 npm i
45 npm run build
46 npx electron-builder \
47 --linux \
48 --dir \
49 -c.electronDist="/usr/lib/electron${_electronv}" \
50 -c.electronVersion="$(cat "/usr/lib/electron${_electronv}/version")"
51}
52
53package() {
54 cd "${_dir}"
55 mkdir -p "${pkgdir}/usr/share"
56 cp -r dist/linux-unpacked/resources "${pkgdir}/usr/share/${pkgname}"
57 install -Dm755 -t "${pkgdir}/usr/bin/" "${pkgname}"
58 install -Dm644 -t "${pkgdir}/usr/share/applications/" "${pkgname}.desktop"
59 install -Dm644 -t "${pkgdir}/usr/share/licenses/${pkgname}" LICENSE
60 install -Dm644 -t "${pkgdir}/usr/share/pixmaps/" build/icon.png
61}
62

Scan history

Scanned at (UTC)SeverityRules
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

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion