0
pyInstaller 중에이 오해 .icns
을 포함하는 사용자에 대한 플래그를 정의 업데이트하지 않고 설명 된대로 실제로, 아무것도하지 않는 : pyInstaller 중에는 IC
-i FILE.ICO, -i FILE.EXE,ID, -i FILE.ICNS, --icon=FILE.ICO, --icon=FILE.EXE,ID, --icon=FILE.ICNS
If FILE is an .ico file, add the icon to the final executable. Otherwise, the syntax 'file.exe,id' to extract the icon with the specified id from file.exe and add it to the final executable. If FILE is an .icns file, add the icon to the final .app bundle on Mac OS X (for Mac not yet implemented)
는 그래서 오히려 희망했다. 그 다음으로 가장 좋은 방법은 분명히 기본 PyInstaller 아이콘을 내 자신의 것으로 대체하는 것입니다. 나는 스크립트에서이 작업을 수행 :
pyinstaller -y --windowed --name="foobar" --workpath="target/build" --distpath="target/dist" *.spec
# Update the icon: PyInstaller's -i switch is not implemented for Mac
cp "path/to/icon.icns" "target/dist/foobar.app/Contents/Resources/icon-windowed.icns"
그러나, 나는이 프로그램이 일을하는 것은 이미 원래 파이썬 아이콘을 가진 것으로 응용 프로그램을 등록하기 때문에 찾기가 혼동됩니다 것을 발견했다. 그러나 그것은 발견 될 수 없습니다. 따라서 응용 프로그램이 아이콘없이 실행됩니다.
어떻게 아이콘을 올바르게 설정할 수 있습니까?