Skip to content

Commit 311b83c

Browse files
authored
Merge pull request #596 from Flow-Launcher/add_portable_release
Add portable release
2 parents 387c550 + cc09f33 commit 311b83c

File tree

3 files changed

+15
-4
lines changed

3 files changed

+15
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ Flow Launcher. Dedicated to make your workflow flow more seamlessly. Aimed at be
4949

5050
### Installation
5151

52-
| [Windows 7 and up installer](https://github.com/Flow-Launcher/Flow.Launcher/releases/latest) | `WinGet install "Flow Launcher"` |
53-
| -------------------------------------------------------------------------------------------- | -------------------------------- |
52+
| [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"` |
53+
| --------------------------------- | --------------------------------- | --------------------------------- |
5454

5555
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.
5656

Scripts/post_build.ps1

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,13 @@ function Publish-Self-Contained ($p) {
107107
dotnet publish -c Release $csproj /p:PublishProfile=$profile
108108
}
109109

110+
function Publish-Portable ($outputLocation, $version) {
111+
112+
& $outputLocation\Flow-Launcher-v$v.exe --silent | Out-Null
113+
mkdir "$env:LocalAppData\FlowLauncher\app-$version\UserData"
114+
Compress-Archive -Path $env:LocalAppData\FlowLauncher -DestinationPath $outputLocation\Flow-Launcher-Portable.zip
115+
}
116+
110117
function Main {
111118
$p = Build-Path
112119
$v = Build-Version
@@ -123,6 +130,8 @@ function Main {
123130
$o = "$p\Output\Packages"
124131
Validate-Directory $o
125132
Pack-Squirrel-Installer $p $v $o
133+
134+
Publish-Portable $o $v
126135
}
127136
}
128137

appveyor.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ artifacts:
3636
name: Plugin nupkg
3737
- path: 'Output\Packages\Flow-Launcher-*.exe'
3838
name: Squirrel Installer
39+
- path: Output\Packages\Flow-Launcher-Portable.zip
40+
name: Portable Version
3941
- path: 'Output\Packages\FlowLauncher-*-full.nupkg'
4042
name: Squirrel nupkg
4143
- path: 'Output\Packages\RELEASES'
@@ -53,7 +55,7 @@ deploy:
5355
release: v$(flowVersion)
5456
auth_token:
5557
secure: ij4UeXUYQBDJxn2YRAAhUOjklOGVKDB87Hn5J8tKIzj13yatoI7sLM666QDQFEgv
56-
artifact: Squirrel Installer, Squirrel nupkg, Squirrel RELEASES
58+
artifact: Squirrel Installer, Portable Version, Squirrel nupkg, Squirrel RELEASES
5759
draft: true
5860
force_update: true
5961
on:
@@ -63,7 +65,7 @@ deploy:
6365
release: v$(flowVersion)
6466
auth_token:
6567
secure: ij4UeXUYQBDJxn2YRAAhUOjklOGVKDB87Hn5J8tKIzj13yatoI7sLM666QDQFEgv
66-
artifact: Squirrel Installer, Squirrel nupkg, Squirrel RELEASES
68+
artifact: Squirrel Installer, Portable Version, Squirrel nupkg, Squirrel RELEASES
6769
force_update: true
6870
on:
6971
APPVEYOR_REPO_TAG: true

0 commit comments

Comments
 (0)