-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #763 from EvanHsieh0415/master
[i18n] zh_hant upload
- Loading branch information
Showing
3 changed files
with
71 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
# SwitchHosts | ||
|
||
- [English](README.md) | ||
- [繁體中文](README.zh_hant.md) | ||
|
||
项目主页:[https://swh.app](https://swh.app) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
# SwitchHosts | ||
|
||
- [English](README.md) | ||
- [简体中文](README.zh_hans.md) | ||
|
||
項目主頁:[https://swh.app](https://swh.app) | ||
|
||
SwitchHosts 是一個管理 hosts 檔案的應用程式,基於 [Electron](http://electron.atom.io/) | ||
、[React](https://facebook.github.io/react/)、[UmiJS](https://umijs.org/) | ||
、[Chakra UI](https://chakra-ui.com/)、[CodeMirror](http://codemirror.net/) 等技術開發。 | ||
|
||
## 螢幕截圖 | ||
|
||
<img src="https://raw.githubusercontent.com/oldj/SwitchHosts/master/screenshots/sh_light.png" alt="Capture" width="960"> | ||
|
||
## 功能特性 | ||
|
||
- 快速切換 hosts 方案 | ||
- hosts 語法高亮顯示 | ||
- 支援從網路載入遠程 hosts 設定 | ||
- 可從系統菜單欄圖是快速切換 hosts | ||
|
||
## 安裝 | ||
|
||
### 下載 | ||
|
||
你可以下載原始碼並自行建置,也可以從以下網址下載已經建置好的版本: | ||
|
||
- [SwitchHosts Download Page (GitHub release)](https://github.com/oldj/SwitchHosts/releases) | ||
|
||
你也可以通過 [Chocolatey 包管理器](https://community.chocolatey.org/packages/switchhosts)安裝已經建置好的版本: | ||
```powershell | ||
choco install switchhosts | ||
``` | ||
|
||
## 數據備份 | ||
|
||
SwitchHosts 的數據文件儲存於 `~/.SwitchHosts` (Windows 下儲存使用者個人文件裡的 `.SwitchHosts` 資料夾), | ||
其中 `~/.SwitchHosts/data` 資料夾包含數據,`~/.SwitchHosts/config` 資料夾包含各種設定。 | ||
|
||
## 開發及建置 | ||
|
||
### 開發 | ||
|
||
- 安裝 [Node.js](https://nodejs.org/) | ||
- 在項目根目錄 `./` 下,執行 `npm install` 指令安裝前置 | ||
- 執行 `npm run dev` 指令啟動開發服務 | ||
- 執行 `npm run start` 啟動應用程式,即可開始開發及測試 | ||
|
||
### 打包 | ||
|
||
- 推薦使用 [electron-builder](https://github.com/electron-userland/electron-builder) 進行打包 | ||
- 轉到項目根目錄 './' | ||
- 執行 `npm run build` | ||
- 執行 `npm run make`,如果一切順利,可在 `./dist` 目錄下找到打包後的檔案 | ||
- 首次執行可能需要花費一點時間,因為需要下載相關的前置檔案。你也可以從 [這裡](https://github.com/electron/electron/releases) | ||
手動下載,並儲存到 `~/.electron`目錄下。更多資訊可以參考 [Electron 文檔](http://electron.atom.io/docs/)。 | ||
|
||
```bash | ||
# build | ||
npm run build | ||
# make | ||
npm run make # the packed files will be in ./dist | ||
``` | ||
|
||
## 版權聲明 | ||
|
||
SwitchHosts 是一個免費開源軟體,基於 Apache-2.0 開源協議發佈。 |