Skip to content

Commit 8457ac4

Browse files
committed
Merge branch 'release-0331' into HEAD
1 parent d347c85 commit 8457ac4

706 files changed

Lines changed: 82341 additions & 7411 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CMakePresets.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,27 @@
129129
"CMAKE_MACOSX_BUNDLE": "ON"
130130
}
131131
},
132+
{
133+
"name": "Clang_Mac_arm64",
134+
"displayName": "mac_debug_arm64",
135+
"description": "使用编译器: C = /usr/bin/clang, CXX = /usr/bin/clang++",
136+
"binaryDir": "${sourceDir}/out/${presetName}/build",
137+
"installDir": "${sourceDir}/out/${presetName}/install/",
138+
"generator": "Ninja",
139+
"cacheVariables": {
140+
"CMAKE_C_COMPILER": "/usr/bin/clang",
141+
"CMAKE_CXX_COMPILER": "/usr/bin/clang++",
142+
"CMAKE_BUILD_TYPE": "Release",
143+
"CMAKE_CONFIGURE_TYPE": "${presetName}",
144+
"BBL_RELEASE_TO_PUBLIC": "1",
145+
"CMAKE_INSTALL_PREFIX": "./CrealityPrint",
146+
"CMAKE_PREFIX_PATH": "/Users/qprj/work/DEPS_LIB_DIR/usr/local/",
147+
"GENERATE_ORCA_HEADER": "OFF",
148+
"CMAKE_MACOSX_RPATH": "ON",
149+
"CMAKE_OSX_DEPLOYMENT_TARGET": "11.3",
150+
"CMAKE_MACOSX_BUNDLE": "ON"
151+
}
152+
},
132153
{
133154
"name": "mac_clang",
134155
"displayName": "自定义配置预设",

cmake/modules/NSIS.template.in

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
; CPack install script designed for a nmake build
2-
2+
RequestExecutionLevel admin
33
;--------------------------------
44
; You must define these values
55
@CPACK_PACKAGE_UNICODE@
@@ -10,6 +10,7 @@
1010
!define APP_NAME "@CPACK_NSIS_PACKAGE_NAME@"
1111
!define WebView2Installer "@CPACK_WEBVIEW2_NAME@"
1212
!define VCREDIST_X64Installer "@CPACK_VCREDIST_X64_NAME@"
13+
!define STLTHUMB_X64Installer "@CPACK_STLTHUMB_NAME@"
1314
;--------------------------------
1415
;Variables
1516

@@ -718,7 +719,8 @@ Section "-Core installation"
718719

719720
ExecWait '"$INSTDIR\\${WebView2Installer}" /silent /install'
720721
ExecWait '"$INSTDIR\\${VCREDIST_X64Installer}" /silent /install'
721-
722+
ExecWait '"$INSTDIR\\${STLTHUMB_X64Installer}" /silent /install'
723+
722724
;Store installation folder
723725
WriteRegStr SHCTX "Software\@CPACK_PACKAGE_VENDOR@\@CPACK_PACKAGE_INSTALL_REGISTRY_KEY@" "" $INSTDIR
724726
WriteRegStr HKCU "Software\Microsoft\DirectX\UserGpuPreferences" "$INSTDIR\${PROCESS_NAME}" "GpuPreference=2;"
@@ -807,12 +809,12 @@ WriteRegStr HKCR "cxprj_cxsw\shell\open\command" "" '"$INSTDIR\${PROCESS_NAME}"
807809
System::Call "Shell32::SHChangeNotify(i 0x8000000, i 0, i 0, i 0)"
808810

809811
;add stl thumb
810-
WriteRegStr HKCR ".stl\shellex\{e357fccd-a995-4576-b01f-234630154e96}" "" "{AF07F051-9D08-44A7-8C63-9296ADFEDDD7}"
811-
WriteRegStr HKCR "CLSID\{AF07F051-9D08-44A7-8C63-9296ADFEDDD7}" "" "STLThumbWinShellExtension.STLThumbnailProvider Class"
812-
WriteRegDWORD HKCR "CLSID\{AF07F051-9D08-44A7-8C63-9296ADFEDDD7}" "DisableProcessIsolation" 1
813-
WriteRegStr HKCR "CLSID\{AF07F051-9D08-44A7-8C63-9296ADFEDDD7}\InprocServer32" "" "$INSTDIR\STLThumbWinShellExtension.dll"
814-
WriteRegStr HKCR "CLSID\{AF07F051-9D08-44A7-8C63-9296ADFEDDD7}\InprocServer32" "ThreadingModel" "Apartment"
815-
812+
;ExecWait '"regsvr32" /s "$INSTDIR\STLThumbWinShellExtension.dll"'
813+
;WriteRegStr HKCR ".stl\shellex\{e357fccd-a995-4576-b01f-234630154e96}" "" "{AF07F051-9D08-44A7-8C63-9296ADFEDDD7}"
814+
;WriteRegStr HKCR "CLSID\{AF07F051-9D08-44A7-8C63-9296ADFEDDD7}" "" "STLThumbWinShellExtension.STLThumbnailProvider Class"
815+
;WriteRegDWORD HKCR "CLSID\{AF07F051-9D08-44A7-8C63-9296ADFEDDD7}" "DisableProcessIsolation" 1
816+
;WriteRegStr HKCR "CLSID\{AF07F051-9D08-44A7-8C63-9296ADFEDDD7}\InprocServer32" "" "$INSTDIR\STLThumbWinShellExtension.dll"
817+
;WriteRegStr HKCR "CLSID\{AF07F051-9D08-44A7-8C63-9296ADFEDDD7}\InprocServer32" "ThreadingModel" "Both"
816818
SectionEnd
817819

818820
Section "-Add to path"
@@ -933,9 +935,12 @@ Section "Un.${APP_NAME}"
933935
Delete "$INSTDIR\AddRemove.exe"
934936
!endif
935937

936-
;Remove stl thumb
937-
DeleteRegKey HKCR ".stl\shellex\{e357fccd-a995-4576-b01f-234630154e96}"
938-
DeleteRegKey HKCR "CLSID\{AF07F051-9D08-44A7-8C63-9296ADFEDDD7}"
938+
; Remove stl thumb
939+
; ExecWait '"regsvr32" /s /u "$INSTDIR\STLThumbWinShellExtension.dll"'
940+
; Delete "$INSTDIR\stl-thumb.exe"
941+
; Delete "$INSTDIR\STLThumbWinShellExtension.dll"
942+
; DeleteRegKey HKCR ".stl\shellex\{e357fccd-a995-4576-b01f-234630154e96}"
943+
; DeleteRegKey HKCR "CLSID\{AF07F051-9D08-44A7-8C63-9296ADFEDDD7}"
939944

940945
;Remove the uninstaller itself.
941946
Delete "$INSTDIR\@CPACK_NSIS_UNINSTALL_NAME@.exe"

0 commit comments

Comments
 (0)