Luftweg ueber Gitea: Manifest und Symbole in auslieferung/ ablegen

This commit is contained in:
Paul Nothaft
2026-08-29 13:03:41 +02:00
parent 959b98c93a
commit 84b0003070
5 changed files with 62 additions and 4 deletions
+8 -4
View File
@@ -22,8 +22,11 @@
set -euo pipefail
if [ $# -lt 1 ]; then
echo "Aufruf: bash scripts/ios-luftweg.sh <basis-url>" >&2
echo "Aufruf: bash scripts/ios-luftweg.sh <basis-url> [zielordner]" >&2
echo "Beispiel: bash scripts/ios-luftweg.sh https://mein-mac.tailnetname.ts.net" >&2
echo "Gitea: bash scripts/ios-luftweg.sh \\" >&2
echo " https://gitea.nothaft.cloud/paul/audi-app/raw/branch/main/companion-app/auslieferung \\" >&2
echo " auslieferung" >&2
exit 1
fi
@@ -37,7 +40,9 @@ fi
HIER="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
APP="$(dirname "$HIER")"
IPA="$APP/auslieferung/App.ipa"
ZIEL="$APP/ios/build/luftweg"
# Zweites Argument erlaubt es, direkt in den versionierten Ordner zu schreiben -
# noetig, wenn nicht ein eigener Host ausliefert, sondern das Repository selbst.
ZIEL="$APP/${2:-ios/build/luftweg}"
[ -f "$IPA" ] || { echo "FEHLER: $IPA fehlt - erst scripts/ios-signieren.sh laufen lassen." >&2; exit 1; }
@@ -50,9 +55,8 @@ PLIST="$(find "$AUSPACK/Payload" -maxdepth 2 -name Info.plist | head -1)"
KENNUNG="$(/usr/libexec/PlistBuddy -c "Print :CFBundleIdentifier" "$PLIST")"
VERSION="$(/usr/libexec/PlistBuddy -c "Print :CFBundleShortVersionString" "$PLIST")"
rm -rf "$ZIEL"
mkdir -p "$ZIEL"
cp "$IPA" "$ZIEL/App.ipa"
[ "$IPA" -ef "$ZIEL/App.ipa" ] || cp "$IPA" "$ZIEL/App.ipa"
cp "$APP/public/symbol-192.png" "$ZIEL/symbol-192.png"
cp "$APP/public/symbol-512.png" "$ZIEL/symbol-512.png"