mirror of
https://github.com/bitwarden/android.git
synced 2025-01-11 18:57:39 +03:00
export ipa for app store
This commit is contained in:
parent
676efe7253
commit
81a30e580e
3 changed files with 45 additions and 0 deletions
17
.github/resources/export-options-app-store.plist
vendored
Normal file
17
.github/resources/export-options-app-store.plist
vendored
Normal 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
24
.github/scripts/ios/export-ipa.ps1
vendored
Normal 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
|
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
|
@ -165,3 +165,7 @@ jobs:
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
env:
|
env:
|
||||||
KEYCHAIN_PASSWORD: ${{ secrets.IOS_KEYCHAIN_PASSWORD }}
|
KEYCHAIN_PASSWORD: ${{ secrets.IOS_KEYCHAIN_PASSWORD }}
|
||||||
|
|
||||||
|
- name: Export .ipa for App Store
|
||||||
|
run: ./.github/scripts/ios/export-ipa.ps1 -method app-store
|
||||||
|
shell: pwsh
|
||||||
|
|
Loading…
Reference in a new issue