Configure Gitea Actions release workflow to compile and publish standalone binaries via runner
Release Binaries / release (push) Failing after 7m17s
Release Binaries / release (push) Failing after 7m17s
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user