Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
feat: Sign windows installer
Richie McIlroy896652c9d628
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.ymlindex 770f552de..3643a06e6 100644--- a/.github/workflows/publish.yml+++ b/.github/workflows/publish.yml@@ -132,6 +132,7 @@ jobs:if: ${{ needs.draft.outputs.needs_release == 'true' }}permissions:contents: write+ actions: readstrategy:fail-fast: falsematrix:@@ -208,6 +209,53 @@ jobs:TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}+ - name: Upload unsigned Windows installer+ if: ${{ runner.os == 'Windows' }}+ id: upload_unsigned_windows_installer+ uses: actions/upload-artifact@v4+ with:+ name: unsigned-windows-installer+ path: apps/desktop/src-tauri/target/${{ matrix.settings.target }}/release/bundle/nsis/*.exe+ if-no-files-found: error++ - name: Submit SignPath signing request+ if: ${{ runner.os == 'Windows' }}+ id: submit_signpath_signing_request+ uses: signpath/github-action-submit-signing-request@v1+ with:+ api-token: ${{ secrets.SIGNPATH_API_TOKEN }}+ organization-id: ${{ secrets.SIGNPATH_ORGANIZATION_ID }}+ project-slug: ${{ secrets.SIGNPATH_PROJECT_SLUG }}+ signing-policy-slug: ${{ secrets.SIGNPATH_SIGNING_POLICY_SLUG }}+ artifact-configuration-slug: ${{ secrets.SIGNPATH_ARTIFACT_CONFIGURATION_SLUG }}+ github-artifact-id: ${{ steps.upload_unsigned_windows_installer.outputs.artifact-id }}+ wait-for-completion: true+ output-artifact-directory: signed-windows-installer++ - name: Restore signed Windows installer+ if: ${{ runner.os == 'Windows' }}+ shell: pwsh+ run: |+ $signedDir = "signed-windows-installer"+ $bundleDir = "apps/desktop/src-tauri/target/${{ matrix.settings.target }}/release/bundle/nsis"++ if (-not (Test-Path $signedDir)) {+ throw "Signed artifact directory '$signedDir' not found."+ }++ $executables = Get-ChildItem -Path $signedDir -Filter *.exe -Recurse+ if (-not $executables) {+ throw "No signed executables found in '$signedDir'."+ }++ # Copy signed executables back to the original bundle location for CrabNebula upload+ Write-Host "Copying signed executables to: $bundleDir"+ Copy-Item -Path (Join-Path $signedDir '*.exe') -Destination $bundleDir -Force++ # List the files to verify+ Write-Host "Files in bundle directory after signing:"+ Get-ChildItem -Path $bundleDir -Filter *.exe | ForEach-Object { Write-Host " - $($_.Name)" }+- name: Upload assetsuses: crabnebula-dev/cloud-release@v0with:diff --git a/Cargo.lock b/Cargo.lockindex 57dcc6935..0bded2e4f 100644--- a/Cargo.lock+++ b/Cargo.lock@@ -1170,7 +1170,7 @@ dependencies = [[[package]]name = "cap-desktop"-version = "0.3.73"+version = "0.3.74"dependencies = ["anyhow","async-stream",diff --git a/apps/desktop/src-tauri/Cargo.toml b/apps/desktop/src-tauri/Cargo.tomlindex c5f149fd7..2c0d415de 100644--- a/apps/desktop/src-tauri/Cargo.toml+++ b/apps/desktop/src-tauri/Cargo.toml@@ -1,6 +1,6 @@[package]name = "cap-desktop"-version = "0.3.73"+version = "0.3.74"description = "Beautiful screen recordings, owned by you."authors = ["you"]edition = "2024"