mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-21 10:01:27 -07:00
bump version, browserTrackerId, update in temp
so turns out the browserTrackerId is actually necessary lol oops
This commit is contained in:
parent
d1b75f6874
commit
4050b1c2e6
@ -7,8 +7,8 @@
|
||||
<UseWPF>true</UseWPF>
|
||||
<UseWindowsForms>True</UseWindowsForms>
|
||||
<ApplicationIcon>Bloxstrap.ico</ApplicationIcon>
|
||||
<Version>2.0.0</Version>
|
||||
<FileVersion>2.0.0.0</FileVersion>
|
||||
<Version>2.1.0</Version>
|
||||
<FileVersion>2.1.0.0</FileVersion>
|
||||
<ApplicationManifest>app.manifest</ApplicationManifest>
|
||||
</PropertyGroup>
|
||||
|
||||
|
@ -195,9 +195,7 @@ namespace Bloxstrap
|
||||
|
||||
// 64-bit is always the first option
|
||||
GithubReleaseAsset asset = releaseInfo.Assets[Environment.Is64BitOperatingSystem ? 0 : 1];
|
||||
string downloadLocation = Path.Combine(Directories.Updates, asset.Name);
|
||||
|
||||
Directory.CreateDirectory(Directories.Updates);
|
||||
string downloadLocation = Path.Combine(Directories.LocalAppData, "Temp", asset.Name);
|
||||
|
||||
App.Logger.WriteLine($"[Bootstrapper::CheckForUpdates] Downloading {releaseInfo.Name}...");
|
||||
|
||||
@ -205,7 +203,7 @@ namespace Bloxstrap
|
||||
{
|
||||
var response = await App.HttpClient.GetAsync(asset.BrowserDownloadUrl);
|
||||
|
||||
await using var fileStream = new FileStream(Path.Combine(Directories.Updates, asset.Name), FileMode.CreateNew);
|
||||
await using var fileStream = new FileStream(downloadLocation, FileMode.CreateNew);
|
||||
await response.Content.CopyToAsync(fileStream);
|
||||
}
|
||||
|
||||
|
@ -18,7 +18,6 @@ namespace Bloxstrap.Helpers
|
||||
public static string Integrations { get; private set; } = "";
|
||||
public static string Versions { get; private set; } = "";
|
||||
public static string Modifications { get; private set; } = "";
|
||||
public static string Updates { get; private set; } = "";
|
||||
|
||||
public static string Application { get; private set; } = "";
|
||||
|
||||
@ -31,7 +30,6 @@ namespace Bloxstrap.Helpers
|
||||
Integrations = Path.Combine(Base, "Integrations");
|
||||
Versions = Path.Combine(Base, "Versions");
|
||||
Modifications = Path.Combine(Base, "Modifications");
|
||||
Updates = Path.Combine(Base, "Updates");
|
||||
|
||||
Application = Path.Combine(Base, $"{App.ProjectName}.exe");
|
||||
}
|
||||
|
@ -14,11 +14,12 @@ namespace Bloxstrap.Helpers
|
||||
// map uri keys to command line args
|
||||
private static readonly IReadOnlyDictionary<string, string> UriKeyArgMap = new Dictionary<string, string>()
|
||||
{
|
||||
// excluding roblox-player and browsertrackerid
|
||||
// excluding roblox-player and launchtime
|
||||
{ "launchmode", "--" },
|
||||
{ "gameinfo", "-t " },
|
||||
{ "placelauncherurl", "-j "},
|
||||
// { "launchtime", "--launchtime=" }, we'll set this when launching the game client
|
||||
{ "browsertrackerid", "-b " },
|
||||
{ "robloxLocale", "--rloc " },
|
||||
{ "gameLocale", "--gloc " },
|
||||
{ "channel", "-channel " }
|
||||
@ -47,7 +48,7 @@ namespace Bloxstrap.Helpers
|
||||
val = "app";
|
||||
|
||||
if (key == "placelauncherurl")
|
||||
val = HttpUtility.UrlDecode(val).Replace("browserTrackerId", "lol");
|
||||
val = HttpUtility.UrlDecode(val);
|
||||
|
||||
if (key == "channel")
|
||||
{
|
||||
|
@ -14,7 +14,8 @@ namespace Bloxstrap.Helpers
|
||||
if (Environment.ProcessPath is null || !File.Exists(Directories.Application) || Environment.ProcessPath == Directories.Application)
|
||||
return;
|
||||
|
||||
bool isAutoUpgrade = Environment.ProcessPath.StartsWith(Directories.Updates);
|
||||
// 2.0.0 downloads updates to <BaseFolder>/Updates so lol
|
||||
bool isAutoUpgrade = Environment.ProcessPath.StartsWith(Path.Combine(Directories.Base, "Updates")) || Environment.ProcessPath.StartsWith(Path.Combine(Directories.LocalAppData, "Temp"));
|
||||
|
||||
// if downloaded version doesn't match, replace installed version with downloaded version
|
||||
FileVersionInfo currentVersionInfo = FileVersionInfo.GetVersionInfo(Environment.ProcessPath);
|
||||
|
Loading…
Reference in New Issue
Block a user