From 4011fc04554e8e15dc5ff635c48ead613206e815 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Tue, 26 Feb 2008 13:32:37 -0500 Subject: [PATCH] Add the build number, version number, and product name strings to Info.plist and InfoPlist.strings --- English.lproj/InfoPlist.strings | Bin 202 -> 396 bytes Info.plist | 6 +++++- PrintDrop.xcodeproj/project.pbxproj | 27 ++++++++++++++++++++++----- 3 files changed, 27 insertions(+), 6 deletions(-) diff --git a/English.lproj/InfoPlist.strings b/English.lproj/InfoPlist.strings index cc2655a28bd02d6b4ed57c0faede6d71c70a2149..8e4f65e453a779c62851dddeff633ae57f371f61 100644 GIT binary patch literal 396 zcmZvYO-sW-5Qg8gzasRcK@!QSSiGp9LMX+Mo0oi5MNLAovDAO$pR_(ZdJ1J=XJ>Zi z*?H&i6Dw4pRGlgnde^JI)Tk!+i61nQ>D1x_{Fd{9Xv;lPZ}p=b**B{9RuwAN3AR?I zdrkU)+v<_`0&by_u0}TydO8O9&w4S&6`aM6_>b;5s;t&PwORi7v3Ep8o&w z{DN8jbWCJx?gN#MpFH7?>2mWMw9mDAVq`Q=%#Gyr`|XrOBb0>rl$kQ!a!YNNhHC%o ane}>24vm-WBi7C=nlU1_Fra^-m3{$-6-A8z delta 61 zcmeBSKE*g;irGpA1%`Ma^kt}IaAwG7$Ym&CNMy(Z^8A2wE<-9CFBundleIconFile CFBundleIdentifier - com.yourcompany.PrintDrop + org.bluestatic.buprintdrop + CFBundleGetInfoString + ${EXECUTABLE_NAME} 1.0 Beta 1, Copyright 2008 Blue Static + CFBundleShortVersionString + 1.0 Beta 1 CFBundleInfoDictionaryVersion 6.0 CFBundleName diff --git a/PrintDrop.xcodeproj/project.pbxproj b/PrintDrop.xcodeproj/project.pbxproj index 132b12d..6d94cc3 100644 --- a/PrintDrop.xcodeproj/project.pbxproj +++ b/PrintDrop.xcodeproj/project.pbxproj @@ -82,7 +82,7 @@ 29B97325FDCFA39411CA2CEA /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = /System/Library/Frameworks/Foundation.framework; sourceTree = ""; }; 32CA4F630368D1EE00C91783 /* PrintDrop_Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PrintDrop_Prefix.pch; sourceTree = ""; }; 8D1107310486CEB800E47090 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - 8D1107320486CEB800E47090 /* PrintDrop.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = PrintDrop.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 8D1107320486CEB800E47090 /* BU Print Drop.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "BU Print Drop.app"; sourceTree = BUILT_PRODUCTS_DIR; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -139,7 +139,7 @@ 19C28FACFE9D520D11CA2CBB /* Products */ = { isa = PBXGroup; children = ( - 8D1107320486CEB800E47090 /* PrintDrop.app */, + 8D1107320486CEB800E47090 /* BU Print Drop.app */, 1EE1E4500D748AC9002999AD /* liblibssh2.a */, ); name = Products; @@ -278,6 +278,7 @@ 8D1107290486CEB800E47090 /* Resources */, 8D11072C0486CEB800E47090 /* Sources */, 8D11072E0486CEB800E47090 /* Frameworks */, + 1EE1E4B00D749106002999AD /* ShellScript */, ); buildRules = ( ); @@ -286,7 +287,7 @@ name = PrintDrop; productInstallPath = "$(HOME)/Applications"; productName = PrintDrop; - productReference = 8D1107320486CEB800E47090 /* PrintDrop.app */; + productReference = 8D1107320486CEB800E47090 /* BU Print Drop.app */; productType = "com.apple.product-type.application"; }; /* End PBXNativeTarget section */ @@ -320,6 +321,22 @@ }; /* End PBXResourcesBuildPhase section */ +/* Begin PBXShellScriptBuildPhase section */ + 1EE1E4B00D749106002999AD /* ShellScript */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /usr/bin/ruby; + shellScript = "require \"ftools\"\nrequire \"Time\"\n\nhash = %x{/usr/local/bin/git log -1 --pretty=format:%h}\ntimestamp = %x{/usr/local/bin/git log -1 --pretty=format:%ct}\ntime = Time.at(timestamp.to_i)\n\nbuild = (\"%02d\" % time.year) + (\"%02d\" % time.month) + (\"%02d\" % time.day) + \".\" + hash\n\ninfopath = ENV[\"CONFIGURATION_BUILD_DIR\"] + \"/\" + ENV[\"INFOPLIST_PATH\"]\n\nfile = \"\"\nio = File.new(infopath)\nlastline = \"\"\nwhile line = io.gets do\n\tif lastline.match(\"CFBundleVersion\")\n\t\tfile += \"\\t#{build}\\n\"\n\telse\n\t\tfile += line\n\tend\n\tlastline = line\nend\nio.close\n\nio = File.new(infopath, \"w\")\nio.write(file)\nio.close"; + }; +/* End PBXShellScriptBuildPhase section */ + /* Begin PBXSourcesBuildPhase section */ 1EE1E44D0D748AC9002999AD /* Sources */ = { isa = PBXSourcesBuildPhase; @@ -433,7 +450,7 @@ suppress, "-force_flat_namespace", ); - PRODUCT_NAME = PrintDrop; + PRODUCT_NAME = "BU Print Drop"; WRAPPER_EXTENSION = app; ZERO_LINK = YES; }; @@ -455,7 +472,7 @@ suppress, "-force_flat_namespace", ); - PRODUCT_NAME = PrintDrop; + PRODUCT_NAME = "BU Print Drop"; WRAPPER_EXTENSION = app; }; name = Release; -- 2.43.5