mirror of
https://github.com/black-ant/Ant-Browser.git
synced 2026-07-14 18:48:55 +08:00
channel: master version: 1.1.0 source-ref: master published-at-utc: 2026-03-20T14:14:07Z
2.7 KiB
2.7 KiB
Linux Publish
Targets
linux/amd64linux/arm64
Output artifacts:
publish/output/AntBrowser-<version>-linux-<arch>.tar.gzpublish/output/ant-browser_<version>_<arch>.deb
Runtime policy
Linux publish uses repository-pinned runtime files and hash verification.
Pinned upstream source lock file:
publish/runtime-sources.json
Required files:
bin/linux-amd64/xraybin/linux-amd64/sing-boxbin/linux-arm64/xraybin/linux-arm64/sing-box
Hashes are validated by:
tools/runtime/verify-runtime.shpublish/runtime-manifest.json
Recommended way to refresh runtime files (download + archive checksum + extract + manifest update):
python3 tools/runtime/sync-runtime.py
python3 tools/runtime/sync-runtime.py --target linux-amd64
python3 tools/runtime/sync-runtime.py --target linux-arm64
If you replace runtime files manually, update manifest hashes:
python3 tools/runtime/update-runtime-manifest.py --target linux-amd64
python3 tools/runtime/update-runtime-manifest.py --target linux-arm64
If runtime file or hash is missing/mismatched, publish will fail.
Commands
Single architecture:
bash publish/linux/publish-linux.sh --arch amd64
bash publish/linux/publish-linux.sh --arch arm64
From Windows wrapper (bat\publish.bat L), Linux publish is executed through Docker Desktop using publish/linux/linux-builder.Dockerfile.
Batch call:
bash publish/linux/publish-linux-all.sh
Notes
- Linux packages do not include browser cores (
chrome/is not bundled). - Build on native architecture runner for stability.
.debinstalls app files under/opt/ant-browser..debbundlesxrayandsing-boxunder/opt/ant-browser/bin.- Linux packages keep an empty
chrome/placeholder withREADME.md, but do not bundle browser core binaries. .debregisters an application launcher at/usr/share/applications/ant-browser.desktop..debinstalls standard Linux desktop icons under/usr/share/icons/hicolor/*/apps/ant-browser.pngand/usr/share/pixmaps/ant-browser.png, so menus and launchers are more likely to pick up the app icon correctly..debbundles AppStream metadata under/usr/share/metainfo/ant-browser.metainfo.xml, which improves recognition in software centers and GUI.debinstallers.- On Debian/Ubuntu desktop environments that already support local
.debGUI installers, the package can usually be installed by double-clicking it; if the host has no GUI installer association, usesudo apt install ./ant-browser_<version>_<arch>.deb. - Linux packages currently register the app in the desktop launcher/menu; they do not force-create a shortcut file on each user's desktop.