Skip to content

Commit 796fb4f

Browse files
add the commit hash when it is not a release build to test changes easier
Signed-off-by: Cédrik Fuoco <[email protected]>
1 parent 365628f commit 796fb4f

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

src/bin/nsapps/rvlinklauncher/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@ ADD_EXECUTABLE(
1313
${_sources}
1414
)
1515

16+
# Set version suffix based on release type
17+
IF(NOT RV_RELEASE_DESCRIPTION STREQUAL "RELEASE")
18+
SET(RV_VERSION_SUFFIX "-${ORV_GIT_COMMIT_SHORT_HASH_RES}")
19+
ELSE()
20+
SET(RV_VERSION_SUFFIX "")
21+
ENDIF()
22+
1623
SET_TARGET_PROPERTIES(
1724
${_target}
1825
PROPERTIES MACOSX_BUNDLE TRUE

src/bin/nsapps/rvlinklauncher/Info.plist

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
<key>CFBundleName</key>
66
<string>RVLinkLauncher</string>
77
<key>CFBundleIdentifier</key>
8-
<string>com.autodesk.${RV_INTERNAL_APPLICATION_NAME}.${_target}.${RV_MAJOR_VERSION}.${RV_MINOR_VERSION}.${RV_REVISION_NUMBER}</string>
8+
<string>com.autodesk.${RV_INTERNAL_APPLICATION_NAME}.${_target}.${RV_MAJOR_VERSION}.${RV_MINOR_VERSION}.${RV_REVISION_NUMBER}${RV_VERSION_SUFFIX}</string>
99
<key>CFBundleVersion</key>
10-
<string>${RV_MAJOR_VERSION}.${RV_MINOR_VERSION}.${RV_REVISION_NUMBER}</string>
10+
<string>${RV_MAJOR_VERSION}.${RV_MINOR_VERSION}.${RV_REVISION_NUMBER}${RV_VERSION_SUFFIX}</string>
1111
<key>CFBundleExecutable</key>
1212
<string>RVLinkLauncher</string>
1313
<key>CFBundlePackageType</key>
@@ -20,10 +20,8 @@
2020
<string>RVLinkLauncher.icns</string>
2121
<key>LSApplicationCategoryType</key>
2222
<string>public.app-category.utilities</string>
23-
<key>LSMultipleInstancesProhibited</key>
24-
<true/>
2523
<key>CFBundleShortVersionString</key>
26-
<string>${RV_MAJOR_VERSION}.${RV_MINOR_VERSION}.${RV_REVISION_NUMBER}</string>
24+
<string>${RV_MAJOR_VERSION}.${RV_MINOR_VERSION}.${RV_REVISION_NUMBER}${RV_VERSION_SUFFIX}</string>
2725
<key>CFBundleSupportedPlatforms</key>
2826
<array>
2927
<string>MacOSX</string>

0 commit comments

Comments
 (0)