mirror of
https://github.com/2dust/v2rayN.git
synced 2026-10-11 15:54:59 +03:00
Fix empty latency tests and Linux startup errors (#10335)
* Fix overflow when speed tests have no eligible profiles * Preserve core executable permissions in Debian packages * Avoid requesting an icon refresh before view initialization
This commit is contained in:
@@ -676,6 +676,15 @@ EOF
|
||||
find "$stage/opt/v2rayN" -type f -exec chmod 0644 {} +
|
||||
[[ -f "$stage/opt/v2rayN/v2rayN" ]] && chmod 0755 "$stage/opt/v2rayN/v2rayN" || true
|
||||
|
||||
# Core binaries must be executable before installation: ordinary users cannot
|
||||
# chmod the root-owned files installed by dpkg.
|
||||
local core
|
||||
for core in xray/xray sing_box/sing-box mihomo/mihomo; do
|
||||
if [[ -f "$stage/opt/v2rayN/bin/$core" ]]; then
|
||||
chmod 0755 "$stage/opt/v2rayN/bin/$core"
|
||||
fi
|
||||
done
|
||||
|
||||
deb_out="$OUTPUT_DIR/v2rayn_${VERSION}_${deb_arch}.deb"
|
||||
dpkg-deb --root-owner-group --build "$stage" "$deb_out"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user