-
-
Notifications
You must be signed in to change notification settings - Fork 370
Migrate to Velopack & Github Action #2616
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
taooceros
wants to merge
87
commits into
dev
Choose a base branch
from
velopack
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+630
−446
Open
Changes from 73 commits
Commits
Show all changes
87 commits
Select commit
Hold shift + click to select a range
1cc8b9d
first commit
taooceros 3d6782c
migrate to velopack
taooceros f5762f6
modify argument for post_build.ps1
taooceros 3a885ea
install required tool
taooceros 2f7bd56
fix upload
taooceros eecd5fe
fix upload path
taooceros 559666b
clean up post_build and roll back delete unused
taooceros bd5bed2
fix up artifact name
taooceros 765c30f
remove cache to test and skip pr build
taooceros d562441
delete no-build
taooceros be86129
delete unused arg
taooceros 0644f32
remove squirrel
taooceros f7f3759
test cache again
taooceros 653ee90
empty
taooceros 9785ec8
test github action and remove cache as it is so slow
taooceros 0d316a5
test github action
taooceros b886408
trigger push only on dev/master
taooceros f5b1880
install vpk
taooceros 5532efb
do not compress for artifacts as either binary or too small
taooceros c4e38b1
use v4 for upload artifact
taooceros a7c2227
fix cache key
taooceros 05a5a50
try new nunit
taooceros cffb5bc
cache after checkout
taooceros b24b035
revise cache
taooceros 943a9fd
try to cache vpk
taooceros bdad186
empty
taooceros 8c19ed7
revising remove duplicate
taooceros 2eb6474
try not install vpk
taooceros 4337c60
install only if cache not exists
taooceros 067f69b
set assemblyinfo after checkout
taooceros 286f49c
fix assembly version
taooceros 7df7ac0
revise version
taooceros c6ca273
add version info to the main project
taooceros 41ad35a
revise assembly version
taooceros d3e91e0
fix log
taooceros d1f61bd
try github run id
taooceros cb7fc2b
use a different build number
taooceros 42c21a2
use Sem2 versioning
taooceros 0c773b0
revise versioning
taooceros e31cde4
fix environmental variable usage
taooceros 5cb72bf
fix env variable (again)
taooceros 9f5f04c
fix again
taooceros d013135
remove $ before env
taooceros 742604c
fix build script and no need to upload nupkg and release as artifact
taooceros c563035
change the version being used and portable datafolder creation for no…
taooceros fc96eed
set NUGET_CERT_REVOCATION_MODE to offline to prevent slower restore
taooceros 8f718fd
try again
taooceros 94d912d
do not use tag number to create build which causes appveyor to publis…
taooceros 1ca7ff0
try sourcelink
taooceros 92839b0
don't check whether the location exists and use the productversion si…
taooceros 5d122df
Merge branch 'dev' into velopack
taooceros db4553f
fix a little spell check
taooceros 88957a1
Merge remote-tracking branch 'origin/velopack' into velopack
taooceros 0d0bd5e
do not include some test file
taooceros d9c65e2
remove all test from spellcheck (should do them manually)
taooceros 01bbe8f
change a little bit pattern
taooceros 8ba180b
fix more spellcheck
taooceros 6c3bcdc
fix remaining spell
taooceros c058c64
Use full path while deleting
VictoriousRaptor 82584c2
Create UserData folder before Packing
VictoriousRaptor 0982e9b
Use variable for input path
VictoriousRaptor 40691a6
Add icon for installer
VictoriousRaptor f9bb3e6
Merge 'dev' into 'velopack'
VictoriousRaptor 8fd998c
add dotnet tool update again
taooceros 65bb897
Merge remote-tracking branch 'origin/velopack' into velopack
taooceros 6123864
Revert output path
VictoriousRaptor 75b1c4b
Remove duplicate function
VictoriousRaptor 2e9bcc7
Merge branch 'dev' into velopack
VictoriousRaptor ac49888
Fix build error
VictoriousRaptor d0e0929
fix a typo for portable build
taooceros c3c2122
put the portable data path creation into the static constructor of Da…
taooceros 6db9651
delay initialize datafolder to static constructor
taooceros 6c33308
fix typo
taooceros 4945ca1
restore shortcut behavior
taooceros 98b45f7
Merge branch 'dev' of https://github.com/Flow-Launcher/Flow.Launcher …
taooceros 239b97b
fix some merge issue
taooceros ffe8352
try to not execute the command if vpk avaliable in the system.
taooceros dcd741a
remote duplicate entry
taooceros 025c503
add authors and slight refactor to make code cleaner
taooceros 11340d9
change readme according to coderabbit
taooceros 230203f
Merge branch 'dev' into velopack
taooceros 0c46da1
disable the portable button
taooceros 11f07b7
Merge remote-tracking branch 'origin/velopack' into velopack
taooceros b57d292
Merge remote-tracking branch 'refs/remotes/origin/dev' into velopack
taooceros 613b502
Merge branch 'dev' into velopack
taooceros cb77f8d
Merge branch 'dev' into velopack
jjw24 d12e756
Merge branch 'dev' into velopack
VictoriousRaptor File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -71,3 +71,4 @@ ignore$ | |
\.csproj$ | ||
\.DotSettings$ | ||
\.targets$ | ||
.*Test.cs$ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
# This workflow will build a .NET project | ||
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net | ||
|
||
name: .NET | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- dev | ||
- master | ||
pull_request: | ||
branches: | ||
- dev | ||
- master | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: windows-latest | ||
env: | ||
FlowVersion: 1.18.0 | ||
NUGET_CERT_REVOCATION_MODE: offline | ||
BUILD_NUMBER: ${{ github.run_number }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set Flow.Launcher.csproj version | ||
id: update | ||
uses: vers-one/[email protected] | ||
with: | ||
file: | | ||
"**/SolutionAssemblyInfo.cs" | ||
version: ${{ env.FlowVersion }}.${{ env.BUILD_NUMBER }} | ||
- uses: actions/cache@v4 | ||
name: Restore Nuget Cache | ||
with: | ||
path: | | ||
~/.nuget/packages | ||
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }} | ||
restore-keys: | | ||
${{ runner.os }}-nuget | ||
- uses: actions/cache@v4 | ||
name: Restore dotnet tool Cache | ||
with: | ||
path: | | ||
~/.dotnet/tools | ||
key: ${{ runner.os }}-dotnet-tools-${{ hashFiles('~/.dotnet/tools/**') }} | ||
restore-keys: | | ||
${{ runner.os }}-dotnet-tools | ||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: 7.0.x | ||
- name: Install vpk | ||
Install vpk tool (dotnet tool install will not reinstall if already installed) | ||
We will update the cli by removing cache | ||
run: dotnet tool update -g vpk | ||
- name: Restore dependencies | ||
run: dotnet restore | ||
- name: Build | ||
run: dotnet build --no-restore -c Release | ||
- name: Initialize Service | ||
run: | | ||
sc config WSearch start= auto # Starts Windows Search service- Needed for running ExplorerTest | ||
net start WSearch | ||
- name: Test | ||
run: dotnet test --no-build --verbosity normal -c Release | ||
- name: Perform post_build tasks | ||
shell: pwsh | ||
run: .\Scripts\post_build.ps1 -flowversion "${env:FlowVersion}-build.${env:BUILD_NUMBER}" | ||
- name: Upload Plugin Nupkg | ||
jjw24 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: Plugin nupkg | ||
path: | | ||
Output\Release\Flow.Launcher.Plugin.*.nupkg | ||
compression-level: 0 | ||
- name: Upload Setup | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: Flow Installer | ||
path: | | ||
Releases\FlowLauncher-*.exe | ||
compression-level: 0 | ||
- name: Upload Portable Version | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: Portable Version | ||
path: | | ||
Releases\FlowLauncher-*-Portable.zip | ||
compression-level: 0 | ||
# - name: Upload Full Nupkg | ||
# uses: actions/upload-artifact@v4 | ||
# with: | ||
# name: Full nupkg | ||
# path: | | ||
# Releases\FlowLauncher-*-full.nupkg | ||
# | ||
# compression-level: 0 | ||
# - name: Upload Release Information | ||
# uses: actions/upload-artifact@v4 | ||
# with: | ||
# name: RELEASES | ||
# path: | | ||
# Releases\RELEASES* | ||
# compression-level: 0 | ||
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
using System.Runtime.CompilerServices; | ||
using System.Reflection; | ||
using System.Runtime.CompilerServices; | ||
|
||
[assembly: InternalsVisibleTo("Flow.Launcher.Test")] |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.