Skip to content

Commit

Permalink
fix: Quick Search and installation bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Narua2010 committed May 8, 2021
1 parent 9a1d89c commit a31b703
Show file tree
Hide file tree
Showing 6 changed files with 102 additions and 118 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ The **The Other Roles**, is a mod for Among Us which currently adds 20 additiona

## Installation

1. Download and unzip the [AmongUsModUpdater.zip](https://github.com/Narua2010/AmongUsModUpdater/releases/download/v2.2.1/AmongUsModUpdater.zip).
1. Download and unzip the [AmongUsModUpdater.zip](https://github.com/Narua2010/AmongUsModUpdater/releases/download/v2.2.2/AmongUsModUpdater.zip).
2. Unzip the folder wherever you want.
3. Run the setup.exe.
4. The program is then started each time via desktop shortcut.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs ex)
if (Directory.GetFiles(path, @"Among Us.exe", options).Any())
ex.Result = path;
}
ex.Result = path;
}
catch (Exception e)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,16 @@ public static async void getTheOtherRoles(dynamic mainWindow)
Properties.Settings.Default.Save();
#endif
dynamic json = await ModFunctions.getModData(projectApi);
downloadUrl = json.assets[0].browser_download_url;
foreach(var value in json.assets)
{
if(value.content_type == "application/x-zip-compressed")
{
downloadUrl = value.browser_download_url;
currentReleaseId = value.id.ToString();
}
}
releaseName = json.name;
currentReleaseId = json.assets[0].id.ToString();


if (string.IsNullOrWhiteSpace(Properties.Settings.Default.ReleaseId))
{
mainWindow.buttonHomeInstall.Visible = true;
Expand Down
6 changes: 3 additions & 3 deletions source/GuiVersion/AmongUsModUpdater/AmongUsModUpdater.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
<TargetFramework>net5.0-windows</TargetFramework>
<UseWindowsForms>true</UseWindowsForms>
<ApplicationIcon>installer.ico</ApplicationIcon>
<AssemblyVersion>2.2.0.0</AssemblyVersion>
<Version>2.2.0</Version>
<AssemblyVersion>2.2.2.0</AssemblyVersion>
<Version>2.2.2</Version>
<Authors>Jolle &amp; Narua</Authors>
<Copyright>Jolle &amp; Narua</Copyright>
<PackageIcon>Logo.png</PackageIcon>
<RepositoryUrl>https://github.com/Narua2010/AmongUsModUpdater</RepositoryUrl>
<SignAssembly>false</SignAssembly>
<AssemblyOriginatorKeyFile />
<FileVersion>2.2.1.14</FileVersion>
<FileVersion>2.2.2.0</FileVersion>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<_LastSelectedProfileId>D:\AmongUsModUpdater\source\GuiVersion\AmongUsModUpdater\Properties\PublishProfiles\ClickOnceProfile.pubxml</_LastSelectedProfileId>
<_LastSelectedProfileId>D:\Github\AmongUsModUpdater\source\GuiVersion\AmongUsModUpdater\Properties\PublishProfiles\ClickOnceProfile.pubxml</_LastSelectedProfileId>
</PropertyGroup>
<ItemGroup>
<Compile Update="CustomForms\CustomButton\CustomButton.cs">
Expand Down
Loading

0 comments on commit a31b703

Please sign in to comment.