File tree Expand file tree Collapse file tree
libs/openFrameworksCompiled/project Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -415,6 +415,11 @@ PLATFORM_FRAMEWORKS_SEARCH_PATHS = /System/Library/Frameworks
415415# ###############################################################################
416416# PLATFORM_CC=
417417
418+ # app version (CFBundleShortVersionString, shown in the About window) and build
419+ # number (CFBundleVersion); set APP_VERSION / APP_BUILD in the project's config.make
420+ APP_VERSION ?= 1.0
421+ APP_BUILD ?= 1
422+
418423afterplatform : $(TARGET_NAME )
419424 @rm -rf bin/$(BIN_NAME ) .app
420425 @mkdir -p bin/$(BIN_NAME ) .app
@@ -439,7 +444,8 @@ afterplatform: $(TARGET_NAME)
439444 @sed -i '' 's/\$${EXECUTABLE_NAME}/$(BIN_NAME)/g' bin/$(BIN_NAME).app/Contents/Info.plist
440445 @sed -i '' 's/\$${TARGET_NAME}/$(BIN_NAME)/g' bin/$(BIN_NAME).app/Contents/Info.plist
441446 @sed -i '' 's/\$${PRODUCT_BUNDLE_IDENTIFIER}/cc.openFrameworks.$(BIN_NAME)/g' bin/$(BIN_NAME).app/Contents/Info.plist
442- @sed -i '' 's/\$${MARKETING_VERSION}/1.0/g' bin/$(BIN_NAME).app/Contents/Info.plist
447+ @sed -i '' 's/\$${MARKETING_VERSION}/$(APP_VERSION)/g' bin/$(BIN_NAME).app/Contents/Info.plist
448+ @sed -i '' 's/\$${CURRENT_PROJECT_VERSION}/$(APP_BUILD)/g' bin/$(BIN_NAME).app/Contents/Info.plist
443449
444450 @echo TARGET=$(TARGET)
445451 @mv $(TARGET) bin/$(BIN_NAME).app/Contents/MacOS
Original file line number Diff line number Diff line change @@ -417,6 +417,11 @@ PLATFORM_FRAMEWORKS_SEARCH_PATHS = /System/Library/Frameworks
417417# ###############################################################################
418418# PLATFORM_CC=
419419
420+ # app version (CFBundleShortVersionString, shown in the About window) and build
421+ # number (CFBundleVersion); set APP_VERSION / APP_BUILD in the project's config.make
422+ APP_VERSION ?= 1.0
423+ APP_BUILD ?= 1
424+
420425afterplatform : $(TARGET_NAME )
421426 @rm -rf bin/$(BIN_NAME ) .app
422427 @mkdir -p bin/$(BIN_NAME ) .app
@@ -441,7 +446,8 @@ afterplatform: $(TARGET_NAME)
441446 @sed -i '' 's/\$${EXECUTABLE_NAME}/$(BIN_NAME)/g' bin/$(BIN_NAME).app/Contents/Info.plist
442447 @sed -i '' 's/\$${TARGET_NAME}/$(BIN_NAME)/g' bin/$(BIN_NAME).app/Contents/Info.plist
443448 @sed -i '' 's/\$${PRODUCT_BUNDLE_IDENTIFIER}/cc.openFrameworks.$(BIN_NAME)/g' bin/$(BIN_NAME).app/Contents/Info.plist
444- @sed -i '' 's/\$${MARKETING_VERSION}/1.0/g' bin/$(BIN_NAME).app/Contents/Info.plist
449+ @sed -i '' 's/\$${MARKETING_VERSION}/$(APP_VERSION)/g' bin/$(BIN_NAME).app/Contents/Info.plist
450+ @sed -i '' 's/\$${CURRENT_PROJECT_VERSION}/$(APP_BUILD)/g' bin/$(BIN_NAME).app/Contents/Info.plist
445451
446452 @echo TARGET=$(TARGET)
447453 @mv $(TARGET) bin/$(BIN_NAME).app/Contents/MacOS
Original file line number Diff line number Diff line change 1010# ###############################################################################
1111# OF_ROOT = ../../..
1212
13+ # ###############################################################################
14+ # APP VERSION
15+ # The app's version, shown in the macOS About window (CFBundleShortVersionString),
16+ # and its build number (CFBundleVersion).
17+ #
18+ # (default) APP_VERSION = 1.0
19+ # (default) APP_BUILD = 1
20+ # ###############################################################################
21+ # APP_VERSION = 1.0
22+ # APP_BUILD = 1
23+
1324# ###############################################################################
1425# PROJECT ROOT
1526# The location of the project - a starting place for searching for files
Original file line number Diff line number Diff line change 1010# ###############################################################################
1111# OF_ROOT = ../../..
1212
13+ # ###############################################################################
14+ # APP VERSION
15+ # The app's version, shown in the macOS About window (CFBundleShortVersionString),
16+ # and its build number (CFBundleVersion).
17+ #
18+ # (default) APP_VERSION = 1.0
19+ # (default) APP_BUILD = 1
20+ # ###############################################################################
21+ # APP_VERSION = 1.0
22+ # APP_BUILD = 1
23+
1324# ###############################################################################
1425# PROJECT ROOT
1526# The location of the project - a starting place for searching for files
You can’t perform that action at this time.
0 commit comments