ภาพรวม การพัฒนา | ผู้มีส่วนร่วม
โปรแกรมแบบสแตนด์อโลนอย่างง่ายซึ่งทำให้การติดตั้งการลบและการบำรุงรักษาดีขึ้นโดยอัตโนมัติ
ที่เก็บนี้มีซอร์สโค้ดสำหรับตัวติดตั้งที่ดีกว่า ตัวติดตั้งนี้เขียนด้วย Electron-Webpack และ Svelte 3
สิ่งเหล่านี้จะเชื่อมโยงคุณกับงานสร้างล่าสุดที่พบในแท็บรีลีสของที่เก็บนี้
| Windows (7+) | macOS (10.10+) | ลินเวกซ์ |
|---|
.
├──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สำหรับข้อมูลเกี่ยวกับการมีส่วนร่วมในโครงการนี้โปรดดูการสนับสนุน