Migrate from PyInstaller to Nuitka for compilation

This commit is contained in:
2026-07-31 13:17:09 +08:00
parent 31d31edd62
commit b5ae10db53
5 changed files with 47 additions and 23 deletions
+5 -1
View File
@@ -3,8 +3,12 @@ import os
import sys
def _is_frozen():
return getattr(sys, 'frozen', False) or '__compiled__' in sys.modules
def _get_app_dir():
if getattr(sys, 'frozen', False):
if _is_frozen():
return os.path.dirname(sys.executable)
return os.path.dirname(os.path.abspath(__file__))