Skip to content

Commit

Permalink
another fix to install location
Browse files Browse the repository at this point in the history
  • Loading branch information
wiegell committed Nov 24, 2022
1 parent d842add commit d2001fd
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 35 deletions.
11 changes: 9 additions & 2 deletions AstroWall/ApplicationLayer/Helpers/General.Macos.cs
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,14 @@ public static void moveBundleToUserApplicationsFolder()
string symlinkPath = symlinkPathInSystemApplications();
string currentInstallLocation = GetInstallPath();

// Move
// Remove potential old installation
if (Directory.Exists(wantedInstallLocation))
{
var dir = new DirectoryInfo(wantedInstallLocation);
dir.Delete(true);
}

// Move app to user applications folder
NSTask mvNStask = new NSTask();
mvNStask.LaunchPath = "/bin/bash";
mvNStask.Arguments = new string[]
Expand All @@ -220,7 +227,7 @@ public static void moveBundleToUserApplicationsFolder()
mvNStask.WaitUntilExit();
Console.WriteLine("wanted intern: " + wantedInstallLocation);

// Link
// Link in applications folder
NSTask linkNStask = new NSTask();
linkNStask.LaunchPath = "/bin/bash";
linkNStask.Arguments = new string[]
Expand Down
66 changes: 33 additions & 33 deletions AstroWall/Info.plist
Original file line number Diff line number Diff line change
@@ -1,36 +1,36 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleName</key>
<string>Astro Wall</string>
<key>CFBundleIdentifier</key>
<string>com.astro.wall.Astro-Wall</string>
<key>CFBundleShortVersionString</key>
<string>0.1.13</string>
<key>CFBundleVersion</key>
<string>0.1.13-alpha-1-g04be299</string>
<key>LSMinimumSystemVersion</key>
<string>11</string>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>NSHumanReadableCopyright</key>
<string>${AuthorCopyright:HtmlEncode}</string>
<key>NSPrincipalClass</key>
<string>NSApplication</string>
<key>NSMainStoryboardFile</key>
<string>Main</string>
<key>XSAppIconAssets</key>
<string>Assets.xcassets/AppIcon.appiconset</string>
<key>LSUIElement</key>
<true/>
<key>BUNDLE VERSION COMMENT</key>
<string>Bundle version is updated "after" a commit has been made (because it needs to reflect the commit hash). Therefore its always "one commit behind" in version history, but is updated to actual version on build.</string>
</dict>
</plist>
<dict>
<key>CFBundleName</key>
<string>Astro Wall</string>
<key>CFBundleIdentifier</key>
<string>com.astro.wall.Astro-Wall</string>
<key>CFBundleShortVersionString</key>
<string>0.1.14</string>
<key>CFBundleVersion</key>
<string>0.1.14-alpha-1-g04be299</string>
<key>LSMinimumSystemVersion</key>
<string>11</string>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>NSHumanReadableCopyright</key>
<string>${AuthorCopyright:HtmlEncode}</string>
<key>NSPrincipalClass</key>
<string>NSApplication</string>
<key>NSMainStoryboardFile</key>
<string>Main</string>
<key>XSAppIconAssets</key>
<string>Assets.xcassets/AppIcon.appiconset</string>
<key>LSUIElement</key>
<true/>
<key>BUNDLE VERSION COMMENT</key>
<string>Bundle version is updated &quot;after&quot; a commit has been made (because it needs to reflect the commit hash). Therefore its always &quot;one commit behind&quot; in version history, but is updated to actual version on build.</string>
</dict>
</plist>

0 comments on commit d2001fd

Please sign in to comment.