Release: dev to main #7

Merged
devadmin merged 31 commits from dev into main 2026-10-15 18:01:36 -06:00
2 changed files with 9 additions and 1 deletions
Showing only changes of commit 6fbe63f787 - Show all commits
+6 -1
View File
@@ -17,7 +17,7 @@ case "$channel" in prod) other=dev ;; dev) other=prod ;; *) echo "bad channel: $
rm -rf "$out" rm -rf "$out"
mkdir -p "$out/$channel" "$out/$other" mkdir -p "$out/$channel" "$out/$other"
cp site/index.html site/_headers "$out/" cp site/index.html site/404.html site/_headers "$out/"
name="$(basename "$apk")" name="$(basename "$apk")"
cp "$apk" "$out/$channel/$name" cp "$apk" "$out/$channel/$name"
@@ -47,6 +47,11 @@ fi
if [ "$code" = 404 ]; then if [ "$code" = 404 ]; then
echo "No $other channel published yet; skipping." echo "No $other channel published yet; skipping."
rm -rf "$out/$other" rm -rf "$out/$other"
elif [ "$code" = 200 ] && ! jq -e .apkName "$out/$other/latest.json" >/dev/null 2>&1; then
# A 200 that is not our JSON: Pages without a 404.html answers unknown paths
# with index.html. Nothing is published on that channel.
echo "No $other channel published yet (200 but no latest.json); skipping."
rm -rf "$out/$other"
elif [ "$code" = 200 ]; then elif [ "$code" = 200 ]; then
other_name="$(jq -er .apkName "$out/$other/latest.json")" other_name="$(jq -er .apkName "$out/$other/latest.json")"
curl -fsS -o "$out/$other/$other_name" "$base/$other/$other_name" curl -fsS -o "$out/$other/$other_name" "$base/$other/$other_name"
+3
View File
@@ -0,0 +1,3 @@
<!doctype html>
<html lang="en"><head><meta charset="utf-8"><title>Not found</title></head>
<body><h1>404</h1><p>Not found. <a href="/">Pro Libertate Games downloads</a></p></body></html>