mirror of
https://github.com/bitwarden/android.git
synced 2024-12-24 18:08:26 +03:00
cleanup export, ipa artifact
This commit is contained in:
parent
81a30e580e
commit
8e6c6e04a3
3 changed files with 28 additions and 15 deletions
17
.github/resources/export-options-ad-hoc.plist
vendored
Normal file
17
.github/resources/export-options-ad-hoc.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>ad-hoc</string>
|
||||
<key>provisioningProfiles</key>
|
||||
<dict>
|
||||
<key>com.8bit.bitwarden</key>
|
||||
<string>Ad hoc: Bitwarden 2020</string>
|
||||
<key>com.8bit.bitwarden.autofill</key>
|
||||
<string>Ad hoc: Autofill 2020</string>
|
||||
<key>com.8bit.bitwarden.find-login-action-extension</key>
|
||||
<string>Ad hoc: Extension 2020</string>
|
||||
</dict>
|
||||
</dict>
|
||||
</plist>
|
19
.github/scripts/ios/export-ipa.ps1
vendored
19
.github/scripts/ios/export-ipa.ps1
vendored
|
@ -4,21 +4,10 @@
|
|||
)
|
||||
|
||||
$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
|
||||
$exportOptionsPath = "$rootPath/.github/resources/export-options-$method.plist";
|
||||
$archivePath = "$homePath/Library/Developer/Xcode/Archives/*/*.xcarchive";
|
||||
$exportPath = "$rootPath/com.8bit.bitwarden.ipa"
|
||||
|
||||
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
|
||||
xcodebuild -exportArchive -archivePath $archivePath -exportPath $exportPath -exportOptionsPlist $exportOptionsPath
|
||||
|
|
7
.github/workflows/build.yml
vendored
7
.github/workflows/build.yml
vendored
|
@ -169,3 +169,10 @@ jobs:
|
|||
- name: Export .ipa for App Store
|
||||
run: ./.github/scripts/ios/export-ipa.ps1 -method app-store
|
||||
shell: pwsh
|
||||
|
||||
- name: Upload App Store .ipa artifact
|
||||
if: github.ref == 'refs/heads/master'
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: com.8bit.bitwarden.ipa
|
||||
path: ./com.8bit.bitwarden.ipa
|
||||
|
|
Loading…
Reference in a new issue