7 Star 104 Fork 18

Cubeiic-HanXuan/cube-shell

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
app.sh 1.19 KB
一键复制 编辑 原始数据 按行查看 历史
#!/bin/bash
# 激活虚拟环境
source venv/bin/activate
mkdir deploy
echo "1: Installing Nuitka..."
pip install nuitka
echo "2: Installing create-dmg..."
brew install create-dmg
echo "3: Building the application..."
nuitka \
--macos-create-app-bundle \
--standalone \
--enable-plugin=pyside6 \
--follow-imports \
--macos-app-icon=icons/logo.icns \
--include-module=qdarktheme \
--include-module=deepdiff \
--include-module=pygments \
--include-module=paramiko \
--include-module=pyte \
--include-module=pygments.formatters.html \
--include-module=pygments.lexers.python \
--include-package=core,function,style,ui,icons \
--include-data-dir=conf=conf \
--include-data-dir=frp=frp \
cube-shell.py
# Step 4: Create tunnel.json file
echo "4: Creating tunnel.json file..."
echo "{}" > cube-shell.app/Contents/MacOS/conf/tunnel.json
# Step 5: Delete config.dat file
echo "5: Deleting config.dat file..."
rm -f cube-shell.app/Contents/MacOS/conf/config.dat
echo "5: create-dmg..."
create-dmg --volname "Cube Shell" \
--window-size 800 400 \
--app-drop-link 400 200 \
deploy/cube-shell.dmg cube-shell.app
rm -rf cube-shell.dist
rm -rf cube-shell.build
# 退出虚拟环境
deactivate
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/cubeiic-hanxuan/cube-shell.git
git@gitee.com:cubeiic-hanxuan/cube-shell.git
cubeiic-hanxuan
cube-shell
cube-shell
master

搜索帮助