|
3 сар өмнө | |
---|---|---|
.github | 11 сар өмнө | |
alfred | 2 жил өмнө | |
app | 1 жил өмнө | |
assets | 3 жил өмнө | |
screenshots | 4 жил өмнө | |
scripts | 1 жил өмнө | |
src | 1 жил өмнө | |
test | 4 жил өмнө | |
.gitattributes | 6 жил өмнө | |
.gitignore | 3 жил өмнө | |
.prettierignore | 4 жил өмнө | |
.prettierrc.json | 3 жил өмнө | |
LICENSE | 5 сар өмнө | |
README.md | 2 жил өмнө | |
README.zh_hans.md | 2 жил өмнө | |
README.zh_hant.md | 2 жил өмнө | |
electron.d.ts | 4 жил өмнө | |
package-lock.json | 3 сар өмнө | |
package.json | 3 сар өмнө | |
tsconfig.json | 2 жил өмнө | |
typings.d.ts | 2 жил өмнө | |
vite.main.config.mts | 1 жил өмнө | |
vite.render.config.mts | 1 жил өмнө |
Homepage: https://switchhosts.vercel.app
SwitchHosts is an App for managing hosts file, it is based on Electron , React, Jotai , Chakra UI, CodeMirror, etc.
You can download the source code and build it yourself, or download the built version from following links:
You can also install the built version using the package manager Chocolatey:
choco install switchhosts
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.
./
, run npm install
to install dependented librariesnpm run dev
to start the development servernpm run start
to start the app for developing or debuging./
foldernpm run build
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
SwitchHosts is a free and open source software, it is released under the Apache License.