@@ -33,14 +33,14 @@ function Build-Path {
33
33
34
34
function Copy-Resources ($path ) {
35
35
# making version static as multiple versions can exist in the nuget folder and in the case a breaking change is introduced.
36
- Copy-Item - Force $env: USERPROFILE \.nuget\packages \squirrel.windows\1.5 .2 \tools\Squirrel.exe $path \Output\Update.exe
36
+ Copy-Item - Force $env: NUGET_PACKAGES \squirrel.windows\1.5 .2 \tools\Squirrel.exe $path \Output\Update.exe
37
37
}
38
38
39
39
function Delete-Unused ($path , $config ) {
40
40
$target = " $path \Output\$config "
41
41
$included = Get-ChildItem $target - Filter " *.dll"
42
42
foreach ($i in $included ){
43
- $deleteList = Get-ChildItem $target \Plugins - Include $i - Recurse | Where { $_.VersionInfo.FileVersion -eq $i.VersionInfo.FileVersion -And $_.Name -eq " $i " }
43
+ $deleteList = Get-ChildItem $target \Plugins - Filter $i.Name - Recurse | Where { $_.VersionInfo.FileVersion -eq $i.VersionInfo.FileVersion -And $_.Name -eq $i .Name }
44
44
$deleteList | ForEach-Object { Write-Host Deleting duplicated $_.Name with version $_.VersionInfo.FileVersion at location $_.Directory.FullName }
45
45
$deleteList | Remove-Item
46
46
}
@@ -72,14 +72,14 @@ function Pack-Squirrel-Installer ($path, $version, $output) {
72
72
Write-Host " Input path: $input "
73
73
74
74
# dotnet pack is not used because ran into issues, need to test installation and starting up if to use it.
75
- nuget pack $spec - Version $version - BasePath $input - OutputDirectory $output - Properties Configuration= Release
75
+ dotnet pack $spec - Version $version - BasePath $input - OutputDirectory $output - Properties Configuration= Release
76
76
77
77
$nupkg = " $output \FlowLauncher.$version .nupkg"
78
78
Write-Host " nupkg path: $nupkg "
79
79
$icon = " $path \Flow.Launcher\Resources\app.ico"
80
80
Write-Host " icon: $icon "
81
81
# Squirrel.com: https://github.com/Squirrel/Squirrel.Windows/issues/369
82
- New-Alias Squirrel $env: USERPROFILE \.nuget\packages \squirrel.windows\1.5 .2 \tools\Squirrel.exe - Force
82
+ New-Alias Squirrel $env: NUGET_PACKAGES \squirrel.windows\1.5 .2 \tools\Squirrel.exe - Force
83
83
# why we need Write-Output: https://github.com/Squirrel/Squirrel.Windows/issues/489#issuecomment-156039327
84
84
# directory of releaseDir in squirrel can't be same as directory ($nupkg) in releasify
85
85
$temp = " $output \Temp"
0 commit comments