Rename published packages and installers from maturita-* to graduately-*.

Keep temporary legacy aliases on the builds branch so older updaters still find downloads.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
pepaskopec-blip 2026-09-23 21:30:03 +02:00
commit bce63459d1
35 changed files with 197 additions and 158 deletions

View file

@ -31,14 +31,14 @@
<p>Klepni na tlačítko. Až se APK stáhne, otevři ho a povol instalaci z neznámých zdrojů.</p>
<p>
<a class="btn" id="dl"
href="https://raw.githubusercontent.com/pepaskopec-blip/Graduately/refs/heads/builds/maturita-android.apk">
href="https://raw.githubusercontent.com/pepaskopec-blip/Graduately/refs/heads/builds/graduately-android.apk">
Stáhnout APK
</a>
</p>
<p>
Když odkaz hlásí 404, otevři
<a href="https://github.com/pepaskopec-blip/Graduately/tree/builds">větev builds</a>
a stáhni <code>maturita-android.apk</code> odtud.
a stáhni <code>graduately-android.apk</code> odtud.
</p>
<script>
(function () {
@ -48,7 +48,7 @@
.then(function (d) {
if (d && d.sha) {
document.getElementById("dl").href =
"https://raw.githubusercontent.com/" + repo + "/" + d.sha + "/maturita-android.apk";
"https://raw.githubusercontent.com/" + repo + "/" + d.sha + "/graduately-android.apk";
}
})
.catch(function () {});

Binary file not shown.

Binary file not shown.

View file

@ -5,17 +5,17 @@
# raw.githubusercontent.com, so this script looks up the tip of `builds`
# and downloads that commit — not a stale AppImage from the last five minutes.
#
# Double-click the file (or run: sh maturita-installer-linux.sh).
# Double-click the file (or run: sh graduately-installer-linux.sh).
# The app updates itself from then on.
set -eu
REPO="pepaskopec-blip/Graduately"
BRANCH="builds"
ASSET="maturita-linux-x86_64.AppImage"
ASSET="graduately-linux-x86_64.AppImage"
DEST_DIR="$HOME/Applications"
DEST="$DEST_DIR/maturita.AppImage"
DEST="$DEST_DIR/graduately.AppImage"
DESKTOP_DIR="$HOME/.local/share/applications"
ICON_DIR="$HOME/.local/share/icons/hicolor/512x512/apps"
@ -54,10 +54,13 @@ say "Looking up the latest build..."
sha=$(builds_sha)
[ ${#sha} -eq 40 ] || die "could not find the latest build on GitHub."
URL="https://raw.githubusercontent.com/$REPO/$sha/$ASSET"
LEGACY_URL="https://raw.githubusercontent.com/$REPO/$sha/maturita-linux-x86_64.AppImage"
say "Downloading build $(printf '%.7s' "$sha")..."
curl -fL --progress-bar --max-time 1800 -o "$tmp/$ASSET" "$URL" ||
die "the download failed. Check your internet connection."
if ! curl -fL --progress-bar --max-time 1800 -o "$tmp/$ASSET" "$URL"; then
curl -fL --progress-bar --max-time 1800 -o "$tmp/$ASSET" "$LEGACY_URL" ||
die "the download failed. Check your internet connection."
fi
say "Installing to $DEST"
chmod +x "$tmp/$ASSET"

Binary file not shown.

View file

@ -11,7 +11,7 @@ set -eu
REPO="pepaskopec-blip/Graduately"
BRANCH="builds"
ASSET="maturita-macos-arm64.zip"
ASSET="graduately-macos-arm64.zip"
# An .app has no TTY; show dialogs so a regular user never needs Terminal.
GUI=0
@ -97,13 +97,27 @@ fi
sha=$(builds_sha)
[ ${#sha} -eq 40 ] || die "Nepodařilo se najít aktuální verzi na GitHubu."
URL="https://raw.githubusercontent.com/$REPO/$sha/$ASSET"
LEGACY_ASSET="maturita-macos-arm64.zip"
LEGACY_URL="https://raw.githubusercontent.com/$REPO/$sha/$LEGACY_ASSET"
download_ok=0
if [ "$GUI" = 1 ]; then
curl -fsSL --max-time 1800 -o "$tmp/$ASSET" "$URL" ||
if curl -fsSL --max-time 1800 -o "$tmp/$ASSET" "$URL"; then
download_ok=1
elif curl -fsSL --max-time 1800 -o "$tmp/$ASSET" "$LEGACY_URL"; then
download_ok=1
fi
[ "$download_ok" = 1 ] ||
die "Stažení se nezdařilo. Zkontrolujte internet a zkuste to znovu."
else
say "Downloading build $(printf '%.7s' "$sha")..."
curl -fL --progress-bar --max-time 1800 -o "$tmp/$ASSET" "$URL" ||
if curl -fL --progress-bar --max-time 1800 -o "$tmp/$ASSET" "$URL"; then
download_ok=1
elif curl -fL --progress-bar --max-time 1800 -o "$tmp/$ASSET" "$LEGACY_URL"; then
say "(legacy package name)"
download_ok=1
fi
[ "$download_ok" = 1 ] ||
die "Stažení se nezdařilo. Zkontrolujte internet a zkuste to znovu."
say "Unpacking..."
fi

Binary file not shown.

View file

@ -10,7 +10,7 @@ rem Double-click the file to run it. The app updates itself from then on.
setlocal EnableDelayedExpansion
set "REPO=pepaskopec-blip/Graduately"
set "BRANCH=builds"
set "ASSET=maturita-windows-x64.zip"
set "ASSET=graduately-windows-x64.zip"
set "DEST=%LOCALAPPDATA%\Programs\Graduately"
echo Installing Graduately
@ -19,7 +19,7 @@ echo ---------------------
where curl >nul 2>&1 || goto :no_tools
where tar >nul 2>&1 || goto :no_tools
set "TMP_DIR=%TEMP%\maturita-installer"
set "TMP_DIR=%TEMP%\graduately-installer"
rmdir /s /q "%TMP_DIR%" 2>nul
mkdir "%TMP_DIR%" || goto :fail_tmp
@ -28,9 +28,11 @@ set "SHA="
for /f "usebackq delims=" %%S in (`powershell -NoProfile -ExecutionPolicy Bypass -Command "$r = & curl.exe -fsSL --max-time 20 'https://github.com/%REPO%/commits/%BRANCH%.atom'; if ($r -match 'Commit/([0-9a-f]{40})') { $Matches[1] }"`) do set "SHA=%%S"
if not defined SHA goto :fail_download
set "URL=https://raw.githubusercontent.com/%REPO%/%SHA%/%ASSET%"
set "LEGACY_URL=https://raw.githubusercontent.com/%REPO%/%SHA%/maturita-windows-x64.zip"
echo Downloading build %SHA:~0,7%...
curl -fL --progress-bar --max-time 1800 -o "%TMP_DIR%\%ASSET%" "%URL%" || goto :fail_download
curl -fL --progress-bar --max-time 1800 -o "%TMP_DIR%\%ASSET%" "%URL%"
if errorlevel 1 curl -fL --progress-bar --max-time 1800 -o "%TMP_DIR%\%ASSET%" "%LEGACY_URL%" || goto :fail_download
echo Installing to %DEST%
if not exist "%DEST%" mkdir "%DEST%" || goto :fail_dest
@ -40,13 +42,13 @@ tar -xf "%TMP_DIR%\%ASSET%" -C "%DEST%" || goto :fail_extract
set "LNK=%APPDATA%\Microsoft\Windows\Start Menu\Programs\Graduately.lnk"
powershell -NoProfile -ExecutionPolicy Bypass -Command ^
"$s=(New-Object -ComObject WScript.Shell).CreateShortcut('%LNK%');" ^
"$s.TargetPath='%DEST%\maturita.exe';$s.WorkingDirectory='%DEST%';$s.Save()" >nul 2>&1
"$s.TargetPath='%DEST%\graduately.exe';$s.WorkingDirectory='%DEST%';$s.Save()" >nul 2>&1
rmdir /s /q "%TMP_DIR%" 2>nul
echo.
echo Done. Starting the app...
start "" "%DEST%\maturita.exe"
start "" "%DEST%\graduately.exe"
exit /b 0
:no_tools

Binary file not shown.

View file

@ -46,14 +46,14 @@
</p>
<p>
<a class="btn" id="dl"
href="https://raw.githubusercontent.com/pepaskopec-blip/Graduately/refs/heads/builds/maturita-ios.ipa">
href="https://raw.githubusercontent.com/pepaskopec-blip/Graduately/refs/heads/builds/graduately-ios.ipa">
Stáhnout IPA
</a>
</p>
<p>
Když odkaz hlásí 404, otevři
<a href="https://github.com/pepaskopec-blip/Graduately/tree/builds">větev builds</a>
a stáhni <code>maturita-ios.ipa</code> odtud.
a stáhni <code>graduately-ios.ipa</code> odtud.
</p>
<script>
(function () {
@ -63,7 +63,7 @@
.then(function (d) {
if (d && d.sha) {
document.getElementById("dl").href =
"https://raw.githubusercontent.com/" + repo + "/" + d.sha + "/maturita-ios.ipa";
"https://raw.githubusercontent.com/" + repo + "/" + d.sha + "/graduately-ios.ipa";
}
})
.catch(function () {});

View file

@ -7,7 +7,7 @@ set -eu
cd "$(dirname "$0")"
here=$PWD
chmod +x maturita-installer-macos.command maturita-installer-linux.sh
chmod +x graduately-installer-macos.command graduately-installer-linux.sh
tmp=$(mktemp -d)
trap 'rm -rf "$tmp"' EXIT INT TERM
@ -15,25 +15,25 @@ trap 'rm -rf "$tmp"' EXIT INT TERM
app="$tmp/Nainstalovat Graduately.app"
mkdir -p "$app/Contents/MacOS"
cp macos/Info.plist "$app/Contents/Info.plist"
cp maturita-installer-macos.command "$app/Contents/MacOS/installer"
cp graduately-installer-macos.command "$app/Contents/MacOS/installer"
chmod +x "$app/Contents/MacOS/installer"
rm -f "$here/maturita-installer-macos.zip"
(cd "$tmp" && zip -r -q "$here/maturita-installer-macos.zip" \
rm -f "$here/graduately-installer-macos.zip"
(cd "$tmp" && zip -r -q "$here/graduately-installer-macos.zip" \
"Nainstalovat Graduately.app")
zip -q -FS maturita-installer-windows.zip maturita-installer-windows.cmd
zip -q -FS maturita-installer-linux.zip maturita-installer-linux.sh
zip -q -FS graduately-installer-windows.zip graduately-installer-windows.cmd
zip -q -FS graduately-installer-linux.zip graduately-installer-linux.sh
# Browsers download a zip; they render .html as a text tab on GitHub.
# The page looks up the tip of `builds` so Fastly cannot serve a cached 404
# for the branch-named APK URL.
cp maturita-android.html "$tmp/Stahnout Graduately.html"
rm -f "$here/maturita-installer-android.zip"
(cd "$tmp" && zip -q -FS "$here/maturita-installer-android.zip" \
cp graduately-android.html "$tmp/Stahnout Graduately.html"
rm -f "$here/graduately-installer-android.zip"
(cd "$tmp" && zip -q -FS "$here/graduately-installer-android.zip" \
"Stahnout Graduately.html")
cp maturita-ios.html "$tmp/Jak nainstalovat Graduately.html"
rm -f "$here/maturita-installer-ios.zip"
(cd "$tmp" && zip -q -FS "$here/maturita-installer-ios.zip" \
cp graduately-ios.html "$tmp/Jak nainstalovat Graduately.html"
rm -f "$here/graduately-installer-ios.zip"
(cd "$tmp" && zip -q -FS "$here/graduately-installer-ios.zip" \
"Jak nainstalovat Graduately.html")