We can't hash the unsigned installer for winget

This commit is contained in:
Jordan Dominion
2023-07-02 20:14:57 -04:00
parent e60bf12f87
commit 3bb064be1e
2 changed files with 12 additions and 12 deletions
+1 -7
View File
@@ -1534,15 +1534,9 @@ jobs:
- name: Build ReleaseNotes
run: dotnet build -c Release tools/ReleaseNotes
- name: Retrieve Installer .exe
uses: actions/download-artifact@v3
with:
name: packaging-windows
path: packaging-windows
- name: Execute Push Script
shell: powershell
run: build/package/winget/push_manifest.ps1 -InstallerPath packaging-windows/tgstation-server-installer.exe
run: build/package/winget/push_manifest.ps1
- name: Run ReleaseNotes with --link-winget
run: dotnet run -c Release --no-build --project tools/ReleaseNotes --link-winget ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
+11 -5
View File
@@ -1,14 +1,20 @@
param(
[string]$InstallerPath = 'build/package/winget/Tgstation.Server.Host.Service.Wix.Bundle/x86/Release/tgstation-server-installer.exe'
)
$ErrorActionPreference="Stop"
[XML]$versionXML = Get-Content build/Version.props -ErrorAction Stop
$tgsVersion = $versionXML.Project.PropertyGroup.TgsCoreVersion
$installerHash = Get-FileHash -Path $InstallerPath -ErrorAction Stop # SHA256 is the default
mkdir artifacts
$previousProgressPreference = $ProgressPreference
$ProgressPreference = 'SilentlyContinue'
try
{
Invoke-WebRequest -Uri "https://github.com/tgstation/tgstation-server/releases/download/tgstation-server-v$tgsVersion/tgstation-server-installer.exe" -OutFile "artifacts/tgstation-server-installer.exe"
} finally {
$ProgressPreference = $previousProgressPreference
}
$installerHash = Get-FileHash -Path "artifacts/tgstation-server-installer.exe" -ErrorAction Stop # SHA256 is the default
cd build/package/winget/manifest
try