Skip to content

Commit b312c08

Browse files
authored
Merge pull request #12 from iorithe2009/iorithe2009-patch-2
Update build instructions to include hidden-import serial
2 parents 7213d67 + f553166 commit b312c08

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

pc_radar/BUILD_WINDOWS.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
3. まずは **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

2828
4. 生成物を確認する。
@@ -59,7 +59,7 @@
5959
5. まずは **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

6565
6. 生成物を確認する。
@@ -77,13 +77,13 @@
7777
onedir 版の動作確認が完了したら、必要に応じて 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

8383
uv 版で実施する場合:
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`

0 commit comments

Comments
 (0)