|
|
5 years ago | |
|---|---|---|
| .github | 7 years ago | |
| alfred | 5 years ago | |
| app | 5 years ago | |
| app-ui | 5 years ago | |
| assets | 6 years ago | |
| screenshots | 6 years ago | |
| scripts | 5 years ago | |
| test | 8 years ago | |
| .babelrc | 6 years ago | |
| .gitattributes | 6 years ago | |
| .gitignore | 5 years ago | |
| License.md | 8 years ago | |
| README.md | 5 years ago | |
| README_cn.md | 5 years ago | |
| package-lock.json | 5 years ago | |
| package.json | 5 years ago |
Homepage: https://oldj.github.io/SwitchHosts/
SwitchHosts! is an App for managing hosts file, it is based on Electron, React, Ant Design, CodeMirror, etc.
You can download the source code and build it yourself, or download the built version from following links:
On macOS you can install SwitchHosts! by brew cask:
brew cask install switchhosts
Thanks to @gobinathm and @iamybj for updating the brew cask version.
On Windows you can install SwitchHosts! by scoop:
scoop install switchhosts
Thanks to @batkiz for updating the scoop version.
SwitchHosts! stores data at ~/.SwitchHosts (Or folder .SwitchHosts under the current user's home path on Windows), the ~/.SwitchHosts/data.json contains data, while the ~/.SwitchHosts/preferences.json contains preferences info.
./, run npm install to install dependented librariesChange to the folder ./app, run npm install again
npm install
cd app && npm install && cd ..
./, run npm run dll to build common files./, run npm run buildChange to the folder ./, run npm start, the App should start
# create dll file
npm run dll
# build
npm run build
# start
npm start
# or start in developer mode
npm run dev
./ folder, run npm run make . 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.
# pack
npm run make # the packed files will be in ./dist
# or
npm run build-and-make
SwitchHosts! is a free and open source software, it is released under the MIT license.