Skip to content

Commit a1eee82

Browse files
committed
feat: add app settings store for managing auto-switch unhealthy proxy feature
1 parent 036f3c3 commit a1eee82

File tree

2 files changed

+29
-11
lines changed

2 files changed

+29
-11
lines changed

.github/workflows/build-ios.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,13 @@ jobs:
119119
cd ios
120120
pod install --repo-update
121121
122+
- name: Update iOS Info.plist versions
123+
run: |
124+
/usr/libexec/PlistBuddy -c "Set :CFBundleShortVersionString ${{ steps.version.outputs.version }}" ios/CBVVPN/Info.plist
125+
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion ${{ github.run_number }}" ios/CBVVPN/Info.plist
126+
/usr/libexec/PlistBuddy -c "Set :CFBundleShortVersionString ${{ steps.version.outputs.version }}" ios/CBVVPNProxyExtension/Info.plist
127+
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion ${{ github.run_number }}" ios/CBVVPNProxyExtension/Info.plist
128+
122129
- name: Verify workspace creation
123130
run: |
124131
cd ios
@@ -143,7 +150,7 @@ jobs:
143150
-archivePath "$PWD/build/CBProProxy.xcarchive" \
144151
-sdk iphoneos \
145152
-destination 'generic/platform=iOS' \
146-
CODE_SIGN_IDENTITY="-" \
153+
CODE_SIGN_IDENTITY="" \
147154
CODE_SIGNING_REQUIRED=NO \
148155
CODE_SIGNING_ALLOWED=NO \
149156
DEVELOPMENT_TEAM="" \
@@ -174,9 +181,9 @@ jobs:
174181
exit 1
175182
fi
176183
177-
# Remove code signature (important for TrollStore)
178-
rm -rf "$PWD/build/output/Payload/CBVVPN.app/_CodeSignature" || true
179-
rm -f "$PWD/build/output/Payload/CBVVPN.app/embedded.mobileprovision" || true
184+
# Remove code signatures and provisioning profiles (important for unsigned installs)
185+
find "$PWD/build/output/Payload/CBVVPN.app" -name "_CodeSignature" -type d -prune -exec rm -rf {} +
186+
find "$PWD/build/output/Payload/CBVVPN.app" -name "embedded.mobileprovision" -type f -exec rm -f {} +
180187
181188
# Create IPA
182189
cd "$PWD/build/output"

.github/workflows/release.yml

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -219,27 +219,33 @@ jobs:
219219
- name: Install CocoaPods
220220
run: gem install cocoapods -v '~> 1.16'
221221

222-
- name: Prebuild Expo iOS
223-
run: |
224-
npx expo prebuild --platform ios --clean
225-
226222
- name: Install iOS dependencies
227223
run: |
228224
cd ios
229225
pod install --repo-update
230226
227+
- name: Update iOS Info.plist versions
228+
run: |
229+
/usr/libexec/PlistBuddy -c "Set :CFBundleShortVersionString ${{ needs.prepare.outputs.version }}" ios/CBVVPN/Info.plist
230+
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion ${{ github.run_number }}" ios/CBVVPN/Info.plist
231+
/usr/libexec/PlistBuddy -c "Set :CFBundleShortVersionString ${{ needs.prepare.outputs.version }}" ios/CBVVPNProxyExtension/Info.plist
232+
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion ${{ github.run_number }}" ios/CBVVPNProxyExtension/Info.plist
233+
231234
- name: Build iOS Archive (Unsigned)
232235
run: |
233236
cd ios
234237
xcodebuild \
235-
-workspace CBProProxy.xcworkspace \
236-
-scheme CBProProxy \
238+
-workspace CBVVPN.xcworkspace \
239+
-scheme CBVVPN \
237240
-configuration Release \
238241
-archivePath "$PWD/build/CBProProxy.xcarchive" \
239242
-sdk iphoneos \
243+
-destination 'generic/platform=iOS' \
240244
CODE_SIGN_IDENTITY="" \
241245
CODE_SIGNING_REQUIRED=NO \
242246
CODE_SIGNING_ALLOWED=NO \
247+
DEVELOPMENT_TEAM="" \
248+
PROVISIONING_PROFILE_SPECIFIER="" \
243249
clean archive
244250
245251
- name: Export IPA (Unsigned)
@@ -249,7 +255,12 @@ jobs:
249255
# Create IPA manually from archive
250256
echo "Creating IPA from archive..."
251257
mkdir -p "$PWD/build/output/Payload"
252-
cp -r "$PWD/build/CBProProxy.xcarchive/Products/Applications/CBProProxy.app" "$PWD/build/output/Payload/"
258+
cp -r "$PWD/build/CBProProxy.xcarchive/Products/Applications/CBVVPN.app" "$PWD/build/output/Payload/"
259+
260+
# Remove code signatures and provisioning profiles (for unsigned install)
261+
find "$PWD/build/output/Payload/CBVVPN.app" -name "_CodeSignature" -type d -prune -exec rm -rf {} +
262+
find "$PWD/build/output/Payload/CBVVPN.app" -name "embedded.mobileprovision" -type f -exec rm -f {} +
263+
253264
cd "$PWD/build/output"
254265
zip -r CBProProxy.ipa Payload
255266
rm -rf Payload

0 commit comments

Comments
 (0)