3 Star 3 Fork 0

10km/aocache

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
genexe.sh 933 Bytes
一键复制 编辑 原始数据 按行查看 历史
10km 提交于 2025-03-26 14:00 +08:00 . feat(performance): 添加 AOCache 性能分析功能
#!/usr/bin/env bash
# 生成可执行文件
set -eo pipefail
# 错误处理:输出错误信息并退出
trap 'echo "错误: 在行 ${LINENO} 执行命令失败 - 命令: $BASH_COMMAND, 退出码: $?" >&2' ERR
if ! pip show pyinstaller &> /dev/null; then
echo "PyInstaller 未安装,正在安装..."
pip install pyinstaller
else
echo "PyInstaller 已安装"
fi
rm -fr build
rm -fr dist
pyinstaller --onefile aopanalyzer.py --icon aopanalyzer.ico --distpath ./bin
# 根据当前平台自动添加后缀
if [[ "$OSTYPE" == "darwin"* ]]; then
echo "生成可执行文件成功 - bin/aopanalyzer.app"
elif [[ "$OSTYPE" == "linux-gnu"* ]]; then
echo "生成可执行文件成功 - bin/aopanalyzer"
elif [[ "$OSTYPE" == "msys" || "$OSTYPE" == "cygwin" || "$OSTYPE" == "win32" ]]; then
echo "生成可执行文件成功 - bin/aopanalyzer.exe"
else
echo "生成可执行文件成功 - bin/aopanalyzer"
fi
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/l0km/aocache.git
git@gitee.com:l0km/aocache.git
l0km
aocache
aocache
master

搜索帮助