From f1d7e1ade3a9352ec6880ab988d73b4527985148 Mon Sep 17 00:00:00 2001 From: Frak AlNuaimy Date: Mon, 31 Aug 2020 21:41:54 -0400 Subject: [PATCH] Add release shell script --- App/BitBar/PluginManager.m | 2 ++ ...kalog-Info.plist => Dockerinfo-Info.plist} | 4 +-- App/Dockerinfo.xcodeproj/project.pbxproj | 25 +++++++++++++++++-- 3 files changed, 27 insertions(+), 4 deletions(-) rename App/{Frakalog-Info.plist => Dockerinfo-Info.plist} (94%) diff --git a/App/BitBar/PluginManager.m b/App/BitBar/PluginManager.m index 75d700d..02b9dbc 100644 --- a/App/BitBar/PluginManager.m +++ b/App/BitBar/PluginManager.m @@ -313,6 +313,8 @@ - (NSDictionary *)environment { env[@"DockerInfoBuild"] = [[NSBundle mainBundle] objectForInfoDictionaryKey:(NSString *)kCFBundleVersionKey]; env[@"DockerInfoVersion"] = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleShortVersionString"]; + //NSLog(@"CFBundleShortVersionString (DockerInfoVersion) : %@",env[@"DockerInfoVersion"]); + //NSLog(@"kCFBundleVersionKey (DockerInfoBuild) : %@",env[@"DockerInfoBuild"]); // Determine if Mac is in Dark Mode NSString *osxMode = [[NSUserDefaults standardUserDefaults] stringForKey:@"AppleInterfaceStyle"]; if ([osxMode isEqualToString:@"Dark"]) { diff --git a/App/Frakalog-Info.plist b/App/Dockerinfo-Info.plist similarity index 94% rename from App/Frakalog-Info.plist rename to App/Dockerinfo-Info.plist index 3b211a7..e23c416 100644 --- a/App/Frakalog-Info.plist +++ b/App/Dockerinfo-Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType APPL CFBundleShortVersionString - 1.0.0(beta) Aug 31st 2020 + v1.0.0_beta CFBundleSignature ???? CFBundleURLTypes @@ -32,7 +32,7 @@ CFBundleVersion - Quarantine Edition + Aug-31-2020 20:13:54 LSApplicationCategoryType public.app-category.productivity LSMinimumSystemVersion diff --git a/App/Dockerinfo.xcodeproj/project.pbxproj b/App/Dockerinfo.xcodeproj/project.pbxproj index d103c80..bf41edc 100644 --- a/App/Dockerinfo.xcodeproj/project.pbxproj +++ b/App/Dockerinfo.xcodeproj/project.pbxproj @@ -431,6 +431,7 @@ 228B2F0A1EFFF73800B497F2 /* Sources */, 228B2F201EFFF73800B497F2 /* Resources */, 228B2F241EFFF73800B497F2 /* Frameworks */, + 227EB65224FDB9460077F96E /* ShellScript */, ); buildRules = ( ); @@ -560,6 +561,26 @@ }; /* End PBXResourcesBuildPhase section */ +/* Begin PBXShellScriptBuildPhase section */ + 227EB65224FDB9460077F96E /* ShellScript */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + ); + outputFileListPaths = ( + ); + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "#commit_id=$(git rev-parse --verify HEAD | cut -c 1-7)\nbuild_date=$(date \"+%b-%d-%Y %H:%M:%S\")\ntag=$(git describe --tags)\n\n#CFBundleShortVersionString #long version\n#CFBundleVersion #build \n\n#buildNumber=$(/usr/libexec/PlistBuddy -c \"Print CFBundleVersion\" \"${PROJECT_DIR}/${INFOPLIST_FILE}\")\n#buildNumber=$(($buildNumber + 1))\n/usr/libexec/PlistBuddy -c \"Set :CFBundleVersion $build_date\" \"${PROJECT_DIR}/${INFOPLIST_FILE}\"\n/usr/libexec/PlistBuddy -c \"Set :CFBundleShortVersionString $tag\" \"${PROJECT_DIR}/${INFOPLIST_FILE}\"\n\n"; + }; +/* End PBXShellScriptBuildPhase section */ + /* Begin PBXSourcesBuildPhase section */ 05DAE00D183323DD00409786 /* Sources */ = { isa = PBXSourcesBuildPhase; @@ -824,7 +845,7 @@ "$(inherited)", DISTRO, ); - INFOPLIST_FILE = "Frakalog-Info.plist"; + INFOPLIST_FILE = "Dockerinfo-Info.plist"; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks"; MACOSX_DEPLOYMENT_TARGET = 10.7; "OTHER_CODE_SIGN_FLAGS[sdk=*]" = "--deep --force"; @@ -846,7 +867,7 @@ COMBINE_HIDPI_IMAGES = YES; DEVELOPMENT_TEAM = 7G2GKABE9F; GCC_PREPROCESSOR_DEFINITIONS = DISTRO; - INFOPLIST_FILE = "Frakalog-Info.plist"; + INFOPLIST_FILE = "Dockerinfo-Info.plist"; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks"; MACOSX_DEPLOYMENT_TARGET = 10.7; "OTHER_CODE_SIGN_FLAGS[sdk=*]" = "--deep --force";