File tree Expand file tree Collapse file tree 2 files changed +3
-12
lines changed
Assets/Integrations/Autodesk/maya/scripts Expand file tree Collapse file tree 2 files changed +3
-12
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ global proc unitySetupUI(){
33
33
evalDeferred -lowestPriority "unityInstallUI";
34
34
}
35
35
36
- global proc unitySetLabelVersion(string $label){
36
+ global proc string unitySetLabelVersion(string $label){
37
37
global string $unityPluginVersion;
38
38
return `format -stringArg $label -stringArg $unityPluginVersion "^1s (v.^2s)"`;
39
39
}
Original file line number Diff line number Diff line change @@ -94,15 +94,6 @@ add_custom_target(
94
94
95
95
###########################################################################
96
96
# Add target to replace the unity package version number in files
97
- if (${CMAKE_SYSTEM_NAME} STREQUAL "Darwin" )
98
- set (VERSION_AS_STRING "\\ '${PACKAGE_VERSION} \\ '" )
99
- elseif (${CMAKE_SYSTEM_NAME} STREQUAL "Windows" )
100
- set (VERSION_AS_STRING "'${PACKAGE_VERSION} '" )
101
- elseif (${CMAKE_SYSTEM_NAME} STREQUAL "Linux" )
102
- set (VERSION_AS_STRING "\\ '${PACKAGE_VERSION} \\ '" )
103
- endif ()
104
-
105
-
106
97
set (README_TARGET readme_replace )
107
98
add_custom_target (
108
99
${README_TARGET}
@@ -114,8 +105,8 @@ add_custom_target(
114
105
COMMAND ${PYTHON_EXECUTABLE}
115
106
"${CMAKE_SOURCE_DIR} /scripts/file-search-replace.py"
116
107
"${CMAKE_SOURCE_DIR} /Assets/Integrations/Autodesk/maya/scripts/unitySetupUI.mel"
117
- ".*global string $unityPluginVersion.*=.* "
118
- "global string $unityPluginVersion = ${VERSION_AS_STRING} ; "
108
+ "{Version} "
109
+ "${PACKAGE_VERSION} "
119
110
DEPENDS "${CMAKE_SOURCE_DIR} /scripts/file-search-replace.py"
120
111
COMMENT "Replacing version number in files with ${PACKAGE_VERSION} "
121
112
)
You can’t perform that action at this time.
0 commit comments