From 6ed83aaa6c2f1f5ddf0341863183018872ea4a20 Mon Sep 17 00:00:00 2001 From: Jeremy Wu Date: Sat, 24 Jul 2021 18:08:25 +1000 Subject: [PATCH 1/3] add portable release --- Scripts/post_build.ps1 | 9 +++++++++ appveyor.yml | 6 ++++-- 2 files changed, 13 insertions(+), 2 deletions(-) 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 From be7179d3f0578507826555ec776d55b65b9ac7b2 Mon Sep 17 00:00:00 2001 From: Jeremy Wu Date: Sat, 24 Jul 2021 18:47:29 +1000 Subject: [PATCH 2/3] use AppVeyor environment variable --- appveyor.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appveyor.yml b/appveyor.yml index 27a9b9dba..c490de2fe 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -36,7 +36,7 @@ artifacts: name: Plugin nupkg - path: 'Output\Packages\Flow-Launcher-*.exe' name: Squirrel Installer -- path: 'Output\Packages\Flow-Launcher-v$env:flowVersion-Portable.zip' +- path: Output\Packages\Flow-Launcher-v$(flowVersion)-Portable.zip name: Portable Version - path: 'Output\Packages\FlowLauncher-*-full.nupkg' name: Squirrel nupkg From cc09f33655a1846226d833756ef4004ca0652734 Mon Sep 17 00:00:00 2001 From: Jeremy Wu Date: Sat, 24 Jul 2021 19:10:07 +1000 Subject: [PATCH 3/3] change portable release with out appending the version makes it easier to link download --- README.md | 4 ++-- Scripts/post_build.ps1 | 2 +- appveyor.yml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index e9c7e3360..d78e7352b 100644 --- a/README.md +++ b/README.md @@ -49,8 +49,8 @@ Flow Launcher. Dedicated to make your workflow flow more seamlessly. Aimed at be ### Installation -| [Windows 7 and up installer](https://github.com/Flow-Launcher/Flow.Launcher/releases/latest) | `WinGet install "Flow Launcher"` | -| -------------------------------------------------------------------------------------------- | -------------------------------- | +| [Windows 7 and up installer](https://github.com/Flow-Launcher/Flow.Launcher/releases/latest) | [Portable](https://github.com/Flow-Launcher/Flow.Launcher/releases/latest/Flow-Launcher-Portable.zip) | `WinGet install "Flow Launcher"` | +| --------------------------------- | --------------------------------- | --------------------------------- | Windows may complain about security due to code not being signed, this will be completed at a later stage. If you downloaded from this repo, you are good to continue the set up. diff --git a/Scripts/post_build.ps1 b/Scripts/post_build.ps1 index afd8f1998..b573b984b 100644 --- a/Scripts/post_build.ps1 +++ b/Scripts/post_build.ps1 @@ -111,7 +111,7 @@ 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 + Compress-Archive -Path $env:LocalAppData\FlowLauncher -DestinationPath $outputLocation\Flow-Launcher-Portable.zip } function Main { diff --git a/appveyor.yml b/appveyor.yml index c490de2fe..f00c8aefe 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -36,7 +36,7 @@ artifacts: name: Plugin nupkg - path: 'Output\Packages\Flow-Launcher-*.exe' name: Squirrel Installer -- path: Output\Packages\Flow-Launcher-v$(flowVersion)-Portable.zip +- path: Output\Packages\Flow-Launcher-Portable.zip name: Portable Version - path: 'Output\Packages\FlowLauncher-*-full.nupkg' name: Squirrel nupkg