Skip to content

Commit 498bdb0

Browse files
committed
feat: enhance build scripts to dynamically handle app names for IPA creation
1 parent e0a5c02 commit 498bdb0

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

.github/workflows/build-ios.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,9 +221,13 @@ jobs:
221221
# Copy the .app to Payload
222222
cp -r "$APP_PATH" "$PWD/build/output/Payload/"
223223
224+
# Get app name from path
225+
APP_NAME=$(basename "$APP_PATH")
226+
echo "📱 App name: $APP_NAME"
227+
224228
# Remove existing code signatures (AltStore will re-sign)
225-
find "$PWD/build/output/Payload/CBVVPN.app" -name "_CodeSignature" -type d -prune -exec rm -rf {} +
226-
find "$PWD/build/output/Payload/CBVVPN.app" -name "embedded.mobileprovision" -type f -exec rm -f {} +
229+
find "$PWD/build/output/Payload/$APP_NAME" -name "_CodeSignature" -type d -prune -exec rm -rf {} +
230+
find "$PWD/build/output/Payload/$APP_NAME" -name "embedded.mobileprovision" -type f -exec rm -f {} +
227231
228232
# Create IPA with proper structure
229233
cd "$PWD/build/output"

.github/workflows/release.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,9 +290,13 @@ jobs:
290290
# Copy the .app to Payload
291291
cp -r "$APP_PATH" "$PWD/build/output/Payload/"
292292
293+
# Get app name from path
294+
APP_NAME=$(basename "$APP_PATH")
295+
echo "📱 App name: $APP_NAME"
296+
293297
# Remove existing code signatures (AltStore will re-sign)
294-
find "$PWD/build/output/Payload/CBVVPN.app" -name "_CodeSignature" -type d -prune -exec rm -rf {} +
295-
find "$PWD/build/output/Payload/CBVVPN.app" -name "embedded.mobileprovision" -type f -exec rm -f {} +
298+
find "$PWD/build/output/Payload/$APP_NAME" -name "_CodeSignature" -type d -prune -exec rm -rf {} +
299+
find "$PWD/build/output/Payload/$APP_NAME" -name "embedded.mobileprovision" -type f -exec rm -f {} +
296300
297301
cd "$PWD/build/output"
298302
zip -r CBProProxy.ipa Payload

0 commit comments

Comments
 (0)