Skip to content

Commit

Permalink
Add release shell script
Browse files Browse the repository at this point in the history
  • Loading branch information
Frak AlNuaimy committed Sep 1, 2020
1 parent 200b8db commit f1d7e1a
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 4 deletions.
2 changes: 2 additions & 0 deletions App/BitBar/PluginManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -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"]) {
Expand Down
4 changes: 2 additions & 2 deletions App/Frakalog-Info.plist → App/Dockerinfo-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0.0(beta) Aug 31st 2020</string>
<string>v1.0.0_beta</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleURLTypes</key>
Expand All @@ -32,7 +32,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>Quarantine Edition</string>
<string>Aug-31-2020 20:13:54</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.productivity</string>
<key>LSMinimumSystemVersion</key>
Expand Down
25 changes: 23 additions & 2 deletions App/Dockerinfo.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,7 @@
228B2F0A1EFFF73800B497F2 /* Sources */,
228B2F201EFFF73800B497F2 /* Resources */,
228B2F241EFFF73800B497F2 /* Frameworks */,
227EB65224FDB9460077F96E /* ShellScript */,
);
buildRules = (
);
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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";
Expand All @@ -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";
Expand Down

0 comments on commit f1d7e1a

Please sign in to comment.