Skip to content

Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.

Update mobile-app-build.yml (#846)

Leendert de Borstf66fb53706fd
diff --git a/.github/workflows/mobile-app-build.yml b/.github/workflows/mobile-app-build.yml
index dc8ae9d46..bbfe00921 100644
--- a/.github/workflows/mobile-app-build.yml
+++ b/.github/workflows/mobile-app-build.yml
@@ -252,36 +252,16 @@ jobs:
- name: Install Fastlane
run: gem install fastlane
- - name: Decode Certificate
+ - name: Create ASC private key file
run: |
- echo "${{ secrets.IOS_CERTIFICATE_BASE64 }}" | base64 --decode > certificate.p12
- security create-keychain -p "" build.keychain
- security default-keychain -s build.keychain
- security unlock-keychain -p "" build.keychain
- security import certificate.p12 -k build.keychain -P "${{ secrets.IOS_CERTIFICATE_PASSWORD }}" -T /usr/bin/codesign
- security set-key-partition-list -S apple-tool:,apple: -s -k "" build.keychain
-
- - name: Decode Provisioning Profile
- run: |
- echo "${{ secrets.IOS_PROVISIONING_PROFILE_BASE64 }}" | base64 --decode > AliasVault.mobileprovision
- mkdir -p ~/Library/MobileDevice/Provisioning\ Profiles
- cp AliasVault.mobileprovision ~/Library/MobileDevice/Provisioning\ Profiles/
+ mkdir -p $RUNNER_TEMP/asc
+ echo "${{ secrets.ASC_PRIVATE_KEY_BASE64 }}" | base64 --decode > $RUNNER_TEMP/asc/AuthKey.p8
- name: Install CocoaPods
run: |
cd ios
pod install
- - name: Write CI code signing override
- run: |
- cat <<EOF > ios/ci.xcconfig
- CODE_SIGN_STYLE = Manual
- DEVELOPMENT_TEAM = 8PHW4HN3F7
- PROVISIONING_PROFILE_SPECIFIER = AliasVault_GitHub_Actions_Provisioning
- CODE_SIGN_IDENTITY = Apple Distribution
- EOF
-
-
- name: Build iOS IPA
env:
IDEFileSystemSynchronizedGroupsAreEnabled: NO
@@ -301,7 +281,10 @@ jobs:
-configuration "$XCODE_CONFIGURATION" \
-archivePath "$XCODE_ARCHIVE_PATH" \
-destination 'generic/platform=iOS' \
- -xcconfig ci.xcconfig \
+ -allowProvisioningUpdates \
+ -authenticationKeyPath $RUNNER_TEMP/asc/AuthKey.p8 \
+ -authenticationKeyID ${{ secrets.ASC_KEY_ID }} \
+ -authenticationKeyIssuerID ${{ secrets.ASC_ISSUER_ID }} \
archive
xcodebuild -exportArchive \
-archivePath "$XCODE_ARCHIVE_PATH" \
diff --git a/apps/mobile-app/ios/exportOptions.plist b/apps/mobile-app/ios/exportOptions.plist
index 4dbc2aeb4..076df9616 100644
--- a/apps/mobile-app/ios/exportOptions.plist
+++ b/apps/mobile-app/ios/exportOptions.plist
@@ -2,24 +2,15 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
- <key>method</key>
- <string>app-store</string>
- <key>teamID</key>
- <string>$(DEVELOPMENT_TEAM)</string>
- <key>signingStyle</key>
- <string>manual</string>
- <key>provisioningProfiles</key>
- <dict>
- <key>net.aliasvault.app</key>
- <string>$(PROVISIONING_PROFILE_SPECIFIER)</string>
- </dict>
- <key>signingCertificate</key>
- <string>Apple Distribution</string>
- <key>uploadBitcode</key>
- <false/>
- <key>uploadSymbols</key>
- <true/>
- <key>compileBitcode</key>
- <false/>
+ <key>method</key>
+ <string>app-store</string>
+ <key>signingStyle</key>
+ <string>automatic</string>
+ <key>destination</key>
+ <string>export</string>
+ <key>stripSwiftSymbols</key>
+ <true/>
+ <key>compileBitcode</key>
+ <true/>
</dict>
-</plist>
+</plist>
\ No newline at end of file