summaryrefslogtreecommitdiff
path: root/site/assemble.sh
diff options
context:
space:
mode:
Diffstat (limited to 'site/assemble.sh')
-rwxr-xr-xsite/assemble.sh12
1 files changed, 9 insertions, 3 deletions
diff --git a/site/assemble.sh b/site/assemble.sh
index aed5b27..52cd84c 100755
--- a/site/assemble.sh
+++ b/site/assemble.sh
@@ -13,12 +13,14 @@ case $(uname -m) in x86_64|amd64) arch=x64 ;; aarch64|arm64) arch=arm64 ;; *) ar
sha() { if command -v sha256sum >/dev/null 2>&1; then sha256sum "$@"; else shasum -a 256 "$@"; fi; }
size() { du -h "$1" | cut -f1 | tr -d ' '; }
-apk=$root/android/build/outputs/apk/debug/android-debug.apk
+apk=$root/android/build/outputs/apk/release/android-release.apk
jar=$root/desktop/build/libs/rookery-universal.jar
app=$root/desktop/build/compose/binaries/main/app/rookery
[ -f "$apk" ] && cp "$apk" "$out/rookery-android.apk"
[ -f "$jar" ] && cp "$jar" "$out/rookery.jar"
+cp "$root"/site/assets/*.png "$out/"
+for z in "$root"/desktop/build/macos/rookery-macos-*.zip; do [ -f "$z" ] && cp "$z" "$out/"; done
[ -d "$app" ] && tar -C "$(dirname "$app")" -czf "$out/rookery-linux-$arch.tar.gz" rookery
printf '%s\n' "$commit" > "$out/commit.txt"
@@ -39,6 +41,7 @@ cat > "$out/index.html" <<HTML
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
+<link rel="icon" href="favicon.png">
<title>rookery</title>
<style>
:root { --bg: black; --fg: white; --a: #c4d0c8; --h: #7d978c; --line: #3a403d; --dim: #a3ada7; }
@@ -54,16 +57,19 @@ cat > "$out/index.html" <<HTML
</style>
</head>
<body>
-<h1>rookery</h1>
+<h1><img src="penguin.png" alt="" width="32" height="32" style="vertical-align:-7px; image-rendering:pixelated"> rookery</h1>
<p>speedcubing timer and blindfold trainer. desktop and android.</p>
<hr>
<h2>downloads</h2>
<table>
-$(row rookery-android.apk "Android 8+, debug-signed")
+$(row rookery-macos-arm64.zip "macOS 11+, Apple Silicon, not notarized")
+$(row rookery-macos-x64.zip "macOS 11+, Intel, not notarized")
+$(row rookery-android.apk "Android 8+, release build (debug-signed)")
$(row "rookery-linux-$arch.tar.gz" "Linux $arch, runtime included")
$(row rookery.jar "Java 21; Linux, macOS, Windows")
</table>
<ul>
+ <li>macOS: unzip, then run <tt>xattr -dr com.apple.quarantine Rookery.app</tt> once. The app isn't notarized.</li>
<li>apk: allow installing from this source when asked.</li>
<li>tar.gz: extract, then run <tt>rookery/bin/rookery</tt>.</li>
<li>jar: <tt>java -jar rookery.jar</tt></li>