GithubHelp home page GithubHelp logo

classicvalues / switchhosts Goto Github PK

View Code? Open in Web Editor NEW

This project forked from oldj/switchhosts

0.0 1.0 0.0 30.7 MB

Switch hosts quickly!

Home Page: https://swh.app

License: Apache License 2.0

JavaScript 1.95% Python 39.38% Less 6.08% Shell 0.01% TypeScript 52.59%

switchhosts's Introduction

SwitchHosts

Homepage: https://swh.app

SwitchHosts is an App for managing hosts file, it is based on Electron , React, UmiJS , Chakra UI, CodeMirror, etc.

Screenshot

Capture

Features

  • Switch hosts quickly
  • Syntax highlight
  • Remote hosts
  • Switch from system tray

Install

Download

You can download the source code and build it yourself, or download the built version from following links:

Backup

SwitchHosts stores data at ~/.SwitchHosts (Or folder .SwitchHosts under the current user's home path on Windows), the ~/.SwitchHosts/data folder contains data, while the ~/.SwitchHosts/config folder contains various configuration information.

Develop and build

Development

  • Install Node.js
  • Change to the folder ./, run npm install to install dependented libraries
  • Run npm run dev to start the development server
  • Then run npm run start to start the app for developing or debuging

Build and package

  • It is recommended to use electron-builder for packaging
  • Go to the ./ folder
  • Run npm run build
  • Run npm run make, if everything goes well, the packaged files will be in the ./dist folder.
  • This command may take several minutes to finish when you run it the first time, as it needs time to download dependent files. You can download the dependencies manually here, or Taobao mirror, then save the files to ~/.electron . You can check the Electron Docs for more infomation.
# build
npm run build

# make
npm run make # the packed files will be in ./dist

Copyright

SwitchHosts is a free and open source software, it is released under the Apache License.

switchhosts's People

Contributors

akrha avatar aktilor avatar caffreysun avatar charlestang avatar clovernet avatar codeyu avatar constaline avatar cuikangyi avatar dependabot[bot] avatar elfsundae avatar fengyiway avatar janosorcsik avatar jiangbo212 avatar kant avatar kawarimidoll avatar loheagn avatar lussaczheng avatar oldj avatar pangliang avatar stotem avatar toobug avatar xmader avatar

Watchers

 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.