Skip to content

Commit c68e18a

Browse files
committed
chore: generate an ipa
1 parent 3ea05e5 commit c68e18a

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

ci/Jenkinsfile.ios

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,9 @@ pipeline {
6565
IPHONE_SDK = "iphoneos"
6666
ARCH = "x86_64"
6767
/* iOS app paths */
68-
STATUS_IOS_APP_ARTIFACT = "pkg/${utils.pkgFilename(ext: 'app.zip', arch: getArch(), version: env.VERSION, type: env.APP_TYPE)}"
68+
STATUS_IOS_APP_ARTIFACT = "pkg/${utils.pkgFilename(ext: 'ipa', arch: getArch(), version: env.VERSION, type: env.APP_TYPE)}"
6969
STATUS_IOS_APP = "${WORKSPACE}/mobile/bin/ios/qt6/Status-tablet.app"
70+
STATUS_IOS_IPA = "${WORKSPACE}/mobile/bin/ios/qt6/Status-tablet.ipa"
7071
}
7172

7273
stages {
@@ -102,8 +103,8 @@ pipeline {
102103
stage('Package iOS App') {
103104
steps {
104105
sh 'mkdir -p pkg'
105-
sh "cd mobile/bin/ios/qt6 && zip -r ${env.WORKSPACE}/${env.STATUS_IOS_APP_ARTIFACT} Status-tablet.app"
106-
sh "ls -la ${env.STATUS_IOS_APP_ARTIFACT}"
106+
sh "cp ${env.STATUS_IOS_IPA} ${env.STATUS_IOS_APP_ARTIFACT}"
107+
sh "ls -lh ${env.STATUS_IOS_APP_ARTIFACT}"
107108
}
108109
}
109110

mobile/scripts/buildApp.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,20 @@ else
134134
codesign --verify --verbose "$BIN_DIR/Status-tablet.app"
135135

136136
echo "iOS app signed successfully"
137+
138+
# Create IPA file
139+
echo "Creating IPA file..."
140+
IPA_DIR=$(mktemp -d)
141+
mkdir -p "$IPA_DIR/Payload"
142+
cp -R "$BIN_DIR/Status-tablet.app" "$IPA_DIR/Payload/"
143+
144+
# Create IPA (which is just a zip with .ipa extension)
145+
cd "$IPA_DIR"
146+
zip -r "$BIN_DIR/Status-tablet.ipa" Payload
147+
cd -
148+
149+
rm -rf "$IPA_DIR"
150+
echo "IPA created at $BIN_DIR/Status-tablet.ipa"
137151
fi
138152

139153
echo "Build succeeded"

0 commit comments

Comments
 (0)