Skip to content

Commit

Permalink
Update ci-devel.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
CosmicPredator committed Feb 5, 2024
1 parent d84e841 commit 3c22651
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions .github/workflows/ci-devel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,28 +62,21 @@ jobs:
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:AppxPackageTestDir="$env:Appx_Package_Dir" /p:GenerateAppxPackageOnBuild=true
/p:PackageCertificateKeyFile="${{ github.workspace }}\src\AniMoe.App\AniMoe.App_TemporaryKey.pfx"
/p:PackageCertificatePassword="${{ secrets.CERT_PASSWORD }}"
env:
Appx_Bundle: Never
Appx_Package_Build_Mode: SideloadOnly
Appx_Package_Dir: Packages\
Configuration: ${{ matrix.configuration }}
Platform: ${{ matrix.platform }}
Password: ${{ secrets.CERT_PASSWORD }}

- name: Rename MSIX App
run: mv ${{ github.workspace }}\\src\AniMoe.App\Packages\**.msix ${{ github.workspace }}\\src\AniMoe.App\Packages\AniMoe.App.msix

# - name: Sign MSIX App
# shell: cmd
# run: |
# "C:/Program Files (x86)/Windows Kits/10/bin/10.0.22621.0//x86/signtool.exe" sign /fd sha256 /f ${{ github.workspace }}\src\AniMoe.App\AniMoe.App_TemporaryKey.pfx /p ${{ secrets.CERT_PASSWORD }} ${{ github.workspace }}\\src\AniMoe.App\Packages\AniMoe.App.msix
- name: Sign MSIX App
shell: cmd
run: |
"C:/Program Files (x86)/Windows Kits/10/bin/10.0.22621.0//x86/signtool.exe" sign /fd sha256 /f ${{ github.workspace }}\src\AniMoe.App\AniMoe.App_TemporaryKey.pfx /p ${{ secrets.CERT_PASSWORD }} ${{ github.workspace }}\\src\AniMoe.App\Packages\AniMoe.App.msix
# - name: Convert PFX to CER
# shell: pwsh
# run: Get-PfxCertificate -FilePath ${{ github.workspace }}\src\AniMoe.App\AniMoe.App_TemporaryKey.pfx | Export-Certificate -FilePath ${{ github.workspace }}\\src\AniMoe.App\Packages\AniMoe_Certificate.cer -Type CERT

# Remove the pfx
- name: Remove the pfx
run: Remove-Item -path ${{ github.workspace }}\\src\AniMoe.App\AniMoe.App_TemporaryKey.pfx
Expand All @@ -93,4 +86,4 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: WinUI3 MSIX Package
path: ${{ github.workspace }}\\src\AniMoe.App\Packages
path: ${{ github.workspace }}\\src\AniMoe.App\Packages\**.msix

0 comments on commit 3c22651

Please sign in to comment.