dist build for all

This commit is contained in:
Kyle Spearrin 2020-09-24 10:20:56 -04:00
parent 874e8056f8
commit 7e1c6e0ee2
2 changed files with 21 additions and 12 deletions

View File

@ -180,3 +180,9 @@ jobs:
env:
APPLE_ID_USERNAME: ${{ secrets.APPLE_ID_USERNAME }}
APPLE_ID_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD }}
- name: Publish to App Store
run: npm run upload:mas
env:
APPLE_ID_USERNAME: ${{ secrets.APPLE_ID_USERNAME }}
APPLE_ID_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD }}

View File

@ -2,7 +2,8 @@
[string] $version,
[switch] $mas,
[switch] $masdev,
[switch] $skipcheckout
[switch] $skipcheckout,
[switch] $skipoutcopy
)
# Dependencies:
@ -45,16 +46,18 @@ if (-not ([string]::IsNullOrEmpty($version))) {
}
npm i
npm run dist:safari
if (-not $skipoutcopy) {
if ($mas) {
npm run dist:safari:mas
Copy-Item -Path $distSafariAppexMas -Destination $pluginsAppex Recurse
}
elseif ($masdev) {
npm run dist:safari
Copy-Item -Path $distSafariAppexMasDev -Destination $pluginsAppex Recurse
}
else {
npm run dist:safari:dmg
Copy-Item -Path $distSafariAppexDmg -Destination $pluginsAppex Recurse
}
}
cd $rootDir