Skip to content

Commit

Permalink
Prepare migration of code signing to certum
Browse files Browse the repository at this point in the history
  • Loading branch information
DRSchlaubi committed Aug 12, 2023
1 parent 33a675f commit 2a0757d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
name: Build Desktop App
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
os: [ubuntu-latest, macos-latest, windows-signing]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -88,20 +88,14 @@ jobs:
- name: Setup MSbuild
if: matrix.os == 'windows-latest'
uses: microsoft/[email protected]
- name: Create Code Signing Certificate
if: matrix.os == 'windows-latest'
run: |
New-Item -ItemType directory -Path certificate
Set-Content -Path certificate\certificate.txt -Value '${{ secrets.WINDOWS_CERTIFICATE }}'
certutil -decode certificate\certificate.txt certificate\certificate.pfx
- name: Build MSIX
if: matrix.os == 'windows-latest'
run: |
& 'C:/Program Files (x86)/Windows Kits/10/bin/10.0.22621.0/x64/makeappx.exe' pack /d app/desktop/build/msix-workspace /p Tonbrett.msix
- name: Code Sign 2021
if: matrix.os == 'windows-latest'
run: |
& 'C:/Program Files (x86)/Windows Kits/10/bin/10.0.22621.0/x86/signtool.exe' sign /fd SHA256 /f certificate\certificate.pfx /p '${{ secrets.WINDOWS_CERTIFICATE_PASSWORD }}' /t http://timestamp.sectigo.com/ /d Tonbrett Tonbrett.msix
& 'C:/Program Files (x86)/Windows Kits/10/bin/10.0.22621.0/x86/signtool.exe' sign /fd SHA256 /n "Open Source Developer, Michael Rittmeister" /t http://time.certum.pl/ /d Tonbrett Tonbrett.msix
- name: Notarize MacOS installer
#if: matrix.os == 'macos-latest'
# waiting for https://github.com/JetBrains/compose-multiplatform/issues/3208
Expand Down
2 changes: 1 addition & 1 deletion app/desktop/msix/appxmanifest.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Package xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10" xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10" xmlns:uap5="http://schemas.microsoft.com/appx/manifest/uap/windows10/5" xmlns:uap10="http://schemas.microsoft.com/appx/manifest/uap/windows10/10">
<!-- DO NOT EDIT THIS VERSION IT IS UPDATED AUTOMATICALLY -->
<Identity Name="dev.schlaubi.Tonbrett" Version="0.0.0.0" Publisher="CN=Michael Rittmeister, O=Michael Rittmeister, S=Bayern, C=DE" ProcessorArchitecture="x64" />
<Identity Name="dev.schlaubi.Tonbrett" Version="0.0.0.0" Publisher="[email protected], CN=&quot;Open Source Developer, Michael Rittmeister&quot;, O=Open Source Developer, L=Gauting, S=Bavaria, C=DE" ProcessorArchitecture="x64" />
<Properties>
<DisplayName>Tonbrett</DisplayName>
<PublisherDisplayName>Schlaubi</PublisherDisplayName>
Expand Down

0 comments on commit 2a0757d

Please sign in to comment.