mirror of
https://github.com/pepaskopec-blip/Graduately.git
synced 2026-10-27 07:04:35 +00:00
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:
parent
8891bb2a38
commit
bce63459d1
35 changed files with 197 additions and 158 deletions
|
|
@ -33,5 +33,5 @@ fi
|
|||
|
||||
mkdir -p "$root/ios/Payload"
|
||||
cp -R "$app" "$root/ios/Payload/Graduately.app"
|
||||
(cd "$root/ios" && zip -r -q "$root/dist-ios/maturita-ios.ipa" Payload)
|
||||
echo "wrote $root/dist-ios/maturita-ios.ipa"
|
||||
(cd "$root/ios" && zip -r -q "$root/dist-ios/graduately-ios.ipa" Payload)
|
||||
echo "wrote $root/dist-ios/graduately-ios.ipa"
|
||||
|
|
|
|||
|
|
@ -16,13 +16,13 @@ case "$ARCH" in
|
|||
;;
|
||||
esac
|
||||
|
||||
OUT_NAME="maturita-linux-${ARCH}.AppImage"
|
||||
OUT_NAME="graduately-linux-${ARCH}.AppImage"
|
||||
APPDIR="$ROOT/dist/AppDir"
|
||||
TOOLS="$ROOT/dist/tools"
|
||||
# Real 512×512 PNG (assets/app-icon.png is 1024×1024 and linuxdeploy rejects it).
|
||||
ICON_512="$ROOT/data/share/icons/hicolor/512x512/apps/maturita.png"
|
||||
|
||||
echo "==> Building maturita"
|
||||
echo "==> Building graduately"
|
||||
make -C "$ROOT" clean
|
||||
make -C "$ROOT"
|
||||
|
||||
|
|
@ -34,7 +34,7 @@ mkdir -p "$APPDIR/usr/bin" \
|
|||
"$APPDIR/icons/hicolor/512x512/apps" \
|
||||
"$APPDIR/share"
|
||||
|
||||
cp -f "$ROOT/maturita" "$APPDIR/usr/bin/maturita"
|
||||
cp -f "$ROOT/graduately" "$APPDIR/usr/bin/graduately"
|
||||
cp -f "$ROOT/data/style.css" "$APPDIR/style.css"
|
||||
cp -f "$ROOT/data/changelog.txt" "$APPDIR/changelog.txt"
|
||||
cp -f "$ICON_512" "$APPDIR/icons/hicolor/512x512/apps/maturita.png"
|
||||
|
|
@ -48,7 +48,7 @@ cp -f "$ROOT/data/share/applications/org.maturita.Maturita.desktop" \
|
|||
cp -f "$ROOT/data/share/applications/org.maturita.Maturita.desktop" \
|
||||
"$APPDIR/org.maturita.Maturita.desktop"
|
||||
# linuxdeploy expects Icon= without path and a matching PNG at AppDir root.
|
||||
sed -i.bak 's|^Exec=.*|Exec=maturita|' "$APPDIR/org.maturita.Maturita.desktop"
|
||||
sed -i.bak 's|^Exec=.*|Exec=graduately|' "$APPDIR/org.maturita.Maturita.desktop"
|
||||
sed -i.bak 's|^Icon=.*|Icon=maturita|' "$APPDIR/org.maturita.Maturita.desktop"
|
||||
rm -f "$APPDIR/org.maturita.Maturita.desktop.bak"
|
||||
|
||||
|
|
@ -92,7 +92,7 @@ export PATH="$TOOLS:$PATH"
|
|||
|
||||
run_linuxdeploy \
|
||||
--appdir "$APPDIR" \
|
||||
--executable "$APPDIR/usr/bin/maturita" \
|
||||
--executable "$APPDIR/usr/bin/graduately" \
|
||||
--desktop-file "$APPDIR/org.maturita.Maturita.desktop" \
|
||||
--icon-file "$APPDIR/maturita.png" \
|
||||
--plugin gtk \
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ case "$arch" in
|
|||
esac
|
||||
|
||||
dd="$root/macos/DerivedData"
|
||||
out_zip="maturita-macos-${arch_tag}.zip"
|
||||
out_zip="graduately-macos-${arch_tag}.zip"
|
||||
mkdir -p "$dd" "$root/dist"
|
||||
|
||||
xcodebuild \
|
||||
|
|
|
|||
|
|
@ -26,11 +26,11 @@ expect_zip() {
|
|||
bad "$zip missing $want (has: $(unzip -Z1 "$zip" | tr '\n' ' '))"
|
||||
fi
|
||||
}
|
||||
expect_zip installers/maturita-installer-macos.zip "Nainstalovat Graduately.app/Contents/MacOS/installer"
|
||||
expect_zip installers/maturita-installer-linux.zip "maturita-installer-linux.sh"
|
||||
expect_zip installers/maturita-installer-windows.zip "maturita-installer-windows.cmd"
|
||||
expect_zip installers/maturita-installer-android.zip "Stahnout Graduately.html"
|
||||
expect_zip installers/maturita-installer-ios.zip "Jak nainstalovat Graduately.html"
|
||||
expect_zip installers/graduately-installer-macos.zip "Nainstalovat Graduately.app/Contents/MacOS/installer"
|
||||
expect_zip installers/graduately-installer-linux.zip "graduately-installer-linux.sh"
|
||||
expect_zip installers/graduately-installer-windows.zip "graduately-installer-windows.cmd"
|
||||
expect_zip installers/graduately-installer-android.zip "Stahnout Graduately.html"
|
||||
expect_zip installers/graduately-installer-ios.zip "Jak nainstalovat Graduately.html"
|
||||
|
||||
say "Extract content.json"
|
||||
tmp=$(mktemp)
|
||||
|
|
@ -55,14 +55,14 @@ ok "content packs"
|
|||
rm -f "$tmp"
|
||||
|
||||
say "GTK binary"
|
||||
if [[ -x ./maturita ]]; then
|
||||
./maturita --help >/dev/null
|
||||
ok "maturita --help"
|
||||
if [[ -x ./graduately ]]; then
|
||||
./graduately --help >/dev/null
|
||||
ok "graduately --help"
|
||||
else
|
||||
say "Building GTK binary"
|
||||
make -j"$(sysctl -n hw.ncpu 2>/dev/null || nproc 2>/dev/null || echo 2)"
|
||||
./maturita --help >/dev/null
|
||||
ok "maturita --help after make"
|
||||
./graduately --help >/dev/null
|
||||
ok "graduately --help after make"
|
||||
fi
|
||||
|
||||
say "Published builds tip"
|
||||
|
|
@ -73,20 +73,29 @@ sha=$(curl -fsSL --max-time 20 \
|
|||
if [[ ${#sha} -eq 40 ]]; then
|
||||
ok "builds tip ${sha:0:7}"
|
||||
for asset in \
|
||||
maturita-macos-arm64.zip \
|
||||
maturita-windows-x64.zip \
|
||||
maturita-linux-x86_64.AppImage \
|
||||
maturita-android.apk \
|
||||
maturita-ios.ipa \
|
||||
graduately-macos-arm64.zip \
|
||||
graduately-windows-x64.zip \
|
||||
graduately-linux-x86_64.AppImage \
|
||||
graduately-android.apk \
|
||||
graduately-ios.ipa \
|
||||
VERSION
|
||||
do
|
||||
code=$(curl -sI -o /dev/null -w '%{http_code}' --max-time 30 \
|
||||
"https://raw.githubusercontent.com/$REPO/$sha/$asset")
|
||||
if [[ "$code" == "200" ]]; then
|
||||
ok "$asset ($code)"
|
||||
else
|
||||
bad "$asset HTTP $code"
|
||||
continue
|
||||
fi
|
||||
legacy="${asset/graduately/maturita}"
|
||||
if [[ "$legacy" != "$asset" ]]; then
|
||||
code2=$(curl -sI -o /dev/null -w '%{http_code}' --max-time 30 \
|
||||
"https://raw.githubusercontent.com/$REPO/$sha/$legacy")
|
||||
if [[ "$code2" == "200" ]]; then
|
||||
ok "$asset not yet; legacy $legacy still published ($code2)"
|
||||
continue
|
||||
fi
|
||||
fi
|
||||
bad "$asset HTTP $code"
|
||||
done
|
||||
else
|
||||
bad "could not resolve builds tip SHA"
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
set -euo pipefail
|
||||
|
||||
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
|
||||
TMP="$(mktemp -d "${TMPDIR:-/tmp}/maturita-bundle-commit.XXXXXX")"
|
||||
TMP="$(mktemp -d "${TMPDIR:-/tmp}/graduately-bundle-commit.XXXXXX")"
|
||||
trap 'rm -rf "$TMP"' EXIT
|
||||
|
||||
fail() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue