diff --git a/buid.bat b/buid.bat index 32bfb5d8..2934e3d5 100644 --- a/buid.bat +++ b/buid.bat @@ -1,7 +1,7 @@ cd elevenclock rmdir /Q /S build rmdir /Q /S dist -PyInstaller __init__.py --icon icon.ico --onefile --windowed --clean +PyInstaller __init__.py --icon icon.ico --add-data "icon.ico;." --onefile --windowed --clean cd dist move __init__.exe ../../ cd .. diff --git a/elevenclock/__init__.spec b/elevenclock/__init__.spec index 9a1dd963..2d529f22 100644 --- a/elevenclock/__init__.spec +++ b/elevenclock/__init__.spec @@ -6,7 +6,7 @@ block_cipher = None a = Analysis(['__init__.py'], pathex=['Y:\\ElevenClock\\elevenclock'], binaries=[], - datas=[], + datas=[('icon.ico', '.')], hiddenimports=[], hookspath=[], runtime_hooks=[],