From e4db870d3914979f89252a562a41ac326ec705c4 Mon Sep 17 00:00:00 2001 From: Nazar Mokrynskyi Date: Tue, 12 Nov 2024 18:26:18 +0200 Subject: [PATCH] Fix Windows code signing --- .github/workflows/release.yml | 6 ++++-- Cargo.lock | 2 +- Cargo.toml | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index de9c07c..4768f6f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -333,7 +333,8 @@ jobs: dotnet tool install --global AzureSignTool - (Get-ChildItem -Path target\wix -Include space-acres-*.msi) | ForEach-Object { + # `-Recurse` is needed or PowerShell will not find the file + (Get-ChildItem -Path target\wix -Include space-acres-*.msi -Recurse) | ForEach-Object { Write("Signing $($_)"); AzureSignTool sign --azure-key-vault-url "${{ secrets.AZURE_KEY_VAULT_URI }}" --azure-key-vault-client-id "${{ secrets.AZURE_CLIENT_ID }}" --azure-key-vault-client-secret "${{ secrets.AZURE_CLIENT_SECRET }}" --azure-key-vault-tenant-id "${{ secrets.AZURE_TENANT_ID }}" --azure-key-vault-certificate "${{ secrets.AZURE_CERT_NAME }}" --file-digest sha512 --timestamp-rfc3161 http://timestamp.digicert.com -v $($_); @@ -355,7 +356,8 @@ jobs: dotnet tool install --global AzureSignTool - (Get-ChildItem -Path target\wix -Include space-acres-*.exe) | ForEach-Object { + # `-Recurse` is needed or PowerShell will not find the file + (Get-ChildItem -Path target\wix -Include space-acres-*.exe -Recurse) | ForEach-Object { Write("Signing $($_)"); AzureSignTool sign --azure-key-vault-url "${{ secrets.AZURE_KEY_VAULT_URI }}" --azure-key-vault-client-id "${{ secrets.AZURE_CLIENT_ID }}" --azure-key-vault-client-secret "${{ secrets.AZURE_CLIENT_SECRET }}" --azure-key-vault-tenant-id "${{ secrets.AZURE_TENANT_ID }}" --azure-key-vault-certificate "${{ secrets.AZURE_CERT_NAME }}" --file-digest sha512 --timestamp-rfc3161 http://timestamp.digicert.com -v $($_); diff --git a/Cargo.lock b/Cargo.lock index 79233aa..ebed596 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -12139,7 +12139,7 @@ dependencies = [ [[package]] name = "space-acres" -version = "0.2.1" +version = "0.2.2" dependencies = [ "anyhow", "arc-swap", diff --git a/Cargo.toml b/Cargo.toml index 6006ea4..06ed3fe 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ name = "space-acres" description = "Space Acres is an opinionated GUI application for farming on Autonomys Network" license = "0BSD" -version = "0.2.1" +version = "0.2.2" authors = ["Nazar Mokrynskyi "] repository = "https://github.com/autonomys/space-acres" edition = "2021"