Skip to content

Commit

Permalink
a few minor changes
Browse files Browse the repository at this point in the history
content -> resource for two images, todo, bug fix
  • Loading branch information
fmmmlee committed Jan 3, 2020
1 parent d6b9e43 commit 917e4d9
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
8 changes: 4 additions & 4 deletions application/GW2 Addon Manager/Application.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -263,15 +263,15 @@
<Content Include="Resources\config_template.yaml">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="Resources\GW2-UOAOU-UI.png">
<Resource Include="Resources\GW2-UOAOU-UI.png">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
</Resource>
<None Include="Resources\logo.ico">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<Content Include="Resources\GitHub-Mark-32px.png">
<Resource Include="Resources\GitHub-Mark-32px.png">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
</Resource>
</ItemGroup>
<ItemGroup>
<COMReference Include="IWshRuntimeLibrary">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ public async Task downloadLatestRelease()
if (Directory.Exists(update_folder))
Directory.Delete(update_folder, true);

//check application version
dynamic latestInfo = UpdateHelpers.GitReleaseInfo(applicationRepoUrl);
string downloadUrl = latestInfo.assets[0].browser_download_url;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,13 @@ private void Install()

FileSystem.CopyFile(fileName, Path.Combine(Path.Combine(addon_install_path, "arcdps"), Path.GetFileName(fileName)));
}


}

//removing download from temp folder to avoid naming clashes
FileSystem.DeleteFile(fileName);

if (userConfig.version.ContainsKey(addon_info.folder_name))
userConfig.version[addon_info.folder_name] = latestVersion;
else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ namespace GW2_Addon_Manager
{
class UpdateHelpers
{
//TODO: Add catch if Github API is down/rejects call
public static dynamic GitReleaseInfo(string gitUrl)
{
var client = new WebClient();
Expand Down

0 comments on commit 917e4d9

Please sign in to comment.