Skip to content

Commit 2eb4d55

Browse files
committed
update post build script to use ppy.squirrel + latest nuget cmdline
1 parent 6d9f730 commit 2eb4d55

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Scripts/post_build.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ function Copy-Resources ($path, $config) {
4040
Copy-Item -Recurse -Force $path\Plugins\HelloWorldPython $target\Plugins\HelloWorldPython
4141
Copy-Item -Recurse -Force $path\JsonRPC $target\JsonRPC
4242
# making version static as multiple versions can exist in the nuget folder and in the case a breaking change is introduced.
43-
Copy-Item -Force $env:USERPROFILE\.nuget\packages\squirrel.windows\1.5.2\tools\Squirrel.exe $output\Update.exe
43+
Copy-Item -Force $env:USERPROFILE\.nuget\packages\ppy.squirrel.windows\1.9.0.4\tools\Squirrel.exe $output\Update.exe
4444
}
4545

4646
function Delete-Unused ($path, $config) {
@@ -98,7 +98,7 @@ function Pack-Squirrel-Installer ($path, $version, $output) {
9898
$icon = "$path\Wox\Resources\app.ico"
9999
Write-Host "icon: $icon"
100100
# Squirrel.com: https://github.com/Squirrel/Squirrel.Windows/issues/369
101-
New-Alias Squirrel $env:USERPROFILE\.nuget\packages\squirrel.windows\1.5.2\tools\Squirrel.exe -Force
101+
New-Alias Squirrel $env:USERPROFILE\.nuget\packages\ppy.squirrel.windows\1.9.0.4\tools\Squirrel.exe -Force
102102
# why we need Write-Output: https://github.com/Squirrel/Squirrel.Windows/issues/489#issuecomment-156039327
103103
# directory of releaseDir in squirrel can't be same as directory ($nupkg) in releasify
104104
$temp = "$output\Temp"
@@ -126,7 +126,7 @@ function Main {
126126
$o = "$p\Output\Packages"
127127
Validate-Directory $o
128128
# making version static as multiple versions can exist in the nuget folder and in the case a breaking change is introduced.
129-
New-Alias Nuget $env:USERPROFILE\.nuget\packages\NuGet.CommandLine\3.4.3\tools\NuGet.exe -Force
129+
New-Alias Nuget $env:USERPROFILE\.nuget\packages\NuGet.CommandLine\5.4.0\tools\NuGet.exe -Force
130130
Pack-Squirrel-Installer $p $v $o
131131

132132
$isInCI = $env:APPVEYOR

0 commit comments

Comments
 (0)