fix: make pyinstaller spec portable-friendly
This commit is contained in:
parent
f9510e65db
commit
2e7802d8ae
|
|
@ -1,4 +1,4 @@
|
|||
# -*- mode: python ; coding: utf-8 -*-
|
||||
# -*- mode: python ; coding: utf-8 -*-
|
||||
"""PyInstaller spec for VoicePTT Windows packaging."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
|
@ -9,7 +9,7 @@ from PyInstaller.utils.hooks import collect_all
|
|||
|
||||
|
||||
APP_NAME = "VoicePTT"
|
||||
SPEC_DIR = Path(__file__).resolve().parent
|
||||
SPEC_DIR = Path(SPEC).resolve().parent
|
||||
ROOT = SPEC_DIR.parents[1]
|
||||
ENTRY_POINT = ROOT / "app" / "main.py"
|
||||
ICON_FILE = ROOT / "resources" / "icons" / "app.ico"
|
||||
|
|
@ -82,3 +82,4 @@ coll = COLLECT(
|
|||
upx=True,
|
||||
name=APP_NAME,
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue