2020-06-08 23:04:04 +03:00
|
|
|
|
$rootPath = $env:GITHUB_WORKSPACE;
|
|
|
|
|
|
2020-06-09 18:52:23 +03:00
|
|
|
|
$androidPath = $($rootPath + "/src/Android/Android.csproj");
|
2020-06-08 23:04:04 +03:00
|
|
|
|
|
|
|
|
|
$appKeystoreFdroidFilename = "app_fdroid-keystore.jks";
|
|
|
|
|
|
|
|
|
|
Write-Output "########################################"
|
|
|
|
|
Write-Output "##### Sign FDroid Configuration"
|
|
|
|
|
Write-Output "########################################"
|
|
|
|
|
|
|
|
|
|
msbuild "$($androidPath)" "/t:SignAndroidPackage" "/p:Configuration=FDroid" "/p:AndroidKeyStore=true" `
|
|
|
|
|
"/p:AndroidSigningKeyAlias=bitwarden" "/p:AndroidSigningKeyPass=$($env:FDROID_KEYSTORE_PASSWORD)" `
|
|
|
|
|
"/p:AndroidSigningKeyStore=$($appKeystoreFdroidFilename)" `
|
|
|
|
|
"/p:AndroidSigningStorePass=$($env:FDROID_KEYSTORE_PASSWORD)" "/v:quiet"
|
|
|
|
|
|
|
|
|
|
Write-Output "########################################"
|
|
|
|
|
Write-Output "##### Copy FDroid apk to project root"
|
|
|
|
|
Write-Output "########################################"
|
|
|
|
|
|
2020-06-09 18:52:23 +03:00
|
|
|
|
$signedApkPath = $($rootPath + "/src/Android/bin/FDroid/com.x8bit.bitwarden-Signed.apk");
|
|
|
|
|
$signedApkDestPath = $($rootPath + "/com.x8bit.bitwarden-fdroid.apk");
|
2020-06-08 23:04:04 +03:00
|
|
|
|
|
|
|
|
|
Copy-Item $signedApkPath $signedApkDestPath
|