mirror of
https://github.com/bitwarden/android.git
synced 2024-12-24 18:08:26 +03:00
change all seps to /
so that it works x-platform
This commit is contained in:
parent
ba9bafcb5f
commit
1c9a6a02af
7 changed files with 21 additions and 21 deletions
2
.github/scripts/android/build.ps1
vendored
2
.github/scripts/android/build.ps1
vendored
|
@ -4,7 +4,7 @@
|
||||||
)
|
)
|
||||||
|
|
||||||
$rootPath = $env:GITHUB_WORKSPACE;
|
$rootPath = $env:GITHUB_WORKSPACE;
|
||||||
$androidPath = $($rootPath + "\src\Android\Android.csproj");
|
$androidPath = $($rootPath + "/src/Android/Android.csproj");
|
||||||
|
|
||||||
Write-Output "########################################"
|
Write-Output "########################################"
|
||||||
Write-Output "##### Build $configuration Configuration"
|
Write-Output "##### Build $configuration Configuration"
|
||||||
|
|
6
.github/scripts/android/clean-fdroid.ps1
vendored
6
.github/scripts/android/clean-fdroid.ps1
vendored
|
@ -1,9 +1,9 @@
|
||||||
$rootPath = $env:GITHUB_WORKSPACE;
|
$rootPath = $env:GITHUB_WORKSPACE;
|
||||||
|
|
||||||
$androidPath = $($rootPath + "\src\Android\Android.csproj");
|
$androidPath = $($rootPath + "/src/Android/Android.csproj");
|
||||||
$appPath = $($rootPath + "\src\App\App.csproj");
|
$appPath = $($rootPath + "/src/App/App.csproj");
|
||||||
|
|
||||||
$androidManifest = $($rootPath + "\src\Android\Properties\AndroidManifest.xml");
|
$androidManifest = $($rootPath + "/src/Android/Properties/AndroidManifest.xml");
|
||||||
|
|
||||||
Write-Output "########################################"
|
Write-Output "########################################"
|
||||||
Write-Output "##### Clean Android and App"
|
Write-Output "##### Clean Android and App"
|
||||||
|
|
10
.github/scripts/android/decrypt-secrets.ps1
vendored
10
.github/scripts/android/decrypt-secrets.ps1
vendored
|
@ -1,15 +1,15 @@
|
||||||
$rootPath = $env:GITHUB_WORKSPACE;
|
$rootPath = $env:GITHUB_WORKSPACE;
|
||||||
|
|
||||||
$decryptSecretPath = $($rootPath + "\.github\scripts\decrypt-secret.ps1");
|
$decryptSecretPath = $($rootPath + "/.github/scripts/decrypt-secret.ps1");
|
||||||
|
|
||||||
$appKeystorePlayFilename = "app_play-keystore.jks";
|
$appKeystorePlayFilename = "app_play-keystore.jks";
|
||||||
$appKeystorePlayPath = $($rootPath + "\src\Android\$appKeystorePlayFilename");
|
$appKeystorePlayPath = $($rootPath + "/src/Android/$appKeystorePlayFilename");
|
||||||
$appKeystoreUploadFilename = "app_upload-keystore.jks";
|
$appKeystoreUploadFilename = "app_upload-keystore.jks";
|
||||||
$appKeystoreUploadPath = $($rootPath + "\src\Android\$appKeystoreUploadFilename");
|
$appKeystoreUploadPath = $($rootPath + "/src/Android/$appKeystoreUploadFilename");
|
||||||
$appKeystoreFdroidFilename = "app_fdroid-keystore.jks";
|
$appKeystoreFdroidFilename = "app_fdroid-keystore.jks";
|
||||||
$appKeystoreFdroidPath = $($rootPath + "\src\Android\$appKeystoreFdroidFilename");
|
$appKeystoreFdroidPath = $($rootPath + "/src/Android/$appKeystoreFdroidFilename");
|
||||||
$googleServicesFilename = "google-services.json";
|
$googleServicesFilename = "google-services.json";
|
||||||
$googleServicesPath = $($rootPath + "\src\Android\$googleServicesFilename");
|
$googleServicesPath = $($rootPath + "/src/Android/$googleServicesFilename");
|
||||||
|
|
||||||
Invoke-Expression `
|
Invoke-Expression `
|
||||||
"& `"$decryptSecretPath`" -filename $($appKeystorePlayFilename + ".gpg") -output $($appKeystorePlayPath)"
|
"& `"$decryptSecretPath`" -filename $($appKeystorePlayFilename + ".gpg") -output $($appKeystorePlayPath)"
|
||||||
|
|
6
.github/scripts/android/deploy-play.ps1
vendored
6
.github/scripts/android/deploy-play.ps1
vendored
|
@ -1,9 +1,9 @@
|
||||||
$rootPath = $env:GITHUB_WORKSPACE;
|
$rootPath = $env:GITHUB_WORKSPACE;
|
||||||
$homePath = $env:HOME;
|
$homePath = $env:HOME;
|
||||||
|
|
||||||
$publisherPath = $($rootPath + "\store\google\Publisher\bin\Release\netcoreapp2.0\Publisher.dll");
|
$publisherPath = $($rootPath + "/store/google/Publisher/bin/Release/netcoreapp2.0/Publisher.dll");
|
||||||
$credsPath = $($homePath + "\secrets\play_creds.json");
|
$credsPath = $($homePath + "/secrets/play_creds.json");
|
||||||
$aabPath = $($rootPath + "\com.x8bit.bitwarden.aab");
|
$aabPath = $($rootPath + "/com.x8bit.bitwarden.aab");
|
||||||
$track = "alpha";
|
$track = "alpha";
|
||||||
|
|
||||||
dotnet $publisherPath $credsPath $aabPath $track
|
dotnet $publisherPath $credsPath $aabPath $track
|
||||||
|
|
|
@ -5,7 +5,7 @@ Write-Output "########################################"
|
||||||
Write-Output "##### Setting Version Code $buildNumber"
|
Write-Output "##### Setting Version Code $buildNumber"
|
||||||
Write-Output "########################################"
|
Write-Output "########################################"
|
||||||
|
|
||||||
$androidManifest = $($rootPath + "\src\Android\Properties\AndroidManifest.xml");
|
$androidManifest = $($rootPath + "/src/Android/Properties/AndroidManifest.xml");
|
||||||
|
|
||||||
$xml=New-Object XML;
|
$xml=New-Object XML;
|
||||||
$xml.Load($androidManifest);
|
$xml.Load($androidManifest);
|
||||||
|
|
6
.github/scripts/android/sign-fdroid.ps1
vendored
6
.github/scripts/android/sign-fdroid.ps1
vendored
|
@ -1,6 +1,6 @@
|
||||||
$rootPath = $env:GITHUB_WORKSPACE;
|
$rootPath = $env:GITHUB_WORKSPACE;
|
||||||
|
|
||||||
$androidPath = $($rootPath + "\src\Android\Android.csproj");
|
$androidPath = $($rootPath + "/src/Android/Android.csproj");
|
||||||
|
|
||||||
$appKeystoreFdroidFilename = "app_fdroid-keystore.jks";
|
$appKeystoreFdroidFilename = "app_fdroid-keystore.jks";
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@ Write-Output "########################################"
|
||||||
Write-Output "##### Copy FDroid apk to project root"
|
Write-Output "##### Copy FDroid apk to project root"
|
||||||
Write-Output "########################################"
|
Write-Output "########################################"
|
||||||
|
|
||||||
$signedApkPath = $($rootPath + "\src\Android\bin\FDroid\com.x8bit.bitwarden-Signed.apk");
|
$signedApkPath = $($rootPath + "/src/Android/bin/FDroid/com.x8bit.bitwarden-Signed.apk");
|
||||||
$signedApkDestPath = $($rootPath + "\com.x8bit.bitwarden-fdroid.apk");
|
$signedApkDestPath = $($rootPath + "/com.x8bit.bitwarden-fdroid.apk");
|
||||||
|
|
||||||
Copy-Item $signedApkPath $signedApkDestPath
|
Copy-Item $signedApkPath $signedApkDestPath
|
||||||
|
|
10
.github/scripts/android/sign-play.ps1
vendored
10
.github/scripts/android/sign-play.ps1
vendored
|
@ -1,6 +1,6 @@
|
||||||
$rootPath = $env:GITHUB_WORKSPACE;
|
$rootPath = $env:GITHUB_WORKSPACE;
|
||||||
|
|
||||||
$androidPath = $($rootPath + "\src\Android\Android.csproj");
|
$androidPath = $($rootPath + "/src/Android/Android.csproj");
|
||||||
|
|
||||||
$appKeystorePlayFilename = "app_play-keystore.jks";
|
$appKeystorePlayFilename = "app_play-keystore.jks";
|
||||||
$appKeystoreUploadFilename = "app_upload-keystore.jks";
|
$appKeystoreUploadFilename = "app_upload-keystore.jks";
|
||||||
|
@ -18,8 +18,8 @@ Write-Output "########################################"
|
||||||
Write-Output "##### Copy Google Play Bundle to project root"
|
Write-Output "##### Copy Google Play Bundle to project root"
|
||||||
Write-Output "########################################"
|
Write-Output "########################################"
|
||||||
|
|
||||||
$signedAabPath = $($rootPath + "\src\Android\bin\Release\com.x8bit.bitwarden-Signed.aab");
|
$signedAabPath = $($rootPath + "/src/Android/bin/Release/com.x8bit.bitwarden-Signed.aab");
|
||||||
$signedAabDestPath = $($rootPath + "\com.x8bit.bitwarden.aab");
|
$signedAabDestPath = $($rootPath + "/com.x8bit.bitwarden.aab");
|
||||||
|
|
||||||
Copy-Item $signedAabPath $signedAabDestPath
|
Copy-Item $signedAabPath $signedAabDestPath
|
||||||
|
|
||||||
|
@ -36,7 +36,7 @@ Write-Output "########################################"
|
||||||
Write-Output "##### Copy Release APK to project root"
|
Write-Output "##### Copy Release APK to project root"
|
||||||
Write-Output "########################################"
|
Write-Output "########################################"
|
||||||
|
|
||||||
$signedApkPath = $($rootPath + "\src\Android\bin\Release\com.x8bit.bitwarden-Signed.apk");
|
$signedApkPath = $($rootPath + "/src/Android/bin/Release/com.x8bit.bitwarden-Signed.apk");
|
||||||
$signedApkDestPath = $($rootPath + "\com.x8bit.bitwarden.apk");
|
$signedApkDestPath = $($rootPath + "/com.x8bit.bitwarden.apk");
|
||||||
|
|
||||||
Copy-Item $signedApkPath $signedApkDestPath
|
Copy-Item $signedApkPath $signedApkDestPath
|
||||||
|
|
Loading…
Reference in a new issue