CI: SHA256 zum APK veroeffentlichen, Pages-URL richtigstellen

Ein per Sideload installierter APK ist von niemandem geprueft worden, also soll
die Pruefsumme daneben liegen statt gar nicht zu existieren: das Release haengt
jetzt openGym-<ver>.apk.sha256 mit an.

Pages laeuft unter GitLabs "unique domain" (opengym-bc111a.gitlab.io);
duartesantos8.gitlab.io/opengym/ leitet mit 308 dorthin um.
This commit is contained in:
Duarte Santos committed 2026-08-23 20:18:02 +02:00
1 parent b2ee031cf1
commit f38036fab6
3 files changed
+24 -8

No files matched your search

+18 -6
View File
@@ -227,16 +227,23 @@ build:apk:
cd "$CI_PROJECT_DIR"
. ./apk.env
if [ -n "${CI_COMMIT_TAG:-}" ] && [ -f "openGym-$APK_VERSION.apk" ]; then
curl --fail --silent --show-error \
--header "JOB-TOKEN: $CI_JOB_TOKEN" \
--upload-file "openGym-$APK_VERSION.apk" \
"$CI_API_V4_URL/projects/$CI_PROJECT_ID/packages/generic/opengym-android/$APK_VERSION/openGym-$APK_VERSION.apk"
echo "uploaded openGym-$APK_VERSION.apk to the generic package registry"
# Sideloading means nobody's app store checked this file for you, so publish the
# digest next to it rather than leaving people to trust the download.
sha256sum "openGym-$APK_VERSION.apk" > "openGym-$APK_VERSION.apk.sha256"
cat "openGym-$APK_VERSION.apk.sha256"
for f in "openGym-$APK_VERSION.apk" "openGym-$APK_VERSION.apk.sha256"; do
curl --fail --silent --show-error \
--header "JOB-TOKEN: $CI_JOB_TOKEN" \
--upload-file "$f" \
"$CI_API_V4_URL/projects/$CI_PROJECT_ID/packages/generic/opengym-android/$APK_VERSION/$f"
echo "uploaded $f to the generic package registry"
done
fi
artifacts:
name: "openGym-apk-$CI_COMMIT_REF_SLUG"
paths:
- "openGym-*.apk"
- "openGym-*.apk.sha256"
reports:
dotenv: apk.env
expire_in: 30 days
@@ -253,7 +260,9 @@ build:apk:
# ---------------------------------------------------------------------------- pages
# The browser-only demo: https://duartesantos8.gitlab.io/opengym/
# The browser-only demo: https://opengym-bc111a.gitlab.io/
# (that opaque host is GitLab's "unique domain" for Pages, on by default; the tidier
# https://duartesantos8.gitlab.io/opengym/ 308s to it. Settings → Pages turns it off.)
# Pages serves static files only, so this build has no backend — VITE_DEMO=1 makes the
# app boot straight into guest mode with a seeded example history (frontend/src/lib/demo.js).
# Vite's base is './', so the bundle drops into a subdirectory unchanged.
@@ -316,6 +325,9 @@ release:
- name: "openGym-$APK_VERSION.apk (Android, sideload)"
url: "$CI_API_V4_URL/projects/$CI_PROJECT_ID/packages/generic/opengym-android/$APK_VERSION/openGym-$APK_VERSION.apk"
link_type: package
- name: "openGym-$APK_VERSION.apk.sha256 (checksum)"
url: "$CI_API_V4_URL/projects/$CI_PROJECT_ID/packages/generic/opengym-android/$APK_VERSION/openGym-$APK_VERSION.apk.sha256"
link_type: other
- name: "Container images (api + web)"
url: "$CI_PROJECT_URL/container_registry"
link_type: image
+3 -2
View File
@@ -60,8 +60,9 @@ since the GitHub account went.
the fatigue probe and the MCP suite all run on GitLab CI. The GitHub Actions workflows stay
in `.github/` for the day that account comes back.
- 🌐 The in-browser demo also builds to GitLab Pages
(<https://duartesantos8.gitlab.io/opengym/>); <https://opengym.duarte-santos.ch/demo/>
remains the copy the landing page embeds.
(<https://opengym-bc111a.gitlab.io/>, which <https://duartesantos8.gitlab.io/opengym/>
redirects to); <https://opengym.duarte-santos.ch/demo/> remains the copy the landing page
embeds.
- 📄 Security reports have a private channel again: a **confidential issue** on GitLab. See
`SECURITY.md`.
+3
View File
@@ -163,6 +163,9 @@
</ul>
<a class="btn" href="openGym.apk" download>Download for Android</a>
<p class="meta">v1.2.8 · 4.3 MB · Android 6.0+ · signed APK, sideload (your browser will ask — that's normal outside the Play Store)</p>
<p class="meta">Every release is also built and signed by CI and attached to the
<a href="https://gitlab.com/DuarteSantos8/opengym/-/releases" rel="noopener">GitLab
releases page</a>, checksums and all.</p>
<p class="meta"><b>iPhone?</b> Apple doesn't allow installs outside the App Store — use the
self-hosted version as a home-screen app instead, or see <a href="docs.html#iphone">the docs</a>.</p>
</div>