Code Monkey home page Code Monkey logo

srun3k-boxies's Introduction

图片.png

SrunBoxies 深澜盒子

相关教程

特点

  • [ 使用python+pywebview编写,理论上适用于所有平台 ]
  • [ Windows下编译过后只有10mb,更加简洁 ]
  • [ 使用MaterialDesign美化,界面简洁清爽 ]
  • [ 前后端分离,便于维护和升级, 函数库可直接调用 ]

ToDo List

  • Windows下开机启动
  • CLI

特别感谢

很多功能只是在 原版项目 上修改的,狗尾续貂罢了,可惜项目已经存档,感谢@zengxs @noisky 同时感谢mdui的material界面框架

使用方法

Windows用户前往release页面下载解压,打开gui.exe,如要配置登陆地址和信息,请自行修改目录下的config.json文件
Centos和其他Linux用户下载Linux版,解压后cd到文件目录,终端输入gui 其他系统用户请参考源码使用

源码使用

  1. 安装python3 以及 pip
  2. 执行下方命令安装必要库
pip install requirements.txt -i https://pypi.doubanio.com/simple/
  1. 终端打开到相应目录下执行
python3 gui.py

编译

编译请先安装pyinstaller
Windows用户请复制

.\venv\Lib\site-packages\webview\lib\WebBrowserInterop.x64.dll
.\venv\Lib\site-packages\webview\lib\WebBrowserInterop.x86.dll
.\venv\Lib\site-packages\webview\lib\Microsoft.Toolkit.Forms.UI.Controls.WebView.dll

这三个文件到文件目录中(可在python目录中找到) Windows下编译命令为
pyinstaller -F gui.py --add-data "WebBrowserInterop.x86.dll;./" --add-data "WebBrowserInterop.x64.dll;./" --add-data "Microsoft.Toolkit.Forms.UI.Controls.WebView.dll;./" --noconsol -i 1.ico
可自行添加图标等文件
需要注意的是,在Windows用户必须以非管理员账户编译,否则有概率在打开时报错,这是调用默认Edge内核会出现的问题,除此之外,你也可以自行编译CEF版本,具体请参考官方文档
其他系统用户自行修改

文件结构

srun.py 为qt界面
Core.py 为核心函数
config.json 为配置文件

已知bug(其实也算不上啦)

暂时无法触发Windows的自动休眠

开源相关

遵守GPLV3开源协议,欢迎PR, 提issue

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.