diff options
| author | salmonik <salmonik@tuta.io> | 2026-11-01 21:35:30 +0100 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-11-01 21:38:36 +0100 |
| commit | 7830b3c5e89f0339949940b8986bf4849ad7f223 (patch) | |
| tree | d4ebb4f10583cef1da3b181e093dd5d65ac8a0bb /scripts/deploy.sh | |
| parent | v4.2.1: plain-language game copy and a balance fetch on login (diff) | |
| download | zagan-bet-7830b3c5e89f0339949940b8986bf4849ad7f223.tar.gz zagan-bet-7830b3c5e89f0339949940b8986bf4849ad7f223.zip | |
v4.3.0: package the desktop app with verifiable installers
publish.sh builds the GUI with the gui-release profile, names it zagan-bet-gui-<version>-<platform>-<arch>, and renders a bash and a PowerShell installer next to each app. Both embed the app's SHA-256, verify the file (or fetch it), install per-user and add a launcher: a desktop entry plus an SVG icon on Linux, a Start-menu shortcut on Windows.
The download page gains a Desktop app section with the apps and installers, keeps the terminal client and server, links the public git repository for the GPL source, and lists every file in the sha256sum block. deploy.sh verifies all four artifact kinds. Publishing refuses a dirty tree so the linked history matches the binaries.
Diffstat (limited to 'scripts/deploy.sh')
| -rwxr-xr-x | scripts/deploy.sh | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/scripts/deploy.sh b/scripts/deploy.sh index 99129ad..b18d462 100755 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh | |||
| @@ -1,5 +1,6 @@ | |||
| 1 | #!/usr/bin/env bash | 1 | #!/usr/bin/env bash |
| 2 | # Upload web/ and verify every published artifact over the public URL. | 2 | # Upload web/ and verify every published artifact (GUI app and installers, |
| 3 | # terminal client and server) over the public URL. | ||
| 3 | # | 4 | # |
| 4 | # Usage: | 5 | # Usage: |
| 5 | # ./scripts/deploy.sh user@host:/srv/zagan.bet https://zagan.bet/ | 6 | # ./scripts/deploy.sh user@host:/srv/zagan.bet https://zagan.bet/ |
| @@ -50,7 +51,11 @@ done | |||
| 50 | [ -f web/index.php ] || die "web/index.php is missing" | 51 | [ -f web/index.php ] || die "web/index.php is missing" |
| 51 | 52 | ||
| 52 | shopt -s nullglob | 53 | shopt -s nullglob |
| 53 | artifacts=(web/bin/client/zagan-bet-* web/bin/server/zagan-bet-*) | 54 | artifacts=( |
| 55 | web/bin/gui/zagan-bet-* | ||
| 56 | web/bin/client/zagan-bet-* | ||
| 57 | web/bin/server/zagan-bet-* | ||
| 58 | ) | ||
| 54 | shopt -u nullglob | 59 | shopt -u nullglob |
| 55 | [ ${#artifacts[@]} -gt 0 ] || die "no artifacts in web/bin; run scripts/publish.sh first" | 60 | [ ${#artifacts[@]} -gt 0 ] || die "no artifacts in web/bin; run scripts/publish.sh first" |
| 56 | 61 | ||
