Installer
v1.3.0
概述|發展|貢獻者
一個簡單的獨立程序,可以自動使用BetterDiscord的安裝,拆卸和維護。
該存儲庫包含BetterDiscord Installer的源代碼。該安裝程序用電子webpack和Svelte 3編寫。
這些將鏈接到此存儲庫的“版本”選項卡中找到的最新構建。
| Windows(7+) | macOS(10.10+) | Linux |
|---|
.
├──assets // Contains static assets (such as images) used by the installer.
| └──images // Images (logos, backgrounds, etc...) used by the installer.
├──scripts // Scripts needed for development and contributing.
└──src // The installer's source code.
├──main // Electron "main" process. Creates and configures the BrowserWindow.
└──renderer // Electron "renderer" process. Contains most components and scripts.
├──actions // Scripts performed by the installer such as installing, repairing and uninstalling.
| └──utils // Common utilities used by installer actions (such as killing discord).
├──common // Common UI components such as buttons, checkboxes, radios, etc...
├──pages // Component files for each page in the installer's setup process.
├──stores // Svelte store used for storing global data.
| └──types // Used for defining custom svelte stores.
└──transitions // Contains custom Svelte transitions and animations.
這是一個教程,專門為希望為安裝程序的源代碼做出貢獻或直接工作的人們而設計。如果您只是想下載並安裝BetterDiscord,請訪問此存儲庫的版本頁面。
git clone https: //github.com /BetterDiscord/installer && cd installer這將創建此存儲庫的本地副本,並將您導航到存儲庫的根文件夾。
在根文件夾上運行此命令以安裝依賴項:
yarn install要在開發模式下運行安裝程序,只需運行以下命令:
yarn dev 該項目使用ESLINT。運行此命令以提交您的更改:
yarn lint yarn dist有關為該項目做出貢獻的信息,請參見parduting.md。