@@ -31,13 +31,9 @@ function Build-Path {
3131 return $p
3232}
3333
34- function Copy-Resources ($path , $config ) {
35- $project = " $path \Flow.Launcher"
36- $output = " $path \Output"
37- $target = " $output \$config "
38- Copy-Item - Recurse - Force $project \Images\* $target \Images\
34+ function Copy-Resources ($path ) {
3935 # making version static as multiple versions can exist in the nuget folder and in the case a breaking change is introduced.
40- Copy-Item - Force $env: USERPROFILE \.nuget\packages\squirrel.windows\1.5 .2 \tools\Squirrel.exe $output \Update.exe
36+ Copy-Item - Force $env: USERPROFILE \.nuget\packages\squirrel.windows\1.5 .2 \tools\Squirrel.exe $path \Output \Update.exe
4137}
4238
4339function Delete-Unused ($path , $config ) {
@@ -55,17 +51,6 @@ function Validate-Directory ($output) {
5551 New-Item $output - ItemType Directory - Force
5652}
5753
58- function Zip-Release ($path , $version , $output ) {
59- Write-Host " Begin zip release"
60-
61- $content = " $path \Output\Release\*"
62- $zipFile = " $output \Flow-Launcher-v$version .zip"
63-
64- Compress-Archive - Force - Path $content - DestinationPath $zipFile
65-
66- Write-Host " End zip release"
67- }
68-
6954function Pack-Squirrel-Installer ($path , $version , $output ) {
7055 # msbuild based installer generation is not working in appveyor, not sure why
7156 Write-Host " Begin pack squirrel installer"
@@ -115,7 +100,7 @@ function Publish-Self-Contained ($p) {
115100function Main {
116101 $p = Build-Path
117102 $v = Build-Version
118- Copy-Resources $p $config
103+ Copy-Resources $p
119104
120105 if ($config -eq " Release" ){
121106
@@ -126,14 +111,6 @@ function Main {
126111 $o = " $p \Output\Packages"
127112 Validate- Directory $o
128113 Pack- Squirrel- Installer $p $v $o
129-
130- $isInCI = $env: APPVEYOR
131- if ($isInCI ) {
132- Zip- Release $p $v $o
133- }
134-
135- Write-Host " List output directory"
136- Get-ChildItem $o
137114 }
138115}
139116
0 commit comments