mirror of
https://github.com/jayfunc/BetterLyrics.git
synced 2026-01-13 03:34:55 +08:00
fix: refactor pfx path handling and improve msbuild command readability
This commit is contained in:
15
.github/workflows/dotnet-desktop.yml
vendored
15
.github/workflows/dotnet-desktop.yml
vendored
@@ -54,12 +54,21 @@ jobs:
|
||||
- name: Decode the pfx
|
||||
run: |
|
||||
$pfx_cert_byte = [System.Convert]::FromBase64String("${{ secrets.BASE64_ENCODED_PFX }}")
|
||||
$certificatePath = Join-Path -Path $PWD -ChildPath "GitHubActionsWorkflow.pfx"
|
||||
[IO.File]::WriteAllBytes("$certificatePath", $pfx_cert_byte)
|
||||
$pfxPath = Join-Path $PWD "GitHubActionsWorkflow.pfx"
|
||||
[IO.File]::WriteAllBytes("$pfxPath", $pfx_cert_byte)
|
||||
|
||||
# Create the app package by building and packaging the project
|
||||
- name: Create the app package
|
||||
run: msbuild $env:Solution_Name /p:Configuration=$env:Configuration /p:Platform=$env:Platform /p:UapAppxPackageBuildMode=$env:Appx_Package_Build_Mode /p:AppxBundle=$env:Appx_Bundle /p:PackageCertificateKeyFile=GitHubActionsWorkflow.pfx /p:AppxPackageDir="$env:Appx_Package_Dir" /p:GenerateAppxPackageOnBuild=true
|
||||
run: |
|
||||
$pfxPath = Join-Path $PWD "GitHubActionsWorkflow.pfx"
|
||||
msbuild $env:Solution_Name `
|
||||
/p:Configuration=$env:Configuration `
|
||||
/p:Platform=$env:Platform `
|
||||
/p:UapAppxPackageBuildMode=$env:Appx_Package_Build_Mode `
|
||||
/p:AppxBundle=$env:Appx_Bundle `
|
||||
/p:PackageCertificateKeyFile=$pfxPath `
|
||||
/p:AppxPackageDir="$env:Appx_Package_Dir" `
|
||||
/p:GenerateAppxPackageOnBuild=true
|
||||
env:
|
||||
Appx_Bundle: Never
|
||||
Appx_Package_Build_Mode: SideloadOnly
|
||||
|
||||
Reference in New Issue
Block a user