Ship horizon-ctl in the release folders
release.yml builds horizon-ctl beside the client (checked for system-only imports like it), packaging/package.sh copies it from beside the client binary and refuses to package without it (the macOS folders made by hand go through the same script), and package_native_client.py adds it to private archives. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
tarball for one of your own Linux or macOS machines. The resources are Mojang
|
||||
assets: keep the archive in ignored .local/ and never publish or commit it.
|
||||
|
||||
cargo build --release -p horizon-client
|
||||
cargo build --release -p horizon-client --bins
|
||||
python3 tools/package_native_client.py
|
||||
"""
|
||||
import argparse
|
||||
@@ -102,6 +102,9 @@ def main():
|
||||
archive = args.out / f'{name}.tar.gz'
|
||||
with tarfile.open(archive, 'w:gz', compresslevel=1) as tar:
|
||||
tar.add(args.binary, 'horizon/horizon-client')
|
||||
ctl = args.binary.with_name('horizon-ctl') # built with --bins: scripts and agents play through it
|
||||
if ctl.is_file():
|
||||
tar.add(ctl, 'horizon/horizon-ctl')
|
||||
add_bytes(tar, 'horizon/horizon.sh', LAUNCHER.encode(), 0o755)
|
||||
tar.add(ROOT / 'docs/media/icon-256.png', 'horizon/horizon.png')
|
||||
add_bytes(tar, 'horizon/README.txt', README.format(version=version, commit=commit, platform=plat).encode())
|
||||
|
||||
Reference in New Issue
Block a user