Equicord/docs/1_INSTALLING.md

98 lines
2.4 KiB
Markdown
Raw Normal View History

2024-04-17 14:29:47 -04:00
> [!WARNING]
> These instructions are only for advanced users. If you're not a Developer, you should use our [graphical installer](https://github.com/Equicord/Installer#usage) instead.
> No support will be provided for installing in this fashion. If you cannot figure it out, you should just stick to a regular install.
2022-11-21 16:26:12 -05:00
2022-10-07 19:44:12 -04:00
# Installation Guide
2024-04-17 14:29:47 -04:00
Welcome to Megu's Installation Guide! In this file, you will learn about how to download, install, and uninstall Equicord!
2022-10-07 19:44:12 -04:00
## Sections
2022-10-09 16:31:51 -04:00
- [Installation Guide](#installation-guide)
- [Sections](#sections)
- [Dependencies](#dependencies)
2024-04-17 14:29:47 -04:00
- [Installing Equicord](#installing-equicord)
- [Updating Equicord](#updating-equicord)
- [Uninstalling Equicord](#uninstalling-equicord)
2022-10-07 19:44:12 -04:00
## Dependencies
- Install Git from https://git-scm.com/download
- Install Node.JS LTS from here: https://nodejs.dev/en/
2024-04-17 14:29:47 -04:00
## Installing Equicord
2022-10-07 19:44:12 -04:00
Install `pnpm`:
2023-03-30 23:30:45 -04:00
> :exclamation: This next command may need to be run as admin/root depending on your system, and you may need to close and reopen your terminal for pnpm to be in your PATH.
2022-10-07 19:44:12 -04:00
```shell
npm i -g pnpm
```
2024-04-17 14:29:47 -04:00
> :exclamation: **IMPORTANT** Make sure you aren't using an admin/root terminal from here onwards. It **will** mess up your Discord/Equicord instance and you **will** most likely have to reinstall.
2024-04-17 14:29:47 -04:00
Clone Equicord:
2022-10-07 19:44:12 -04:00
```shell
2024-04-17 14:29:47 -04:00
git clone https://github.com/Equicord/Equicord
cd Equicord
2022-10-07 19:44:12 -04:00
```
Install dependencies:
```shell
2022-10-09 16:31:51 -04:00
pnpm install --frozen-lockfile
2022-10-07 19:44:12 -04:00
```
2024-04-17 14:29:47 -04:00
Build Equicord:
2022-10-07 19:44:12 -04:00
```shell
pnpm build
```
2024-04-17 14:29:47 -04:00
Inject Equicord into your client:
2022-10-07 19:44:12 -04:00
```shell
pnpm inject
```
2024-04-17 14:29:47 -04:00
Then fully close Discord from your taskbar or task manager, and restart it. Equicord should be injected - you can check this by looking for the Equicord section in Discord settings.
2022-10-07 19:44:12 -04:00
If you're using Discord already, go into the `Updater` tab in settings.
2023-09-05 13:40:32 -04:00
Sometimes it may be necessary to manually update if the GUI updater fails.
2022-10-07 19:44:12 -04:00
To pull latest changes:
```shell
git pull
```
2024-04-17 14:29:47 -04:00
If this fails, you likely need to reset your local changes to equicord to resolve merge errors:
2022-10-07 19:44:12 -04:00
2024-04-17 14:29:47 -04:00
> :exclamation: This command will remove any local changes you've made to equicord. Make sure you back up if you made any code changes you don't want to lose!
2022-10-07 19:44:12 -04:00
```shell
git reset --hard
git pull
```
and then to build the changes:
```shell
pnpm build
```
Then just refresh your client
2024-04-17 14:29:47 -04:00
## Uninstalling Equicord
2022-10-07 19:44:12 -04:00
Simply run:
```shell
pnpm uninject
```
2024-04-17 14:29:47 -04:00
If you need more help, ask in the support channel in our [Discord Server](https://discord.gg/D9uwnFnqmd).