Skip to content

Commit f1d7e1a

Browse files
author
Frak AlNuaimy
committed
Add release shell script
1 parent 200b8db commit f1d7e1a

File tree

3 files changed

+27
-4
lines changed

3 files changed

+27
-4
lines changed

App/BitBar/PluginManager.m

+2
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,8 @@ - (NSDictionary *)environment {
313313
env[@"DockerInfoBuild"] = [[NSBundle mainBundle] objectForInfoDictionaryKey:(NSString *)kCFBundleVersionKey];
314314
env[@"DockerInfoVersion"] = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleShortVersionString"];
315315

316+
//NSLog(@"CFBundleShortVersionString (DockerInfoVersion) : %@",env[@"DockerInfoVersion"]);
317+
//NSLog(@"kCFBundleVersionKey (DockerInfoBuild) : %@",env[@"DockerInfoBuild"]);
316318
// Determine if Mac is in Dark Mode
317319
NSString *osxMode = [[NSUserDefaults standardUserDefaults] stringForKey:@"AppleInterfaceStyle"];
318320
if ([osxMode isEqualToString:@"Dark"]) {

App/Frakalog-Info.plist App/Dockerinfo-Info.plist

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<key>CFBundlePackageType</key>
1616
<string>APPL</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>1.0.0(beta) Aug 31st 2020</string>
18+
<string>v1.0.0_beta</string>
1919
<key>CFBundleSignature</key>
2020
<string>????</string>
2121
<key>CFBundleURLTypes</key>
@@ -32,7 +32,7 @@
3232
</dict>
3333
</array>
3434
<key>CFBundleVersion</key>
35-
<string>Quarantine Edition</string>
35+
<string>Aug-31-2020 20:13:54</string>
3636
<key>LSApplicationCategoryType</key>
3737
<string>public.app-category.productivity</string>
3838
<key>LSMinimumSystemVersion</key>

App/Dockerinfo.xcodeproj/project.pbxproj

+23-2
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,7 @@
431431
228B2F0A1EFFF73800B497F2 /* Sources */,
432432
228B2F201EFFF73800B497F2 /* Resources */,
433433
228B2F241EFFF73800B497F2 /* Frameworks */,
434+
227EB65224FDB9460077F96E /* ShellScript */,
434435
);
435436
buildRules = (
436437
);
@@ -560,6 +561,26 @@
560561
};
561562
/* End PBXResourcesBuildPhase section */
562563

564+
/* Begin PBXShellScriptBuildPhase section */
565+
227EB65224FDB9460077F96E /* ShellScript */ = {
566+
isa = PBXShellScriptBuildPhase;
567+
buildActionMask = 2147483647;
568+
files = (
569+
);
570+
inputFileListPaths = (
571+
);
572+
inputPaths = (
573+
);
574+
outputFileListPaths = (
575+
);
576+
outputPaths = (
577+
);
578+
runOnlyForDeploymentPostprocessing = 0;
579+
shellPath = /bin/sh;
580+
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";
581+
};
582+
/* End PBXShellScriptBuildPhase section */
583+
563584
/* Begin PBXSourcesBuildPhase section */
564585
05DAE00D183323DD00409786 /* Sources */ = {
565586
isa = PBXSourcesBuildPhase;
@@ -824,7 +845,7 @@
824845
"$(inherited)",
825846
DISTRO,
826847
);
827-
INFOPLIST_FILE = "Frakalog-Info.plist";
848+
INFOPLIST_FILE = "Dockerinfo-Info.plist";
828849
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks";
829850
MACOSX_DEPLOYMENT_TARGET = 10.7;
830851
"OTHER_CODE_SIGN_FLAGS[sdk=*]" = "--deep --force";
@@ -846,7 +867,7 @@
846867
COMBINE_HIDPI_IMAGES = YES;
847868
DEVELOPMENT_TEAM = 7G2GKABE9F;
848869
GCC_PREPROCESSOR_DEFINITIONS = DISTRO;
849-
INFOPLIST_FILE = "Frakalog-Info.plist";
870+
INFOPLIST_FILE = "Dockerinfo-Info.plist";
850871
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks";
851872
MACOSX_DEPLOYMENT_TARGET = 10.7;
852873
"OTHER_CODE_SIGN_FLAGS[sdk=*]" = "--deep --force";

0 commit comments

Comments
 (0)