1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-06-21 09:45:05 +02:00

export ipa for app store

This commit is contained in:
Kyle Spearrin 2020-06-10 10:02:15 -04:00
parent 676efe7253
commit 81a30e580e
3 changed files with 45 additions and 0 deletions

View File

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<!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>provisioningProfiles</key>
<dict>
<key>com.8bit.bitwarden</key>
<string>Dist: Bitwarden 2020</string>
<key>com.8bit.bitwarden.autofill</key>
<string>Dist: Autofill 2020</string>
<key>com.8bit.bitwarden.find-login-action-extension</key>
<string>Dist: Extension 2020</string>
</dict>
</dict>
</plist>

24
.github/scripts/ios/export-ipa.ps1 vendored Normal file
View File

@ -0,0 +1,24 @@
param (
[Parameter(Mandatory=$true)]
[string] $method
)
$rootPath = $env:GITHUB_WORKSPACE;
$resourcesPath = "$rootPath/.github/resources";
$exportOptionsPath = "$resourcesPath/export-options-$method.plist";
$homePath = Resolve-Path "~" | Select-Object -ExpandProperty Path
$archivesPath = "$homePath/Library/Developer/Xcode/Archives";
cd $archivesPath
cd *
ls
xcodebuild -exportArchive -archivePath *.xcarchive -exportPath com.8bit.bitwarden.ipa -exportOptionsPlist $exportOptionsPath
ls
$destPath = "$rootPath/com.8bit.bitwarden.ipa"
Copy-Item com.8bit.bitwarden.ipa $destPath
cd $rootPath
ls

View File

@ -165,3 +165,7 @@ jobs:
shell: pwsh
env:
KEYCHAIN_PASSWORD: ${{ secrets.IOS_KEYCHAIN_PASSWORD }}
- name: Export .ipa for App Store
run: ./.github/scripts/ios/export-ipa.ps1 -method app-store
shell: pwsh