Skip to content

Commit c9907ed

Browse files
committed
fixed auto updater
1 parent eb968e1 commit c9907ed

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Build
2222
run: |
2323
dotnet publish -c Release --no-self-contained -r win-x64 -o publish -p:PublishTrimmed=true
24-
vpk download http --url https://github.com/rgbcraft/NewRGBLauncher/releases/latest
24+
vpk download github --repoUrl https://github.com/rgbcraft/NewRGBLauncher/
2525
vpk pack -u NewRGB -o releases -p publish -f net8-x64-desktop -v ${{github.ref_name}}
2626
- name: Upload
2727
uses: actions/upload-artifact@v4

ViewModels/MainViewModel.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
using ProjBobcat.Interface;
2121
using ReactiveUI;
2222
using Velopack;
23+
using Velopack.Sources;
2324

2425
namespace NewRGB.ViewModels;
2526

@@ -47,7 +48,7 @@ public MainViewModel()
4748
"SOMETHING_WENT_WRONG_2";
4849
else
4950
Username = "SOMETHING_WENT_WRONG_3";
50-
_updateManager = new UpdateManager("https://github.com/rgbcraft/NewRGBLauncher/releases/latest");
51+
_updateManager = new UpdateManager(new GithubSource("https://github.com/rgbcraft/NewRGBLauncher/", null, false));
5152
}
5253

5354
public ReactiveCommand<Unit, Unit> LogoCommand { get; }

build-linux.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ dotnet publish -c Release --self-contained -r linux-x64 -o "$PUBLISH_DIR" -p:Pub
2020

2121
echo ""
2222
echo "Downloading latest release"
23-
vpk download http --url https://github.com/rgbcraft/NewRGBLauncher/releases/latest
23+
vpk download github --repoUrl https://github.com/rgbcraft/NewRGBLauncher/
2424

2525
echo ""
2626
echo "Building Velopack Release v$BUILD_VERSION"

0 commit comments

Comments
 (0)