mirror of
https://github.com/gerardog/gsudo.git
synced 2025-01-09 04:07:39 +08:00
Renamed release artifacts to simpler filenames.
This commit is contained in:
parent
bf6608e22a
commit
dbbe38a564
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@ -59,7 +59,7 @@ jobs:
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: Installer
|
||||
path: ./artifacts/gsudoSetup-*.msi
|
||||
path: ./artifacts/gsudo.setup*.msi
|
||||
- name: Create Release
|
||||
uses: ncipollo/release-action@v1.11.1
|
||||
with:
|
||||
|
@ -16,8 +16,8 @@ if ($env:version) {
|
||||
Get-ChildItem .\artifacts\ -File | Remove-Item # Remove files on artifacts root
|
||||
Get-ChildItem .\artifacts\ -Filter *.pdb -Recurse | Remove-Item # Remove *.pdb on subfolders
|
||||
|
||||
Compress-Archive -Path ./artifacts/x86,./artifacts/x64,./artifacts/arm64,./artifacts/net46-AnyCpu -DestinationPath "artifacts/gsudo.v$($version).zip" -force -CompressionLevel Optimal
|
||||
(Get-FileHash artifacts\gsudo.v$($version).zip).hash > artifacts\gsudo.v$($version).zip.sha256
|
||||
Compress-Archive -Path ./artifacts/x86,./artifacts/x64,./artifacts/arm64,./artifacts/net46-AnyCpu -DestinationPath "artifacts/gsudo.portable.zip" -force -CompressionLevel Optimal
|
||||
(Get-FileHash artifacts\gsudo.portable.zip).hash > artifacts\gsudo.portable.zip.sha256
|
||||
|
||||
"- Cleaning bin & obj folders"
|
||||
Get-Item ".\src\gsudo.Installer\bin\", ".\src\gsudo.Installer\obj\" -ErrorAction Ignore | Remove-Item -Recurse -Force
|
||||
@ -35,11 +35,7 @@ Remove-Item .\artifacts\*.wixpdb
|
||||
|
||||
"- Code Sign Installer"
|
||||
|
||||
& $PSScriptRoot\03-sign.ps1 artifacts\gsudoSetup-arm64.msi || $(popd && _exit 1)
|
||||
& $PSScriptRoot\03-sign.ps1 artifacts\gsudoSetup-x64.msi || $(popd && _exit 1)
|
||||
& $PSScriptRoot\03-sign.ps1 artifacts\gsudoSetup-x86.msi || $(popd && _exit 1)
|
||||
(Get-FileHash artifacts\gsudoSetup-arm64.msi).hash > artifacts\gsudoSetup-arm64.msi.sha256
|
||||
(Get-FileHash artifacts\gsudoSetup-x64.msi).hash > artifacts\gsudoSetup-x64.msi.sha256
|
||||
(Get-FileHash artifacts\gsudoSetupp-x86.msi).hash > artifacts\gsudoSetupp-x86.msi.sha256
|
||||
& $PSScriptRoot\03-sign.ps1 artifacts\*.msi || $(popd && _exit 1)
|
||||
Get-Item .\artifacts\*.msi | % {(Get-FileHash $_).Hash > "$_.sha256"}
|
||||
|
||||
popd
|
@ -30,7 +30,7 @@ Or:
|
||||
</TabItem>
|
||||
<TabItem value="W8" label="Windows 8.1">
|
||||
|
||||
- Download `gsudoSetup.msi` from the [latest release](https://github.com/gerardog/gsudo/releases/latest), and run.
|
||||
- Download `gsudo.Setup.[platform].msi` from the [latest release](https://github.com/gerardog/gsudo/releases/latest), and run.
|
||||
|
||||
|
||||
</TabItem>
|
||||
@ -38,7 +38,7 @@ Or:
|
||||
|
||||
|
||||
- Enable TLS 1.2 using [Microsoft "Easy Fix"](https://support.microsoft.com/en-us/topic/update-to-enable-tls-1-1-and-tls-1-2-as-default-secure-protocols-in-winhttp-in-windows-c4bd73d2-31d7-761e-0178-11268bb10392#bkmk_easy)
|
||||
- Download `gsudoSetup.msi` from the [latest release](https://github.com/gerardog/gsudo/releases/latest), and run.
|
||||
- Download `gsudo.Setup.[platform].msi` from the [latest release](https://github.com/gerardog/gsudo/releases/latest), and run.
|
||||
- You probably want to update PowerShell up to 5.1
|
||||
|
||||
|
||||
|
@ -1,6 +1,14 @@
|
||||
if ([System.Environment]::GetEnvironmentVariable("PROCESSOR_ARCHITECTURE", "Machine") -eq "ARM64") {
|
||||
$architecture='arm64'
|
||||
} elseif (! [System.Environment]::Is64BitOperatingSystem) {
|
||||
$architecture='x86'
|
||||
} else {
|
||||
$architecture='x64'
|
||||
}
|
||||
|
||||
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
|
||||
$release = Invoke-RestMethod -Method Get -Uri "https://api.github.com/repos/gerardog/gsudo/releases/latest"
|
||||
$asset = $release.assets | Where-Object name -like "gsudoSetup.msi"
|
||||
$asset = $release.assets | Where-Object name -like "gsudo.setup.$architecture.msi"
|
||||
$fileName = "$env:TEMP\$($asset.name)"
|
||||
|
||||
Write-Output "Downloading $($asset.name)"
|
||||
|
@ -1,6 +1,6 @@
|
||||
<Project Sdk="WixToolset.Sdk/4.0.0-rc.3">
|
||||
<PropertyGroup>
|
||||
<OutputName>gsudoSetup-$(Platform)</OutputName>
|
||||
<OutputName>gsudo.setup.$(Platform)</OutputName>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
|
||||
<DefineConstants>Debug</DefineConstants>
|
||||
|
Loading…
Reference in New Issue
Block a user