Skip to content

Commit 15ffe59

Browse files
committed
appveyor: remove zip of output from artifacts
plus some clean-up in post_build.ps1
1 parent e44da34 commit 15ffe59

File tree

2 files changed

+3
-28
lines changed

2 files changed

+3
-28
lines changed

Scripts/post_build.ps1

Lines changed: 3 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -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

4339
function 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-
6954
function 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) {
115100
function 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

appveyor.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ after_build:
3030
- ps: .\Scripts\post_build.ps1
3131

3232
artifacts:
33-
- path: 'Output\Packages\Flow-Launcher-*.zip'
34-
name: Zip
3533
- path: 'Output\Release\Flow.Launcher.Plugin.*.nupkg'
3634
name: Plugin nupkg
3735
- path: 'Output\Packages\Flow-Launcher-*.exe'

0 commit comments

Comments
 (0)