10 lines
227 B
Bash
Executable File
10 lines
227 B
Bash
Executable File
#!/bin/bash
|
||
# PyInstaller打包脚本
|
||
|
||
# 确保安装了PyInstaller
|
||
# pip install pyinstaller
|
||
|
||
# 打包应用
|
||
pyinstaller --onefile --add-data "static:static" flask_app.py
|
||
|
||
echo "打包完成!可执行文件位于dist目录" |