juc500 정상동작
This commit is contained in:
+24
-14
@@ -1,5 +1,5 @@
|
||||
# -*- mode: python ; coding: utf-8 -*-
|
||||
# Windows 64-bit PyInstaller spec (onedir → installer / portable)
|
||||
# Shared PyInstaller inputs for Windows builds (onedir + onefile)
|
||||
from pathlib import Path
|
||||
|
||||
from PyInstaller.utils.hooks import collect_submodules
|
||||
@@ -8,13 +8,29 @@ ROOT = Path(SPECPATH).resolve()
|
||||
STATIC = ROOT / "juc500_xfer" / "static"
|
||||
VENDOR_DLL = ROOT / "vendor" / "libusb-1.0.dll"
|
||||
|
||||
hidden = collect_submodules("juc500_xfer")
|
||||
hidden = (
|
||||
collect_submodules("juc500_xfer")
|
||||
+ collect_submodules("usb")
|
||||
+ collect_submodules("pynput")
|
||||
+ [
|
||||
"six",
|
||||
"usb.core",
|
||||
"usb.util",
|
||||
"usb.backend",
|
||||
"usb.backend.libusb1",
|
||||
"pynput.keyboard",
|
||||
"pynput.mouse",
|
||||
"pynput.keyboard._win32",
|
||||
"pynput.mouse._win32",
|
||||
]
|
||||
)
|
||||
|
||||
datas = []
|
||||
for f in STATIC.iterdir():
|
||||
if f.is_file():
|
||||
datas.append((str(f), "static"))
|
||||
datas.append((str(f), "juc500_xfer/static"))
|
||||
if STATIC.is_dir():
|
||||
for f in STATIC.iterdir():
|
||||
if f.is_file():
|
||||
datas.append((str(f), "static"))
|
||||
datas.append((str(f), "juc500_xfer/static"))
|
||||
|
||||
binaries = []
|
||||
if VENDOR_DLL.is_file():
|
||||
@@ -25,13 +41,7 @@ a = Analysis(
|
||||
pathex=[str(ROOT)],
|
||||
binaries=binaries,
|
||||
datas=datas,
|
||||
hiddenimports=hidden + [
|
||||
"usb",
|
||||
"usb.core",
|
||||
"usb.util",
|
||||
"usb.backend",
|
||||
"usb.backend.libusb1",
|
||||
],
|
||||
hiddenimports=hidden,
|
||||
hookspath=[],
|
||||
hooksconfig={},
|
||||
runtime_hooks=[],
|
||||
@@ -52,7 +62,7 @@ exe = EXE(
|
||||
bootloader_ignore_signals=False,
|
||||
strip=False,
|
||||
upx=False,
|
||||
console=True, # USB/디버그 로그 확인. GUI만이면 False
|
||||
console=True,
|
||||
argv_emulation=False,
|
||||
target_arch=None,
|
||||
codesign_identity=None,
|
||||
|
||||
Reference in New Issue
Block a user