logo
0
0
WeChat Login
酸菜咸鱼<3501869534@qq.com>
添加启动页布局

sc工具箱

调试

准备:Python,Node.js(>=v18)

  1. 安装Python依赖
pip install PyQt5 pip install QtWebEngineWidgets
  1. 克隆仓库
git clone https://gitee.com/suancaixianyu/sc-toolbox.git ./sc-toolbox/
  1. 安装依赖
cd sc-toolbox npm i -g yarn yarn
  1. 启动
# 启动页面 yarn dev # 启动tailwind yarn dev:css # 启动窗口 python app.py
  1. 使用控制台

修改app.py,添加代码

DEBUG_PORT = '5589' DEBUG_URL = 'http://127.0.0.1:%s' % DEBUG_PORT os.environ['QTWEBENGINE_REMOTE_DEBUGGING'] = DEBUG_PORT

保存后重新启动 app.py

python app.py

控制台地址为 http://127.0.0.1:5589

打包

  1. 安装 pyinstaller
pip install pyinstaller
  1. 执行打包
yarn build pyinstaller --noconsole --onefile --name "SChub" --icon="favicon.ico" --add-data "dist;dist" app.py