pip install PyQt5 pip install QtWebEngineWidgets
git clone https://gitee.com/suancaixianyu/sc-toolbox.git ./sc-toolbox/
cd sc-toolbox
npm i -g yarn
yarn
# 启动页面
yarn dev
# 启动tailwind
yarn dev:css
# 启动窗口
python app.py
修改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
pip install pyinstaller
yarn build
pyinstaller --noconsole --onefile --name "SChub" --icon="favicon.ico" --add-data "dist;dist" app.py