File tree Expand file tree Collapse file tree 1 file changed +48
-0
lines changed
Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build iOS IPA
2+ on : [push]
3+
4+ jobs :
5+ build :
6+ runs-on : macos-latest
7+ steps :
8+ - name : Checkout Code
9+ uses : actions/checkout@v4
10+
11+ - name : Setup Node.js
12+ uses : actions/setup-node@v4
13+ with :
14+ node-version : ' 20'
15+
16+ - name : Install Cordova
17+ run : npm install -g cordova
18+
19+ - name : Create App Project
20+ run : |
21+ cordova create build-folder com.yourname.gtatool GTATool
22+ cd build-folder
23+ cordova platform add ios
24+ cp ../index.html www/index.html
25+ # This prepares the Xcode project
26+ cordova prepare ios
27+
28+ - name : Build and Package
29+ run : |
30+ cd build-folder/platforms/ios
31+ # 1. Build the .app folder
32+ xcodebuild -project GTATool.xcodeproj -scheme GTATool -configuration Debug -sdk iphoneos -allowProvisioningUpdates CODE_SIGNING_ALLOWED=NO
33+
34+ # 2. Create the Payload folder (Required for IPA structure)
35+ mkdir -p Payload
36+
37+ # 3. Find the built .app and move it into Payload
38+ APP_PATH=$(find build -name "*.app" | head -n 1)
39+ cp -r "$APP_PATH" Payload/
40+
41+ # 4. Zip it into a .ipa
42+ zip -r GTATool-Unsigned.ipa Payload
43+
44+ - name : Upload IPA Artifact
45+ uses : actions/upload-artifact@v4
46+ with :
47+ name : gta-tool-ipa
48+ path : build-folder/platforms/ios/GTATool-Unsigned.ipa
You can’t perform that action at this time.
0 commit comments