ユーザ用ツール

サイト用ツール


lang:python:pyinstaller

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

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

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki