Skip to content
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

Migrate to Velopack & Github Action #2616

Open
wants to merge 87 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
87 commits
Select commit Hold shift + click to select a range
1cc8b9d
first commit
taooceros Mar 23, 2024
3d6782c
migrate to velopack
taooceros Mar 24, 2024
f5762f6
modify argument for post_build.ps1
taooceros Mar 24, 2024
3a885ea
install required tool
taooceros Mar 24, 2024
2f7bd56
fix upload
taooceros Mar 24, 2024
eecd5fe
fix upload path
taooceros Mar 24, 2024
559666b
clean up post_build and roll back delete unused
taooceros Mar 26, 2024
bd5bed2
fix up artifact name
taooceros Mar 26, 2024
765c30f
remove cache to test and skip pr build
taooceros Mar 26, 2024
d562441
delete no-build
taooceros Mar 26, 2024
be86129
delete unused arg
taooceros Mar 26, 2024
0644f32
remove squirrel
taooceros Mar 26, 2024
f7f3759
test cache again
taooceros Mar 26, 2024
653ee90
empty
taooceros Mar 26, 2024
9785ec8
test github action and remove cache as it is so slow
taooceros Mar 26, 2024
0d316a5
test github action
taooceros Mar 26, 2024
b886408
trigger push only on dev/master
taooceros Mar 26, 2024
f5b1880
install vpk
taooceros Mar 26, 2024
5532efb
do not compress for artifacts as either binary or too small
taooceros Mar 26, 2024
c4e38b1
use v4 for upload artifact
taooceros Mar 26, 2024
a7c2227
fix cache key
taooceros Mar 26, 2024
05a5a50
try new nunit
taooceros Mar 26, 2024
cffb5bc
cache after checkout
taooceros Mar 26, 2024
b24b035
revise cache
taooceros Mar 26, 2024
943a9fd
try to cache vpk
taooceros Mar 26, 2024
bdad186
empty
taooceros Mar 26, 2024
8c19ed7
revising remove duplicate
taooceros Mar 26, 2024
2eb6474
try not install vpk
taooceros Mar 26, 2024
4337c60
install only if cache not exists
taooceros Mar 26, 2024
067f69b
set assemblyinfo after checkout
taooceros Mar 26, 2024
286f49c
fix assembly version
taooceros Mar 26, 2024
7df7ac0
revise version
taooceros Mar 26, 2024
c6ca273
add version info to the main project
taooceros Mar 26, 2024
41ad35a
revise assembly version
taooceros Mar 26, 2024
d3e91e0
fix log
taooceros Mar 26, 2024
d1f61bd
try github run id
taooceros Mar 27, 2024
cb7fc2b
use a different build number
taooceros Mar 27, 2024
42c21a2
use Sem2 versioning
taooceros Mar 27, 2024
0c773b0
revise versioning
taooceros Mar 27, 2024
e31cde4
fix environmental variable usage
taooceros Mar 27, 2024
5cb72bf
fix env variable (again)
taooceros Mar 27, 2024
9f5f04c
fix again
taooceros Mar 27, 2024
d013135
remove $ before env
taooceros Mar 27, 2024
742604c
fix build script and no need to upload nupkg and release as artifact
taooceros Mar 27, 2024
c563035
change the version being used and portable datafolder creation for no…
taooceros Mar 27, 2024
fc96eed
set NUGET_CERT_REVOCATION_MODE to offline to prevent slower restore
taooceros Mar 27, 2024
8f718fd
try again
taooceros Mar 27, 2024
94d912d
do not use tag number to create build which causes appveyor to publis…
taooceros Mar 27, 2024
1ca7ff0
try sourcelink
taooceros Mar 27, 2024
92839b0
don't check whether the location exists and use the productversion si…
taooceros Mar 28, 2024
5d122df
Merge branch 'dev' into velopack
taooceros Mar 29, 2024
db4553f
fix a little spell check
taooceros Mar 29, 2024
88957a1
Merge remote-tracking branch 'origin/velopack' into velopack
taooceros Mar 29, 2024
0d0bd5e
do not include some test file
taooceros Mar 29, 2024
d9c65e2
remove all test from spellcheck (should do them manually)
taooceros Mar 29, 2024
01bbe8f
change a little bit pattern
taooceros Mar 29, 2024
8ba180b
fix more spellcheck
taooceros Mar 29, 2024
6c3bcdc
fix remaining spell
taooceros Mar 29, 2024
c058c64
Use full path while deleting
VictoriousRaptor May 3, 2024
82584c2
Create UserData folder before Packing
VictoriousRaptor May 3, 2024
0982e9b
Use variable for input path
VictoriousRaptor May 3, 2024
40691a6
Add icon for installer
VictoriousRaptor May 3, 2024
f9bb3e6
Merge 'dev' into 'velopack'
VictoriousRaptor May 3, 2024
8fd998c
add dotnet tool update again
taooceros May 4, 2024
65bb897
Merge remote-tracking branch 'origin/velopack' into velopack
taooceros May 4, 2024
6123864
Revert output path
VictoriousRaptor May 4, 2024
75b1c4b
Remove duplicate function
VictoriousRaptor May 23, 2024
2e9bcc7
Merge branch 'dev' into velopack
VictoriousRaptor May 23, 2024
ac49888
Fix build error
VictoriousRaptor May 23, 2024
d0e0929
fix a typo for portable build
taooceros May 26, 2024
c3c2122
put the portable data path creation into the static constructor of Da…
taooceros May 27, 2024
6db9651
delay initialize datafolder to static constructor
taooceros May 28, 2024
6c33308
fix typo
taooceros May 28, 2024
4945ca1
restore shortcut behavior
taooceros Jun 2, 2024
98b45f7
Merge branch 'dev' of https://github.com/Flow-Launcher/Flow.Launcher …
taooceros Jun 16, 2024
239b97b
fix some merge issue
taooceros Jun 16, 2024
ffe8352
try to not execute the command if vpk avaliable in the system.
taooceros Jun 16, 2024
dcd741a
remote duplicate entry
taooceros Jun 16, 2024
025c503
add authors and slight refactor to make code cleaner
taooceros Jun 16, 2024
11340d9
change readme according to coderabbit
taooceros Jun 16, 2024
230203f
Merge branch 'dev' into velopack
taooceros Jun 17, 2024
0c46da1
disable the portable button
taooceros Jun 19, 2024
11f07b7
Merge remote-tracking branch 'origin/velopack' into velopack
taooceros Jun 19, 2024
b57d292
Merge remote-tracking branch 'refs/remotes/origin/dev' into velopack
taooceros Jun 19, 2024
613b502
Merge branch 'dev' into velopack
taooceros Jun 19, 2024
cb77f8d
Merge branch 'dev' into velopack
jjw24 Jun 21, 2024
d12e756
Merge branch 'dev' into velopack
VictoriousRaptor Jul 4, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .github/actions/spelling/allow.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,24 @@ https
ssh
ubuntu
runcount
nunit
velopack
vpk
vsc
appveyor
appwrite
IME
hotkey
prioritise
runas
softpedia
sourcelink
TRAYMOUSEMESSAGE
uninstaller
vkcode
winget
workaround
nupkg
Firefox
Português
Português (Brasil)
1 change: 1 addition & 0 deletions .github/actions/spelling/excludes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,4 @@ ignore$
\.csproj$
\.DotSettings$
\.targets$
.*Test.cs$
8 changes: 8 additions & 0 deletions .github/actions/spelling/expect.txt
Original file line number Diff line number Diff line change
Expand Up @@ -110,3 +110,11 @@ JsonRPC
JsonRPCV2
Softpedia
img
ime
LPWStr
flowlauncher
hotkeys
LPW
productversion
requery
Wnd
9 changes: 8 additions & 1 deletion .github/actions/spelling/patterns.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,14 @@
# Automatically suggested patterns
# hit-count: 360 file-count: 108
# IServiceProvider
\bI(?=(?:[A-Z][a-z]{2,})+\b)
# IPublicAPI
\bI(?=(?:[A-Z][a-z]{2,}[A-Z]*)+\b)

# KListener
\bK(?=(?:[A-Z][a-z]{2,})+\b)

# TApplication
\bT(?=(?:[A-Z][a-z]{2,})+\b)

# hit-count: 297 file-count: 18
# uuid:
Expand Down
110 changes: 110 additions & 0 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
# 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: |
if (!(Get-Command vpk -ErrorAction SilentlyContinue)) {
dotnet tool install -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
#
8 changes: 1 addition & 7 deletions Flow.Launcher.Core/Configuration/IPortable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,6 @@ public interface IPortable
{
void EnablePortableMode();
void DisablePortableMode();
void RemoveShortcuts();
void RemoveUninstallerEntry();
void CreateShortcuts();
void CreateUninstallerEntry();
void MoveUserDataFolder(string fromLocation, string toLocation);
void VerifyUserDataAfterMove(string fromLocation, string toLocation);
bool CanUpdatePortability();
}
}
}
Loading
Loading