@@ -38,7 +38,8 @@ function Copy-Resources ($path, $config) {
38
38
Copy-Item - Recurse - Force $project \Images\* $target \Images\
39
39
Copy-Item - Recurse - Force $path \Plugins\HelloWorldPython $target \Plugins\HelloWorldPython
40
40
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
42
43
}
43
44
44
45
function Delete-Unused ($path , $config ) {
@@ -96,9 +97,9 @@ function Pack-Squirrel-Installer ($path, $version, $output) {
96
97
$icon = " $path \Wox\Resources\app.ico"
97
98
Write-Host " icon: $icon "
98
99
# 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
100
101
# 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
102
103
$temp = " $output \Temp"
103
104
104
105
Squirrel -- releasify $nupkg -- releaseDir $temp -- setupIcon $icon -- no- msi | Write-Output
@@ -123,7 +124,8 @@ function Main {
123
124
Delete- Unused $p $config
124
125
$o = " $p \Output\Packages"
125
126
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
127
129
Pack- Squirrel- Installer $p $v $o
128
130
129
131
$isInCI = $env: APPVEYOR
0 commit comments