mirror of
https://github.com/bitwarden/mobile
synced 2025-12-18 01:03:24 +00:00
update path sep character
This commit is contained in:
10
.github/scripts/decrypt-secret.ps1
vendored
10
.github/scripts/decrypt-secret.ps1
vendored
@@ -7,17 +7,17 @@
|
|||||||
$homePath = $env:HOME
|
$homePath = $env:HOME
|
||||||
$rootPath = $env:GITHUB_WORKSPACE
|
$rootPath = $env:GITHUB_WORKSPACE
|
||||||
|
|
||||||
$secretInputPath = $rootPath + "\.github\secrets"
|
$secretInputPath = $rootPath + "/.github/secrets"
|
||||||
$input = $secretInputPath + "\" + $filename
|
$input = $secretInputPath + "/" + $filename
|
||||||
|
|
||||||
$passphrase = $env:DECRYPT_FILE_PASSWORD
|
$passphrase = $env:DECRYPT_FILE_PASSWORD
|
||||||
$secretOutputPath = $homePath + "\secrets"
|
$secretOutputPath = $homePath + "/secrets"
|
||||||
|
|
||||||
if ([string]::IsNullOrEmpty($output)) {
|
if ([string]::IsNullOrEmpty($output)) {
|
||||||
if ($filename.EndsWith(".gpg")) {
|
if ($filename.EndsWith(".gpg")) {
|
||||||
$output = $secretOutputPath + "\" + $filename.TrimEnd(".gpg")
|
$output = $secretOutputPath + "/" + $filename.TrimEnd(".gpg")
|
||||||
} else {
|
} else {
|
||||||
$output = $secretOutputPath + "\" + $filename + ".plaintext"
|
$output = $secretOutputPath + "/" + $filename + ".plaintext"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
2
.github/scripts/ios/decrypt-secrets.ps1
vendored
2
.github/scripts/ios/decrypt-secrets.ps1
vendored
@@ -1,6 +1,6 @@
|
|||||||
$rootPath = $env:GITHUB_WORKSPACE;
|
$rootPath = $env:GITHUB_WORKSPACE;
|
||||||
|
|
||||||
$decryptSecretPath = $($rootPath + "\.github\scripts\decrypt-secret.ps1");
|
$decryptSecretPath = $($rootPath + "/.github/scripts/decrypt-secret.ps1");
|
||||||
|
|
||||||
Invoke-Expression "& `"$decryptSecretPath`" -filename bitwarden-mobile-key.p12.gpg"
|
Invoke-Expression "& `"$decryptSecretPath`" -filename bitwarden-mobile-key.p12.gpg"
|
||||||
Invoke-Expression "& `"$decryptSecretPath`" -filename iphone-distribution-cert.p12.gpg"
|
Invoke-Expression "& `"$decryptSecretPath`" -filename iphone-distribution-cert.p12.gpg"
|
||||||
|
|||||||
Reference in New Issue
Block a user