Add install instructions!! :3
This commit is contained in:
parent
483bc13a31
commit
704516a668
@ -7,3 +7,10 @@ My own Discord Desktop mod :)
|
|||||||
- Proper context isolation -> Works in newer Electron versions
|
- Proper context isolation -> Works in newer Electron versions
|
||||||
- Inline patches: Patch Discord's code with regex replacements! See [the experiments plugin](src/plugins/experiments.ts) for an example. While being more complex, this is more powerful than monkey patching since you can patch only small parts of functions instead of fully replacing them, access non exported/local variables and even replace constants (like in the aforementioned experiments patch!)
|
- Inline patches: Patch Discord's code with regex replacements! See [the experiments plugin](src/plugins/experiments.ts) for an example. While being more complex, this is more powerful than monkey patching since you can patch only small parts of functions instead of fully replacing them, access non exported/local variables and even replace constants (like in the aforementioned experiments patch!)
|
||||||
- Custom Css: Manually edit `%appdata%/Vencord/settings/quickCss.css` / `~/.config/Vencord/settings/quickCss.css` with your favourite editor and the client will automatically apply your changes
|
- Custom Css: Manually edit `%appdata%/Vencord/settings/quickCss.css` / `~/.config/Vencord/settings/quickCss.css` with your favourite editor and the client will automatically apply your changes
|
||||||
|
|
||||||
|
## Installing
|
||||||
|
|
||||||
|
```sh
|
||||||
|
pnpm install
|
||||||
|
./install.sh
|
||||||
|
```
|
41
install.sh
Executable file
41
install.sh
Executable file
@ -0,0 +1,41 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
#
|
||||||
|
# Super simple installer. You should probably run this as root.
|
||||||
|
# If you are getting permission issues, this is probably why.
|
||||||
|
#
|
||||||
|
# If this doesn't work for you, or you're not on Linux, just
|
||||||
|
# - locate your Discord folder
|
||||||
|
# - inside the resources folder, create a new folder "app"
|
||||||
|
# - inside app create the files index.js and package.json.
|
||||||
|
# See the two tee commands at the end of the file for their contents
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
patcher="$PWD/patcher.js"
|
||||||
|
|
||||||
|
dicksword="$(dirname "$(readlink "$(which discord)")")"
|
||||||
|
resources="$dicksword/resources"
|
||||||
|
|
||||||
|
if [ ! -f "$resources/app.asar" ]; then
|
||||||
|
echo "Couldn't find Discord folder rip"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
app="$resources/app"
|
||||||
|
if [ -e "$app" ]; then
|
||||||
|
echo "app folder exists. Looks like your Discord is already modified."
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
mkdir "$app"
|
||||||
|
tee > "$app/index.js" << EOF
|
||||||
|
require("$patcher");
|
||||||
|
require("../app.asar");
|
||||||
|
EOF
|
||||||
|
|
||||||
|
tee > "$app/package.json" << EOF
|
||||||
|
{
|
||||||
|
"main": "index.js",
|
||||||
|
"name": "discord"
|
||||||
|
}
|
||||||
|
EOF
|
9
uninstall.sh
Executable file
9
uninstall.sh
Executable file
@ -0,0 +1,9 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
# Super simple uninstaller.
|
||||||
|
# If this doesn't work for you, or you're not on Linux, just
|
||||||
|
# manually delete the app folder in your Discord folder (inside resources)
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
dicksword="$(dirname "$(readlink "$(which discord)")")"
|
||||||
|
rm -r --interactive=never "${dicksword:?Cant find discord}/resources/app"
|
Loading…
Reference in New Issue
Block a user