Coder Social home page Coder Social logo

shuax-chrome-upgrade's Introduction

shuax-chrome-upgrade

一个可以升级 shuax chrome 便携版 的工具

github

功能

  • 简单交互式操作
  • 自动检测最新的 shuax chrome 版本
  • 用户决定是否进行升级操作(自动下载、解压、重命名文件等)
  • windows下 配合.bat文件 实现开机自动检测更新功能

流程

free-pic

使用

自定义config.json配置文件(shuax chrome 的安装目录)

例:假如我的shuax chrome 安装解压目录为

free-pic

那么 local_chrome_path 就定义为 D:\d\shuax_chrome\Chrome。如下:

# 参数说明
{
  "comments": {
    "comment1": "// 这些是注释不用理会,local_chrome_path:本地chrome安装路径",
    "comment2": "// proxy_url: 下载代理,检查最新版本跟下载可能需要翻墙,如程序有错误抛出,请尝试使用代理解决(不使用代理则无需配置该项,或者设置为空字符串)。",
    "comment3": "http://127.0.0.1:7890"
  },
  "app": {
    "local_chrome_path": "D:\\d\\shuax_chrome\\Chrome"
    ,"proxy_url": "http://127.0.0.1:7890"
  }
}

编译 (提供编译好的文件 shuax-chrome-upgrade.7z 下载 releases )

手动编译

go build -ldflags "-s -w" -gcflags="all=-trimpath=${PWD}" -asmflags="all=-trimpath=${PWD}"

运行

  • 请不要随意更改shuax chrome原本的目录结构
  • 保证编译的文件与 config.json、7z.dll、7z.exe 文件 在同级目录
  • 执行 ./shuax-chrome-upgrade.exe 或者双击启动,根据提示输入指令完成升级

升级

free-pic free-pic

无需升级

free-pic

windows 开机自动检测(创建.bat文件)

./shuax-chrome-upgrade.bat

创建快捷方式,设定开机自启即可

shuax-chrome-upgrade's People

Contributors

hezhizheng avatar

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.