mirror of
https://github.com/bitwarden/mobile
synced 2025-12-19 09:43:27 +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"
|
||||
Reference in New Issue
Block a user