Skip to content

Commit

Permalink
fixed single file publish not getting updated by onova
Browse files Browse the repository at this point in the history
version bump 1.1.2
  • Loading branch information
Tensei committed May 12, 2021
1 parent 6a187d1 commit 88ba7f3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions anidow/Bootstrapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@
using StyletIoC;

#if RELEASE
using System.Reflection;
using System.Windows.Threading;
using Onova;
using Onova.Models;
using Onova.Services;

using MessageBox = AdonisUI.Controls.MessageBox;
Expand Down Expand Up @@ -87,7 +89,7 @@ private HttpClient InitHttpClient()
AutomaticDecompression = DecompressionMethods.All,
UseCookies = true
};
var httpClient = new HttpClient(clientHandler) {Timeout = TimeSpan.FromSeconds(10)};
var httpClient = new HttpClient(clientHandler) { Timeout = TimeSpan.FromSeconds(10) };
httpClient.DefaultRequestHeaders.UserAgent.Clear();
httpClient.DefaultRequestHeaders.UserAgent.ParseAdd(
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.85 Safari/537.36");
Expand All @@ -104,7 +106,7 @@ private Tracker InitTracker()
var tracker = new Tracker(new JsonFileStore(Environment.SpecialFolder.CommonApplicationData));
tracker.Configure<ShellView>()
.Id(_ => $"[Width={SystemParameters.VirtualScreenWidth},Height{SystemParameters.VirtualScreenHeight}]")
.Properties(w => new {w.Height, w.Width, w.Left, w.Top, w.WindowState})
.Properties(w => new { w.Height, w.Width, w.Left, w.Top, w.WindowState })
.PersistOn(nameof(ShellView.Closing))
.StopTrackingOn(nameof(ShellView.Closing));
return tracker;
Expand Down Expand Up @@ -140,6 +142,9 @@ protected override async void Configure()
try
{
var manager = new UpdateManager(
AssemblyMetadata.FromAssembly(
Assembly.GetEntryAssembly(),
System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName),
new GithubPackageResolver(
_httpClient,
"MemeLabs",
Expand Down
2 changes: 1 addition & 1 deletion anidow/anidow.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<ApplicationIcon>anidown_28v_icon.ico</ApplicationIcon>
<LangVersion>9</LangVersion>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
<Version>1.1.1</Version>
<Version>1.1.2</Version>
<Authors>Tensei</Authors>
<Company>MemeLabs</Company>
<PackageProjectUrl>https://github.com/MemeLabs/Anidow</PackageProjectUrl>
Expand Down

0 comments on commit 88ba7f3

Please sign in to comment.