lang:python:pyinstaller
差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン前のリビジョン次のリビジョン | 前のリビジョン | ||
lang:python:pyinstaller [2025/09/08 06:30] – [共通] editor | lang:python:pyinstaller [2025/09/08 06:41] (現在) – [mac] editor | ||
---|---|---|---|
行 1: | 行 1: | ||
====== pyinstaller ====== | ====== pyinstaller ====== | ||
+ | windows や mac で GUI アプリならば、クリックして | ||
+ | 実行できるようにする。 | ||
===== 共通 ===== | ===== 共通 ===== | ||
- | pyinstaller owned.py | + | pyinstaller owned.py |
名前が " | 名前が " | ||
行 14: | 行 16: | ||
---- | ---- | ||
===== windows ===== | ===== windows ===== | ||
- | pyinstaller owned.py --onefile --icon=" | + | pyinstaller owned.py |
+ | ==== icon ==== | ||
windows の icon は、以下の仕様で作成。 | windows の icon は、以下の仕様で作成。 | ||
- Size: 32 x 32 (ピクセル) | - Size: 32 x 32 (ピクセル) | ||
- Format: bmp(24bit) | - Format: bmp(24bit) | ||
+ | ----- | ||
===== mac ===== | ===== mac ===== | ||
+ | 1 つのファイルではなく、一つのディレクトリにする | ||
+ | |||
+ | pyisntaller owned.py --noconsole --onedir --icon=" | ||
+ | | ||
+ | ==== icon ==== | ||
+ | icon はプレビューアプリで作成できる。 | ||
+ | 保存時に Option を押しながら、保存形式を選ぶと | ||
+ | 保存形式が増える。\\ | ||
+ | 保存形式を icns にして、保存する。 | ||
+ | |||
+ | |||
+ | |||
+ |
lang/python/pyinstaller.1757313002.txt.gz · 最終更新: by editor