mirror of
https://github.com/bitwarden/mobile
synced 2025-12-11 05:43:30 +00:00
rework build scripts
This commit is contained in:
@@ -4,6 +4,7 @@ $androidPath = $($rootPath + "\src\Android\Android.csproj");
|
||||
$appPath = $($rootPath + "\src\App\App.csproj");
|
||||
|
||||
$appKeystoreFdroidFilename = "app_fdroid-keystore.jks";
|
||||
$androidManifest = $($rootPath + "\src\Android\Properties\AndroidManifest.xml");
|
||||
|
||||
Write-Output "########################################"
|
||||
Write-Output "##### Clean Android and App"
|
||||
@@ -80,11 +81,9 @@ Write-Output "########################################"
|
||||
|
||||
Invoke-Expression "& nuget restore"
|
||||
|
||||
Write-Output "########################################"
|
||||
Write-Output "##### Build FDroid Configuration"
|
||||
Write-Output "########################################"
|
||||
|
||||
msbuild "$($androidPath)" "/p:Configuration=FDroid"
|
||||
# Build F-Droid Configuration
|
||||
$buildScriptPath = $($rootPath + ".\.github\scripts\android\build.ps1");
|
||||
Invoke-Expression "& `"$buildScriptPath`" -configuration FDroid"
|
||||
|
||||
Write-Output "########################################"
|
||||
Write-Output "##### Sign FDroid Configuration"
|
||||
13
.github/scripts/android/build.ps1
vendored
Normal file
13
.github/scripts/android/build.ps1
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
param (
|
||||
[Parameter(Mandatory=$true)]
|
||||
[string] $configuration
|
||||
)
|
||||
|
||||
$rootPath = $env:GITHUB_WORKSPACE;
|
||||
$androidPath = $($rootPath + "\src\Android\Android.csproj");
|
||||
|
||||
Write-Output "########################################"
|
||||
Write-Output "##### Build $configuration Configuration"
|
||||
Write-Output "########################################"
|
||||
|
||||
msbuild "$($androidPath)" "/p:Configuration=$configuration"
|
||||
4
.github/scripts/decrypt-secret.ps1
vendored
4
.github/scripts/decrypt-secret.ps1
vendored
@@ -14,14 +14,14 @@ $passphrase = $env:DECRYPT_FILE_PASSWORD
|
||||
$secretOutputPath = $homePath + "\secrets"
|
||||
|
||||
if ([string]::IsNullOrEmpty($output)) {
|
||||
if($filename.EndsWith(".gpg")) {
|
||||
if ($filename.EndsWith(".gpg")) {
|
||||
$output = $secretOutputPath + "\" + $filename.TrimEnd(".gpg")
|
||||
} else {
|
||||
$output = $secretOutputPath + "\" + $filename + ".plaintext"
|
||||
}
|
||||
}
|
||||
|
||||
if(!(Test-Path -Path $secretOutputPath))
|
||||
if (!(Test-Path -Path $secretOutputPath))
|
||||
{
|
||||
New-Item -ItemType Directory -Path $secretOutputPath
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user