Skip to content

Commit

Permalink
Some Mac updater improvements;
Browse files Browse the repository at this point in the history
  • Loading branch information
k-karuna committed Nov 5, 2021
1 parent 3d8ef48 commit f0f89ac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Atomex.Client.Desktop.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
<UseAppHost>true</UseAppHost>
<ApplicationIcon>Resources/Images/logo_dark_256x256.ico</ApplicationIcon>

<AssemblyVersion>1.1.53</AssemblyVersion>
<Version>1.1.53</Version>
<AssemblyVersion>1.1.54</AssemblyVersion>
<Version>1.1.54</Version>
</PropertyGroup>
<ItemGroup>
<AvaloniaResource Include="Assets\**" />
Expand Down
4 changes: 2 additions & 2 deletions Common/MacUpdater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ protected virtual async Task RunDownloadedInstaller(string downloadFilePath)
if (IsZipDownload(downloadFilePath)) // .zip on macOS or .tar.gz on Linux
{
var tarCommand = isMacOS
? $"tar -x -f {downloadFilePath} -C \"{workingDir}\""
? $"tar -x -f {downloadFilePath} -C \"{workingDir}{AppName}\" --strip-components=1"
: $"tar -xf {downloadFilePath} -C \"{workingDir}\" --overwrite";

var rmCommand = $"rm {downloadFilePath}";
Expand Down Expand Up @@ -242,7 +242,7 @@ protected virtual async Task RunDownloadedInstaller(string downloadFilePath)
<array>
<string>/bin/bash</string>
<string>-c</string>
<string>/usr/bin/open {workingDir}{AppName};launchctl unload -w {LaunchdDirFilePath}</string>
<string>/usr/bin/open ""{workingDir}{AppName}"";launchctl unload -w {LaunchdDirFilePath}</string>
</array>
</dict>
</plist>
Expand Down

0 comments on commit f0f89ac

Please sign in to comment.