File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22223 . まずは ** onedir** 形式でビルドする。
2323
2424 ``` bash
25- pyinstaller --noconfirm --windowed --name RadarScanner main.py
25+ pyinstaller --noconfirm --windowed --hidden-import serial -- name RadarScanner main.py
2626 ```
2727
28284 . 生成物を確認する。
59595 . まずは ** onedir** 形式でビルドする。
6060
6161 ``` bash
62- uv run pyinstaller --noconfirm --windowed --name RadarScanner main.py
62+ uv run pyinstaller --noconfirm --windowed --hidden-import serial -- name RadarScanner main.py
6363 ```
6464
65656 . 生成物を確認する。
7777onedir 版の動作確認が完了したら、必要に応じて onefile 版も検証する。
7878
7979``` bash
80- pyinstaller --noconfirm --windowed --onefile --name RadarScanner main.py
80+ pyinstaller --noconfirm --windowed --onefile --hidden-import serial -- name RadarScanner main.py
8181```
8282
8383uv 版で実施する場合:
8484
8585``` bash
86- uv run pyinstaller --noconfirm --windowed --onefile --name RadarScanner main.py
86+ uv run pyinstaller --noconfirm --windowed --onefile --hidden-import serial -- name RadarScanner main.py
8787```
8888
8989- 生成される実行ファイルの場所: ` dist/RadarScanner.exe `
You can’t perform that action at this time.
0 commit comments