diff options
author | Rie Takahashi <megumin.bakaretsurie@gmail.com> | 2022-10-05 21:58:17 +0100 |
---|---|---|
committer | Rie Takahashi <megumin.bakaretsurie@gmail.com> | 2022-10-05 21:58:17 +0100 |
commit | a9e67aa3400075ec4fb2fe6d59d006bae8981f0c (patch) | |
tree | 78a1e15e54d86261f746f69fff569c5e3778bc47 | |
parent | 25fcc528eaf154bef3aa6eff3bb842f17fe28163 (diff) | |
download | Vencord-a9e67aa3400075ec4fb2fe6d59d006bae8981f0c.tar.gz Vencord-a9e67aa3400075ec4fb2fe6d59d006bae8981f0c.tar.bz2 Vencord-a9e67aa3400075ec4fb2fe6d59d006bae8981f0c.zip |
pnpm inject/uninject instead of patch/unpatch
-rw-r--r-- | README.md | 4 | ||||
-rw-r--r-- | package.json | 4 | ||||
-rw-r--r-- | scripts/patcher/install.js | 4 | ||||
-rw-r--r-- | scripts/patcher/uninstall.js | 2 |
4 files changed, 7 insertions, 7 deletions
@@ -36,7 +36,7 @@ Don't close your terminal just yet! Now to patch vencord into your Discord client, run the following command and follow the interactive prompt. ```sh -pnpm run patch +pnpm inject ``` Now fully close Discord. Start and confirm Vencord successfully installed by checking if you have a new Vencord section in Settings. @@ -45,7 +45,7 @@ If you ever need to get back to the Vencord folder, just open a new terminal and All plugins are disabled by default, so your first step should be opening Settings and enabling the plugins you want. -You can unpatch Vencord using `pnpm run unpatch` +You can unpatch Vencord using `pnpm uninject` ## Installing on Browser diff --git a/package.json b/package.json index 515abae..320b0c2 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "buildWeb": "node buildWeb.mjs", "build": "node build.mjs", "watch": "node build.mjs --watch", - "patch": "node scripts/patcher/install.js", - "unpatch": "node scripts/patcher/uninstall.js" + "inject": "node scripts/patcher/install.js", + "uninject": "node scripts/patcher/uninstall.js" } } diff --git a/scripts/patcher/install.js b/scripts/patcher/install.js index 4ef55bc..f423ce9 100644 --- a/scripts/patcher/install.js +++ b/scripts/patcher/install.js @@ -56,7 +56,7 @@ async function install(installations) { console.log("Failed to give write perms to Discord Flatpak."); console.log( "Try running this script as an administrator:", - "sudo pnpm run patch" + "sudo pnpm inject" ); process.exit(1); } @@ -71,7 +71,7 @@ async function install(installations) { console.error("No write access to", selected.location); console.error( "Try running this script as an administrator:", - "sudo pnpm run patch" + "sudo pnpm inject" ); process.exit(1); } diff --git a/scripts/patcher/uninstall.js b/scripts/patcher/uninstall.js index 65b6ac0..015e878 100644 --- a/scripts/patcher/uninstall.js +++ b/scripts/patcher/uninstall.js @@ -42,7 +42,7 @@ async function uninstall(installations) { console.error("No write access to", selected.location); console.error( "Try running this script as an administrator:", - "sudo pnpm run unpatch" + "sudo pnpm uninject" ); process.exit(1); } |