@@ -38,7 +38,8 @@ function Copy-Resources ($path, $config) {
3838 Copy-Item - Recurse - Force $project \Images\* $target \Images\
3939 Copy-Item - Recurse - Force $path \Plugins\HelloWorldPython $target \Plugins\HelloWorldPython
4040 Copy-Item - Recurse - Force $path \JsonRPC $target \JsonRPC
41- Copy-Item - Force $path \packages\squirrel* \tools\Squirrel.exe $output \Update.exe
41+ # making version static as multiple versions can exist in the nuget folder and in the case a breaking change is introduced.
42+ Copy-Item - Force $env: USERPROFILE \.nuget\packages\squirrel.windows\1.5 .2 \tools\Squirrel.exe $output \Update.exe
4243}
4344
4445function Delete-Unused ($path , $config ) {
@@ -96,9 +97,9 @@ function Pack-Squirrel-Installer ($path, $version, $output) {
9697 $icon = " $path \Wox\Resources\app.ico"
9798 Write-Host " icon: $icon "
9899 # Squirrel.com: https://github.com/Squirrel/Squirrel.Windows/issues/369
99- New-Alias Squirrel $path \ packages\squirrel* \tools\Squirrel.exe - Force
100+ New-Alias Squirrel $env: USERPROFILE \.nuget\ packages\squirrel.windows\ 1.5 . 2 \tools\Squirrel.exe - Force
100101 # why we need Write-Output: https://github.com/Squirrel/Squirrel.Windows/issues/489#issuecomment-156039327
101- # directory of releaseDir in fucking squirrel can't be same as directory ($nupkg) in releasify
102+ # directory of releaseDir in squirrel can't be same as directory ($nupkg) in releasify
102103 $temp = " $output \Temp"
103104
104105 Squirrel -- releasify $nupkg -- releaseDir $temp -- setupIcon $icon -- no- msi | Write-Output
@@ -123,7 +124,8 @@ function Main {
123124 Delete- Unused $p $config
124125 $o = " $p \Output\Packages"
125126 Validate- Directory $o
126- New-Alias Nuget $p \packages\NuGet.CommandLine.* \tools\NuGet.exe - Force
127+ # making version static as multiple versions can exist in the nuget folder and in the case a breaking change is introduced.
128+ New-Alias Nuget $env: USERPROFILE \.nuget\packages\NuGet.CommandLine\3.4 .3 \tools\NuGet.exe - Force
127129 Pack- Squirrel- Installer $p $v $o
128130
129131 $isInCI = $env: APPVEYOR
0 commit comments