diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 730c581..fb1fa7f 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -11,6 +11,9 @@ jobs: name: Build .ipa and publish source runs-on: macos env: + # Per-app: change APP_NAME for each app repo. Used everywhere so the + # perlis dir name and file names always match (no hardcoded drift). + APP_NAME: iOS-hello_world # Point xcodebuild at full Xcode without sudo (sudo hangs in CI). # DEVELOPER_DIR overrides the active developer directory for all steps. DEVELOPER_DIR: /Applications/Xcode.app/Contents/Developer @@ -26,8 +29,8 @@ jobs: run: | # Build the app bundle (no signing — SideStore signs on-device) xcodebuild \ - -project iOS-hello_world.xcodeproj \ - -scheme iOS-hello_world \ + -project $APP_NAME.xcodeproj \ + -scheme $APP_NAME \ -configuration Release \ -sdk iphoneos \ -destination 'generic/platform=iOS' \ @@ -45,32 +48,32 @@ jobs: mkdir -p dist/Payload cp -R "$APP_PATH" dist/Payload/ cd dist - zip -r ../iOS-hello_world.ipa Payload + zip -r ../$APP_NAME.ipa Payload cd .. - ls -la iOS-hello_world.ipa + ls -la $APP_NAME.ipa - name: Generate app metadata run: | VERSION="1.0" - SIZE=$(stat -f%z iOS-hello_world.ipa) + SIZE=$(stat -f%z $APP_NAME.ipa) DATE=$(date -u +"%Y-%m-%dT%H:%M:%SZ") # Per-app metadata file. The perlis aggregator folds this into the # root source.json at https://apps.bueso.eu/source.json. - cat > iOS-hello_world.json < $APP_NAME.json <