Add standalone build and packaging workflow docs/scripts
This commit is contained in:
25
build/package_macos.sh
Normal file
25
build/package_macos.sh
Normal file
@@ -0,0 +1,25 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
cd "$ROOT_DIR"
|
||||
|
||||
APP_BUNDLE="dist/PDFtoICS.app"
|
||||
VERSION="$(tr -d '[:space:]' < version.txt)"
|
||||
OUT_DIR="release"
|
||||
ARCHIVE_NAME="PDFtoICS-macos-v${VERSION}.zip"
|
||||
|
||||
if [ ! -d "$APP_BUNDLE" ]; then
|
||||
echo "❌ App-Bundle nicht gefunden: $APP_BUNDLE"
|
||||
echo "💡 Bitte zuerst ausführen: ./build/build_macos.sh"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
mkdir -p "$OUT_DIR"
|
||||
|
||||
echo "📦 Erstelle Archiv: $OUT_DIR/$ARCHIVE_NAME"
|
||||
rm -f "$OUT_DIR/$ARCHIVE_NAME"
|
||||
(cd dist && zip -r "../$OUT_DIR/$ARCHIVE_NAME" "PDFtoICS.app" >/dev/null)
|
||||
|
||||
echo "✅ Fertig: $OUT_DIR/$ARCHIVE_NAME"
|
||||
Reference in New Issue
Block a user