Initial iOS Hello World app with Gitea Actions build workflow
Build iOS App / Build .ipa and publish source (push) Successful in 1m19s
Build iOS App / Build .ipa and publish source (push) Successful in 1m19s
This commit is contained in:
1 parent
26d5f868bb
commit
caa06677da
9 files changed
+517
No files matched your search
@@ -0,0 +1,81 @@
|
||||
name: Build iOS App
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build .ipa and publish source
|
||||
runs-on: macos
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Select Xcode
|
||||
run: |
|
||||
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
|
||||
xcodebuild -version
|
||||
|
||||
- name: Build unsigned .ipa
|
||||
run: |
|
||||
# Build the app bundle (no signing — SideStore signs on-device)
|
||||
xcodebuild \
|
||||
-project iOS-hello_world.xcodeproj \
|
||||
-scheme iOS-hello_world \
|
||||
-configuration Release \
|
||||
-sdk iphoneos \
|
||||
-derivedDataPath build \
|
||||
CODE_SIGNING_ALLOWED=NO \
|
||||
CODE_SIGNING_REQUIRED=NO \
|
||||
CODE_SIGN_IDENTITY="" \
|
||||
build
|
||||
|
||||
# Locate the .app bundle
|
||||
APP_PATH=$(find build/Build/Products -name "*.app" -type d | head -1)
|
||||
echo "App bundle: $APP_PATH"
|
||||
|
||||
# Package into an .ipa (Payload/App.app structure)
|
||||
mkdir -p dist/Payload
|
||||
cp -R "$APP_PATH" dist/Payload/
|
||||
cd dist
|
||||
zip -r ../iOS-hello_world.ipa Payload
|
||||
cd ..
|
||||
ls -la iOS-hello_world.ipa
|
||||
|
||||
- name: Generate source.json
|
||||
run: |
|
||||
VERSION="1.0"
|
||||
SIZE=$(stat -f%z iOS-hello_world.ipa)
|
||||
DATE=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
|
||||
cat > source.json <<EOF
|
||||
{
|
||||
"name": "Hello World",
|
||||
"identifier": "com.example.helloworld.source",
|
||||
"sourceURL": "https://apps.bueso.eu/ios-hello_world/source.json",
|
||||
"apps": [
|
||||
{
|
||||
"name": "Hello World",
|
||||
"bundleIdentifier": "com.example.helloworld",
|
||||
"developerName": "Luis",
|
||||
"localizedDescription": "Hello World iOS app built via Gitea Actions.",
|
||||
"iconURL": "https://apps.bueso.eu/ios-hello_world/icon.png",
|
||||
"downloadURL": "https://apps.bueso.eu/ios-hello_world/iOS-hello_world.ipa",
|
||||
"version": "$VERSION",
|
||||
"versionDate": "$DATE",
|
||||
"size": $SIZE,
|
||||
"permissions": []
|
||||
}
|
||||
]
|
||||
}
|
||||
EOF
|
||||
cat source.json
|
||||
|
||||
- name: Upload to source host (perlis)
|
||||
run: |
|
||||
# Upload .ipa + source.json to perlis via SSH
|
||||
scp -o StrictHostKeyChecking=no \
|
||||
iOS-hello_world.ipa source.json \
|
||||
"${{ secrets.PERLIS_SSH_USER }}@${{ secrets.PERLIS_SSH_HOST }}:/mnt/appdata/ios-apps/ios-hello_world/"
|
||||
Reference in new issue
Block a user