Merge pull request #596 from Flow-Launcher/add_portable_release

Add portable release
This commit is contained in:
Jeremy Wu 2021-07-26 19:22:00 +10:00 committed by GitHub
commit 311b83ce51
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 4 deletions

View file

@ -49,8 +49,8 @@ Flow Launcher. Dedicated to make your workflow flow more seamlessly. Aimed at be
### Installation ### 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. 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.

View file

@ -107,6 +107,13 @@ function Publish-Self-Contained ($p) {
dotnet publish -c Release $csproj /p:PublishProfile=$profile 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-Portable.zip
}
function Main { function Main {
$p = Build-Path $p = Build-Path
$v = Build-Version $v = Build-Version
@ -123,6 +130,8 @@ function Main {
$o = "$p\Output\Packages" $o = "$p\Output\Packages"
Validate-Directory $o Validate-Directory $o
Pack-Squirrel-Installer $p $v $o Pack-Squirrel-Installer $p $v $o
Publish-Portable $o $v
} }
} }

View file

@ -36,6 +36,8 @@ artifacts:
name: Plugin nupkg name: Plugin nupkg
- path: 'Output\Packages\Flow-Launcher-*.exe' - path: 'Output\Packages\Flow-Launcher-*.exe'
name: Squirrel Installer name: Squirrel Installer
- path: Output\Packages\Flow-Launcher-Portable.zip
name: Portable Version
- path: 'Output\Packages\FlowLauncher-*-full.nupkg' - path: 'Output\Packages\FlowLauncher-*-full.nupkg'
name: Squirrel nupkg name: Squirrel nupkg
- path: 'Output\Packages\RELEASES' - path: 'Output\Packages\RELEASES'
@ -53,7 +55,7 @@ deploy:
release: v$(flowVersion) release: v$(flowVersion)
auth_token: auth_token:
secure: ij4UeXUYQBDJxn2YRAAhUOjklOGVKDB87Hn5J8tKIzj13yatoI7sLM666QDQFEgv secure: ij4UeXUYQBDJxn2YRAAhUOjklOGVKDB87Hn5J8tKIzj13yatoI7sLM666QDQFEgv
artifact: Squirrel Installer, Squirrel nupkg, Squirrel RELEASES artifact: Squirrel Installer, Portable Version, Squirrel nupkg, Squirrel RELEASES
draft: true draft: true
force_update: true force_update: true
on: on:
@ -63,7 +65,7 @@ deploy:
release: v$(flowVersion) release: v$(flowVersion)
auth_token: auth_token:
secure: ij4UeXUYQBDJxn2YRAAhUOjklOGVKDB87Hn5J8tKIzj13yatoI7sLM666QDQFEgv secure: ij4UeXUYQBDJxn2YRAAhUOjklOGVKDB87Hn5J8tKIzj13yatoI7sLM666QDQFEgv
artifact: Squirrel Installer, Squirrel nupkg, Squirrel RELEASES artifact: Squirrel Installer, Portable Version, Squirrel nupkg, Squirrel RELEASES
force_update: true force_update: true
on: on:
APPVEYOR_REPO_TAG: true APPVEYOR_REPO_TAG: true