diff --git a/Scripts/post_build.ps1 b/Scripts/post_build.ps1 index 093f92768..afd8f1998 100644 --- a/Scripts/post_build.ps1 +++ b/Scripts/post_build.ps1 @@ -107,6 +107,13 @@ function Publish-Self-Contained ($p) { dotnet publish -c Release $csproj /p:PublishProfile=$profile } +function Publish-Portable ($outputLocation, $version) { + + & $outputLocation\Flow-Launcher-v$v.exe --silent | Out-Null + mkdir "$env:LocalAppData\FlowLauncher\app-$version\UserData" + Compress-Archive -Path $env:LocalAppData\FlowLauncher -DestinationPath $outputLocation\Flow-Launcher-v$version-Portable.zip +} + function Main { $p = Build-Path $v = Build-Version @@ -123,6 +130,8 @@ function Main { $o = "$p\Output\Packages" Validate-Directory $o Pack-Squirrel-Installer $p $v $o + + Publish-Portable $o $v } } diff --git a/appveyor.yml b/appveyor.yml index 01bacea0b..27a9b9dba 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -36,6 +36,8 @@ artifacts: name: Plugin nupkg - path: 'Output\Packages\Flow-Launcher-*.exe' name: Squirrel Installer +- path: 'Output\Packages\Flow-Launcher-v$env:flowVersion-Portable.zip' + name: Portable Version - path: 'Output\Packages\FlowLauncher-*-full.nupkg' name: Squirrel nupkg - path: 'Output\Packages\RELEASES' @@ -53,7 +55,7 @@ deploy: release: v$(flowVersion) auth_token: secure: ij4UeXUYQBDJxn2YRAAhUOjklOGVKDB87Hn5J8tKIzj13yatoI7sLM666QDQFEgv - artifact: Squirrel Installer, Squirrel nupkg, Squirrel RELEASES + artifact: Squirrel Installer, Portable Version, Squirrel nupkg, Squirrel RELEASES draft: true force_update: true on: @@ -63,7 +65,7 @@ deploy: release: v$(flowVersion) auth_token: secure: ij4UeXUYQBDJxn2YRAAhUOjklOGVKDB87Hn5J8tKIzj13yatoI7sLM666QDQFEgv - artifact: Squirrel Installer, Squirrel nupkg, Squirrel RELEASES + artifact: Squirrel Installer, Portable Version, Squirrel nupkg, Squirrel RELEASES force_update: true on: APPVEYOR_REPO_TAG: true