Build a aistore which design an AI tool management software to provide users with a fast and easy AI application environment building solution and realize one-click start function.
Add new icon, you need to rebuild the resource file.
cd aistore
pyrcc5 -o ./app/common/resource.py ./app/resource/resource.qrc
Build executable file
pyinstaller --onefile .\aistore.py
pyinstaller --onefile --noconsole --icon=.\aistore.ico .\aistore.py
pyinstaller --onefile --noconsole --distpath .\.PyInstaller --icon=.\aistore.ico .\aistore.py
pyinstaller --onefile --additional-hooks-dir=.\app\installer .\aistore.py
OR
pyinstaller aistore.spec --distpath .\.PyInstaller
lupdate .\aistore.pro
linguist app/resource/i18n/gallery.zh_CN.ts
lrelease app/resource/i18n/gallery.zh_CN.ts
python -m venv myenv
myenv\Scripts\activate # On Windows
source myenv/bin/activate # On macOS/Linux
pip install pyinstaller
powershell -noexit -ExecutionPolicy Bypass -File .\release.ps1
-
5.14之前的版本,可以用离线安装
-
5.15后的版本,没有离线安装包了,都是在线安装包
-
创建桌面快捷方式 python Shortcuts
-
button.clicked.connect(lambda checked, i=i: self.on_button_clicked(i))