Skip to content

Delete index.html

Delete index.html #5

Workflow file for this run

name: Build iOS IPA
on: [push]
jobs:
build:
runs-on: macos-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install Cordova
run: npm install -g cordova
- name: Create App Project
run: |
cordova create build-folder com.yourname.gtatool GTATool
cd build-folder
cordova platform add ios
cp ../index.html www/index.html
cordova prepare ios
- name: Build and Package
run: |
cd build-folder/platforms/ios
# Find the .xcodeproj automatically
PROJ_NAME=$(ls -d *.xcodeproj | head -n 1)
SCHEME_NAME=$(basename "$PROJ_NAME" .xcodeproj)
# 1. Build the app (Unsigned)
# We're using 'archive' now because it's more reliable for finding the app later
xcodebuild archive -project "$PROJ_NAME" -scheme "$SCHEME_NAME" -archivePath "./GTATool.xcarchive" -sdk iphoneos CODE_SIGNING_ALLOWED=NO CODE_SIGNING_REQUIRED=NO
# 2. Find the .app inside the archive
mkdir -p Payload
APP_FOLDER=$(find ./GTATool.xcarchive -name "*.app" -type d | head -n 1)
if [ -z "$APP_FOLDER" ]; then
echo "ERROR: Could not find .app folder!"
exit 1
fi
cp -r "$APP_FOLDER" Payload/
# 3. Create the IPA
zip -r GTATool-Unsigned.ipa Payload
- name: Upload IPA Artifact
uses: actions/upload-artifact@v4
with:
name: gta-tool-ipa
path: build-folder/platforms/ios/GTATool-Unsigned.ipa