fix: make pyinstaller spec portable-friendly

This commit is contained in:
Ilgiz Kalmetyev 2026-04-09 16:06:01 +05:00
parent f9510e65db
commit 2e7802d8ae
1 changed files with 3 additions and 2 deletions

View File

@ -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,
)