Configure Gitea Actions release workflow to compile and publish standalone binaries via runner
Release Binaries / release (push) Failing after 7m17s

This commit is contained in:
2026-09-03 21:43:39 +02:00
parent 5974811c29
commit 78344e7677
3 changed files with 64 additions and 14 deletions
+12
View File
@@ -94,6 +94,18 @@ def main():
server_script = os.path.join(OUT_DIR, "server", "Server.py")
build_pyinstaller_binary(server_script, "Server.bin")
# Also package standalone Windows zipapp executable
win_app_dir = os.path.join(BUILD_TEMP, "win_app")
os.makedirs(win_app_dir, exist_ok=True)
shutil.copy(os.path.join(OUT_DIR, "win_client", "Win_Client.py"), os.path.join(win_app_dir, "Win_Client.py"))
win_bin_output = os.path.join(DIST_DIR, "Win_Client.pyz")
zipapp.create_archive(
source=win_app_dir,
target=win_bin_output,
interpreter="/usr/bin/env python3",
main="Win_Client:main"
)
generate_checksums()
# Clean temporary build directory