代码拉取完成,页面将自动刷新
#!/bin/bash
echo "Checking if PyInstaller is installed..."
if ! pip show pyinstaller > /dev/null 2>&1; then
echo "PyInstaller not found, installing..."
pip install pyinstaller
else
echo "PyInstaller is already installed"
fi
echo "Starting compilation..."
pyinstaller --noconfirm \
--clean \
--name "DataShadow" \
--add-data "src/ui:src/ui" \
--add-data "sources:sources" \
--add-data "README.md:." \
--hidden-import "pymysql" \
--hidden-import "oracledb" \
--hidden-import "pandas" \
--hidden-import "numpy" \
--hidden-import "openpyxl" \
--hidden-import "tkinter" \
--hidden-import "json" \
--hidden-import "csv" \
--onefile \
--icon="sources/icon.png" \
main.py
echo "Cleaning temporary files..."
rm -rf build
rm -f main.spec
echo "Compilation completed!"
echo "Executable file is located in dist directory"
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。