diff --git a/EnvyUpdate/Util.cs b/EnvyUpdate/Util.cs index ba48d29..f95ad1f 100644 --- a/EnvyUpdate/Util.cs +++ b/EnvyUpdate/Util.cs @@ -390,10 +390,13 @@ namespace EnvyUpdate public static async Task DoUpdateAsync() { - using (var manager = new UpdateManager(new GithubPackageResolver("fyr77", "EnvyUpdate", "EnvyUpdate*.zip"), new ZipPackageExtractor())) + using (var httpc = new System.Net.Http.HttpClient()) { - // Check for new version and, if available, perform full update and restart - await manager.CheckPerformUpdateAsync(); + using (var manager = new UpdateManager(new WebPackageResolver(httpc, "https://dev.jakobsenkl.pw/envyupdate/versions.txt"), new ZipPackageExtractor())) + { + // Check for new version and, if available, perform full update and restart + await manager.CheckPerformUpdateAsync(); + } } } } diff --git a/res/scoop/envyupdate.json b/res/scoop/envyupdate.json index 8e485bc..9a8b249 100644 --- a/res/scoop/envyupdate.json +++ b/res/scoop/envyupdate.json @@ -1,11 +1,11 @@ { - "version": "2.9", + "version": "2.10", "description": "A small update checker for NVidia GPUs.", "homepage": "https://github.com/fyr77/EnvyUpdate", "license": "MIT", - "url": "https://github.com/fyr77/EnvyUpdate/releases/download/2.9/PackageManagerZip.zip", - "hash": "1041E050C0C1C7DC91E5CF18E0DBB445315BE93D53FEFD85ED0165CE5A85A9C1", - "extract_dir": "EnvyUpdate-2.9", + "url": "https://dev.jakobsenkl.pw/envyupdate/2.10-scoop", + "hash": "4CFCBDBBBA8ED4EFC1D226C8BAB4F78DD4F7A0C11A543ADA951DE66B0751F8ED", + "extract_dir": "EnvyUpdate-2.10", "bin": "EnvyUpdate.exe", "shortcuts": [ [ @@ -18,6 +18,6 @@ "github": "https://github.com/fyr77/EnvyUpdate" }, "autoupdate": { - "url": "https://github.com/fyr77/EnvyUpdate/releases/download/$version/PackageManagerZip.zip" + "url": "https://dev.jakobsenkl.pw/envyupdate/$version-scoop" } }