瀏覽代碼

Prepare installer.nsi for Python 3.13

rdb 1 年之前
父節點
當前提交
16afdd2bf9
共有 1 個文件被更改,包括 12 次插入0 次删除
  1. 12 0
      makepanda/installer.nsi

+ 12 - 0
makepanda/installer.nsi

@@ -426,6 +426,7 @@ SectionGroup "Python modules" SecGroupPython
         !insertmacro PyBindingSection 3.10-32 .cp310-win32.pyd
         !insertmacro PyBindingSection 3.11-32 .cp311-win32.pyd
         !insertmacro PyBindingSection 3.12-32 .cp312-win32.pyd
+        !insertmacro PyBindingSection 3.13-32 .cp313-win32.pyd
     !else
         !insertmacro PyBindingSection 3.5 .cp35-win_amd64.pyd
         !insertmacro PyBindingSection 3.6 .cp36-win_amd64.pyd
@@ -435,6 +436,7 @@ SectionGroup "Python modules" SecGroupPython
         !insertmacro PyBindingSection 3.10 .cp310-win_amd64.pyd
         !insertmacro PyBindingSection 3.11 .cp311-win_amd64.pyd
         !insertmacro PyBindingSection 3.12 .cp312-win_amd64.pyd
+        !insertmacro PyBindingSection 3.13 .cp313-win_amd64.pyd
     !endif
 SectionGroupEnd
 
@@ -546,6 +548,7 @@ Function .onInit
         !insertmacro MaybeEnablePyBindingSection 3.10-32
         !insertmacro MaybeEnablePyBindingSection 3.11-32
         !insertmacro MaybeEnablePyBindingSection 3.12-32
+        !insertmacro MaybeEnablePyBindingSection 3.13-32
         ${EndIf}
     !else
         !insertmacro MaybeEnablePyBindingSection 3.5
@@ -557,6 +560,7 @@ Function .onInit
         !insertmacro MaybeEnablePyBindingSection 3.10
         !insertmacro MaybeEnablePyBindingSection 3.11
         !insertmacro MaybeEnablePyBindingSection 3.12
+        !insertmacro MaybeEnablePyBindingSection 3.13
         ${EndIf}
     !endif
 
@@ -578,6 +582,10 @@ Function .onInit
         SectionSetFlags ${SecPyBindings3.12} ${SF_RO}
         SectionSetInstTypes ${SecPyBindings3.12} 0
     !endif
+    !ifdef SecPyBindings3.13
+        SectionSetFlags ${SecPyBindings3.13} ${SF_RO}
+        SectionSetInstTypes ${SecPyBindings3.13} 0
+    !endif
     ${EndUnless}
 FunctionEnd
 
@@ -891,6 +899,7 @@ Section Uninstall
         !insertmacro RemovePythonPath 3.10-32
         !insertmacro RemovePythonPath 3.11-32
         !insertmacro RemovePythonPath 3.12-32
+        !insertmacro RemovePythonPath 3.13-32
     !else
         !insertmacro RemovePythonPath 3.5
         !insertmacro RemovePythonPath 3.6
@@ -900,6 +909,7 @@ Section Uninstall
         !insertmacro RemovePythonPath 3.10
         !insertmacro RemovePythonPath 3.11
         !insertmacro RemovePythonPath 3.12
+        !insertmacro RemovePythonPath 3.13
     !endif
 
     SetDetailsPrint both
@@ -977,6 +987,7 @@ SectionEnd
     !insertmacro MUI_DESCRIPTION_TEXT ${SecPyBindings3.10-32} $(DESC_SecPyBindings3.10-32)
     !insertmacro MUI_DESCRIPTION_TEXT ${SecPyBindings3.11-32} $(DESC_SecPyBindings3.11-32)
     !insertmacro MUI_DESCRIPTION_TEXT ${SecPyBindings3.12-32} $(DESC_SecPyBindings3.12-32)
+    !insertmacro MUI_DESCRIPTION_TEXT ${SecPyBindings3.13-32} $(DESC_SecPyBindings3.13-32)
   !else
     !insertmacro MUI_DESCRIPTION_TEXT ${SecPyBindings3.5} $(DESC_SecPyBindings3.5)
     !insertmacro MUI_DESCRIPTION_TEXT ${SecPyBindings3.6} $(DESC_SecPyBindings3.6)
@@ -986,6 +997,7 @@ SectionEnd
     !insertmacro MUI_DESCRIPTION_TEXT ${SecPyBindings3.10} $(DESC_SecPyBindings3.10)
     !insertmacro MUI_DESCRIPTION_TEXT ${SecPyBindings3.11} $(DESC_SecPyBindings3.11)
     !insertmacro MUI_DESCRIPTION_TEXT ${SecPyBindings3.12} $(DESC_SecPyBindings3.12)
+    !insertmacro MUI_DESCRIPTION_TEXT ${SecPyBindings3.13} $(DESC_SecPyBindings3.13)
   !endif
   !ifdef INCLUDE_PYVER
     !insertmacro MUI_DESCRIPTION_TEXT ${SecPython} $(DESC_SecPython)