From d2001fd87b7640c67d1b4c8a3740eae83a5f8ffa Mon Sep 17 00:00:00 2001 From: BWiegell Date: Thu, 24 Nov 2022 09:49:20 +0100 Subject: [PATCH] another fix to install location --- .../ApplicationLayer/Helpers/General.Macos.cs | 11 +++- AstroWall/Info.plist | 66 +++++++++---------- 2 files changed, 42 insertions(+), 35 deletions(-) diff --git a/AstroWall/ApplicationLayer/Helpers/General.Macos.cs b/AstroWall/ApplicationLayer/Helpers/General.Macos.cs index 8dc9a4a..2212547 100644 --- a/AstroWall/ApplicationLayer/Helpers/General.Macos.cs +++ b/AstroWall/ApplicationLayer/Helpers/General.Macos.cs @@ -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[] @@ -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[] diff --git a/AstroWall/Info.plist b/AstroWall/Info.plist index 339a016..ef8228e 100644 --- a/AstroWall/Info.plist +++ b/AstroWall/Info.plist @@ -1,36 +1,36 @@ - - CFBundleName - Astro Wall - CFBundleIdentifier - com.astro.wall.Astro-Wall - CFBundleShortVersionString - 0.1.13 - CFBundleVersion - 0.1.13-alpha-1-g04be299 - LSMinimumSystemVersion - 11 - CFBundleDevelopmentRegion - en - CFBundleInfoDictionaryVersion - 6.0 - CFBundlePackageType - APPL - CFBundleSignature - ???? - NSHumanReadableCopyright - ${AuthorCopyright:HtmlEncode} - NSPrincipalClass - NSApplication - NSMainStoryboardFile - Main - XSAppIconAssets - Assets.xcassets/AppIcon.appiconset - LSUIElement - - BUNDLE VERSION COMMENT - 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. - - \ No newline at end of file + + CFBundleName + Astro Wall + CFBundleIdentifier + com.astro.wall.Astro-Wall + CFBundleShortVersionString + 0.1.14 + CFBundleVersion + 0.1.14-alpha-1-g04be299 + LSMinimumSystemVersion + 11 + CFBundleDevelopmentRegion + en + CFBundleInfoDictionaryVersion + 6.0 + CFBundlePackageType + APPL + CFBundleSignature + ???? + NSHumanReadableCopyright + ${AuthorCopyright:HtmlEncode} + NSPrincipalClass + NSApplication + NSMainStoryboardFile + Main + XSAppIconAssets + Assets.xcassets/AppIcon.appiconset + LSUIElement + + BUNDLE VERSION COMMENT + 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. + +