h7toolpc-wine

maintainer taotieren · 0 votes · scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged The package downloads a prebuilt 7z archive from a project-related domain (armfly.com) for a Wine application; while the host is not a standard code forge, it is plausibly official, and the content is not executed at build time but installed as-is for user runtime use under Wine, with no obfuscated or dynamically fetched code execution.

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 package downloads a prebuilt 7z archive from a project-related domain (armfly.com) for a Wine application; while the host is not a standard code forge, it is plausibly official, and the content is not executed at build time but installed as-is for user runtime use under Wine, with no obfuscated or dynamically fetched code execution.

1 higher static finding superseded - not the current verdict (shown for transparency)
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:24 source=("${pkgname/pc-wine/PC_release}-${pkgver}.7z::https://www.armfly.com/download/H7-TOOL/${pkgname/pc-wine/PC_release}(V${pkgver}).7z"

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: taotieren <admin@taotieren.com>
2
3pkgname=h7toolpc-wine
4pkgver=2.29
5pkgrel=1
6pkgdesc="Wine H7-TOOL 的 PC 上位机,支持串口、CAN、示波器、CMSIS-DAP、DS18B20、RTT Viewer、脱机烧录等"
7arch=('x86_64')
8url="http://www.armbbs.cn/forum.php?mod=viewthread&tid=95468"
9license=('unknow')
10provides=(${pkgname})
11conflicts=(${pkgname} ${pkgname%-wine} 'h7toolpc-bin')
12replaces=(h7toolpc-bin)
13depends=(
14 bash
15 hicolor-icon-theme
16 wine
17 wqy-microhei)
18optdepends=()
19makedepends=(libarchive)
20backup=()
21options=('!strip' '!debug')
22install=${pkgname}.install
23# https://www.armfly.com/download/H7-TOOL/h7toolPC_release(V2.2.7).7z
24source=("${pkgname/pc-wine/PC_release}-${pkgver}.7z::https://www.armfly.com/download/H7-TOOL/${pkgname/pc-wine/PC_release}(V${pkgver}).7z"
25 "icons.tar.gz"
26 "${pkgname}.install")
27sha256sums=('72ba58a3151110296bcf1e3209f2cf7500b97b393480dc205f361bbbd1de60c5'
28 '6823224b5699dc17c41efdcbc8465554f007cb62cadea0aad9b67c08c5698142'
29 'b7ed44498e84bae5f174fd0a4a56aea0298ce93bc9a5de8b1dfb41c067705d27')
30noextract=("icons.tar.gz")
31
32package() {
33 armfly="opt/armfly"
34
35 install -dm0755 "${pkgdir}/${armfly}/${pkgname%-wine}"
36
37 cp -ra ${srcdir}/${pkgname/pc-wine/PC_release}/* "${pkgdir}/${armfly}/${pkgname%-wine}"
38
39 find "${pkgdir}/${armfly}" -type f -exec chmod 644 "{}" \;
40 find "${pkgdir}/${armfly}" -type d -exec chmod 755 "{}" \;
41
42 _ftname="wqy-microhei.ttc"
43 install -Dm0644 /dev/stdin "${pkgdir}/${armfly}/${pkgname%-wine}/regpatch.reg" <<EOF
44REGEDIT4
45
46[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontLink\SystemLink]
47"Lucida Sans Unicode"="${_ftname}"
48"Microsoft Sans Serif"="${_ftname}"
49"MS Sans Serif"="${_ftname}"
50"Tahoma"="${_ftname}"
51"Tahoma Bold"="${_ftname}"
52"SimSun"="${_ftname}"
53"Arial"="${_ftname}"
54"Arial Black"="${_ftname}"
55"Lucida Sans Unicode"=str(7):"${_ftname}"
56"Microsoft Sans Serif"=str(7):"${_ftname}"
57"Tahoma"=str(7):"${_ftname}"
58"Lucida Sans Unicode"="${_ftname}"
59"Microsoft Sans Serif"="${_ftname}"
60"Microsoft YaHei"="${_ftname}"
61"微软雅黑"="${_ftname}"
62"宋体"="${_ftname}"
63"新細明體"="${_ftname}"
64"DFKai-SB"="${_ftname}"
65"FangSong"="${_ftname}"
66"KaiTi"="${_ftname}"
67"Microsoft JhengHei"="${_ftname}"
68"Microsoft YaHei"="${_ftname}"
69"MingLiU"="${_ftname}"
70"NSimSun"="${_ftname}"
71"PMingLiU"="${_ftname}"
72"SimHei"="${_ftname}"
73"SimKai"="${_ftname}"
74"SimSun"="${_ftname}"
75
76[HKEY_CURRENT_USER\Software\Wine\X11 Driver]
77"ClientSideAntiAliasWithCore"="N"
78"ClientSideAntiAliasWithRender"="N"
79"ClientSideWithRender"="N"
80
81[HKEY_CURRENT_USER\Control Panel\Desktop]
82"FontSmoothing"="2"
83"FontSmoothingType"=dword:00000002
84"FontSmoothingGamma"=dword:00000578
85"FontSmoothingOrientation"=dword:00000001
86
87[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion]
88"RegisteredOrganization"="H7-TOOL"
89"RegisteredOwner"="H7-TOOL"
90
91[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\winebus]
92"Start"=dword:00000002
93
94[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\winehid]
95"Start"=dword:00000002
96
97[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\wineusb]
98"Start"=dword:00000002
99
100[HKEY_LOCAL_MACHINE\Software\Wine\Ports]
101"COM1"="/dev/ttyUSB0"
102"COM2"="/dev/ttyUSB1"
103"COM3"="/dev/ttyUSB2"
104"COM4"="/dev/ttyUSB3"
105"COM5"="/dev/ttyUSB4"
106"COM6"="/dev/ttyUSB5"
107"COM7"="/dev/ttyUSB6"
108"COM8"="/dev/ttyUSB7"
109"COM9"="/dev/ttyUSB8"
110"COM10"="/dev/ttyACM0"
111"COM11"="/dev/ttyACM1"
112"COM12"="/dev/ttyACM2"
113"COM13"="/dev/ttyACM3"
114"COM14"="/dev/ttyACM4"
115"COM15"="/dev/ttyACM5"
116"COM16"="/dev/ttyACM6"
117"COM17"="/dev/ttyACM7"
118"COM18"="/dev/ttyACM8"
119"COM19"="/dev/ttyACM9"
120
121EOF
122
123 install -Dm0755 /dev/stdin "${pkgdir}/usr/bin/${pkgname%-wine}" <<EOF
124#!/bin/bash
125export WINEARCH=win64 WINEPREFIX="\$HOME/.${pkgname%-wine}/wine"
126
127if [ ! -d "\$HOME"/.${pkgname%-wine} ] ; then
128 mkdir -p "\$HOME"/.${pkgname%-wine}/wine || exit 1
129
130 cp -r /${armfly}/${pkgname%-wine}/app*.ini "\$HOME"/.${pkgname%-wine} || exit 1
131 cp -r /${armfly}/${pkgname%-wine}/Backup "\$HOME"/.${pkgname%-wine} || exit 1
132 cp -r /${armfly}/${pkgname%-wine}/Readback "\$HOME"/.${pkgname%-wine} || exit 1
133 cp -r /${armfly}/${pkgname%-wine}/ini "\$HOME"/.${pkgname%-wine} || exit 1
134 cp -r /${armfly}/${pkgname%-wine}/log "\$HOME"/.${pkgname%-wine} || exit 1
135 cp -r /${armfly}/${pkgname%-wine}/Lua "\$HOME"/.${pkgname%-wine} || exit 1
136 cp -r /${armfly}/${pkgname%-wine}/Trace "\$HOME"/.${pkgname%-wine} || exit 1
137 cp -r /${armfly}/${pkgname%-wine}/regpatch.reg "\$HOME"/.${pkgname%-wine}/wine || exit 1
138
139 ln -s /${armfly}/${pkgname%-wine}/${pkgname/pc-wine/PC}.exe "\$HOME"/.${pkgname%-wine}/${pkgname%-wine} || exit 1
140 ln -s -T /${pkgdir}/${armfly}/${pkgname%-wine}/Driver "\$HOME"/.${pkgname%-wine}/Driver || exit 1
141 ln -s -T /${armfly}/${pkgname%-wine}/EMMC "\$HOME"/.${pkgname%-wine}/EMMC || exit 1
142 ln -s -T /${armfly}/${pkgname%-wine}/Help "\$HOME"/.${pkgname%-wine}/Help || exit 1
143 ln -s -T /${armfly}/${pkgname%-wine}/USBBus "\$HOME"/.${pkgname%-wine}/USBBus || exit 1
144 ln -s -T /${armfly}/${pkgname%-wine}/ChangeLog.txt "\$HOME"/.${pkgname%-wine}/ChangeLog.txt || exit 1
145
146 regedit "\$HOME"/.${pkgname%-wine}/wine/regpatch.reg
147# winetricks -q hid
148# winetricks -q comctl32
149# winetricks -q comctl32ocx
150# winetricks -q comdlg32ocx
151# wine "\$HOME"/.${pkgname%-wine}/Driver/stm32_vcp/VCP_V1.5.0_Setup_W7_x86_32bits.exe /S
152# wine "\$HOME"/.${pkgname%-wine}/Driver/WinUSB/zadig-2.5.exe
153 wineserver -k
154fi
155
156wine "\$HOME"/.${pkgname%-wine}/${pkgname%-wine} -opengl "\$@"
157EOF
158
159 install -Dm0644 /dev/stdin "${pkgdir}/usr/share/applications/${pkgname%-wine}.desktop" <<EOF
160[Desktop Entry]
161Name=${pkgname%-wine}
162Name[zh_CN]=${pkgname%-wine}
163Comment=${pkgdesc}
164#MimeType=application/x-${pkgname%-wine};
165Exec=${pkgname%-wine} %f
166Type=Application
167Categories=Development;Tool;
168Terminal=false
169Icon=${pkgname%-wine}.png
170Version=${pkgver}
171EOF
172
173 install -Dm0644 /dev/stdin "${pkgdir}/etc/udev/rules.d/10-h7tool.rules" <<EOF
174# Copy this file to /etc/udev/rules.d/ or /usr/lib/udev/rules.d/
175# If rules fail to reload automatically, you can refresh udev rules
176# with the command "sudo udevadm control --reload"
177
178ACTION!="add|change", SUBSYSTEM!="usb_device", GOTO="h7tool_rules_end"
179
180# SUBSYSTEM=="gpio", MODE="0666", GROUP="uucp", TAG+="uaccess"
181
182# SUBSYSTEM!="usb|tty|hidraw", GOTO="h7tool_rules_end"
183
184# Please keep this list sorted by VID:PID
185
186# H7-tool
187# ATTRS{idVendor}=="c251", ATTRS{idProduct}=="f00a", MODE="666", GROUP="uucp", TAG+="uaccess"
188# BUS=='usb',
189ATTRS{manufacturer}=="H7-TOOL By ARMFLY", MODE="0666", GROUP="uucp", TAG+="uaccess"
190
191LABEL="h7tool_rules_end"
192EOF
193
194 bsdtar -xf "${srcdir}/icons.tar.gz" -C "${pkgdir}/usr/share"
195 # install -Dm0644 "${srcdir}/${pkgname%-wine}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname%-wine}/LICENSE"
196}
197

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