From 0342fd76dd1b37b28c7c17c23b166000290f81d0 Mon Sep 17 00:00:00 2001 From: masiv_ <79378620+masiv1001@users.noreply.github.com> Date: Thu, 12 Oct 2023 04:04:19 +0000 Subject: [PATCH 1/3] Update README.md Update for installation procedure. Added distribution specific instructions for installing node using NodeSource binaries, leaving source compilation only for those who need it. --- README.md | 38 ++++++++++++++++++++++++++++++++------ 1 file changed, 32 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 742cab6..51df4a9 100644 --- a/README.md +++ b/README.md @@ -25,11 +25,37 @@ Rich Presence (RPC) is the name for how some apps can talk to Discord desktop on ## Usage -### Server (**REQUIRED**) -1. Have latest (>=18) Node installed -2. Clone GitHub repo -3. `npm install` -4. Run server with `node src` +#### Server (**REQUIRED**) + +1. Install dependencies (Node >+18, below are commands for Node 20 installation, replace 20 for 18 if needed) +###### [RedHat Derivatives, Fedora, Nobara, etc (yum)](https://github.com/nodesource/distributions#supported-versions-1) +``` +sudo yum install https://rpm.nodesource.com/pub_20.x/nodistro/repo/nodesource-release-nodistro-1.noarch.rpm -y +sudo yum install nodejs -y --setopt=nodesource-nodejs.module_hotfixes=1 +``` +###### [Debian and derivatives, Ubuntu, Mint, PopOS, etc (apt)](https://github.com/nodesource/distributions#supported-versions) +``` +sudo apt-get update +sudo apt-get install -y ca-certificates curl gnupg +sudo mkdir -p /etc/apt/keyrings +curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg +NODE_MAJOR=20 +echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list +sudo apt-get update +sudo apt-get install nodejs -y +``` + +2. Clone repo and install +``` +git clone https://github.com/OpenAsar/arrpc.git +cd ./arrpc +npm install +``` + +3. Run server +``` +node src +``` ### Web #### No Mods @@ -71,4 +97,4 @@ Then just use apps with Discord RPC like normal and they *should* work! - [X] SET_ACTIVITY - [X] INVITE_BROWSER - [X] GUILD_TEMPLATE_BROWSER -- [X] DEEP_LINK \ No newline at end of file +- [X] DEEP_LINK From e914ac4cfc00a8d67bec455136a3ad2a6e702ffe Mon Sep 17 00:00:00 2001 From: masiv_ <79378620+masiv1001@users.noreply.github.com> Date: Thu, 12 Oct 2023 15:45:04 +0000 Subject: [PATCH 2/3] Update README.md Remove inconsistencies, fix typos, and add git as a dependency. --- README.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 51df4a9..c746750 100644 --- a/README.md +++ b/README.md @@ -27,10 +27,11 @@ Rich Presence (RPC) is the name for how some apps can talk to Discord desktop on #### Server (**REQUIRED**) -1. Install dependencies (Node >+18, below are commands for Node 20 installation, replace 20 for 18 if needed) -###### [RedHat Derivatives, Fedora, Nobara, etc (yum)](https://github.com/nodesource/distributions#supported-versions-1) +1. Install dependencies (Git, Node >=18, below are commands for Node 20 installation, replace 20 for 18 if needed) +###### [RedHat and derivatives, Fedora, Nobara, etc (yum)](https://github.com/nodesource/distributions#supported-versions-1) ``` -sudo yum install https://rpm.nodesource.com/pub_20.x/nodistro/repo/nodesource-release-nodistro-1.noarch.rpm -y +sudo dnf upgrade --refresh +sudo yum install https://rpm.nodesource.com/pub_20.x/nodistro/repo/nodesource-release-nodistro-1.noarch.rpm git -y sudo yum install nodejs -y --setopt=nodesource-nodejs.module_hotfixes=1 ``` ###### [Debian and derivatives, Ubuntu, Mint, PopOS, etc (apt)](https://github.com/nodesource/distributions#supported-versions) @@ -42,17 +43,17 @@ curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg NODE_MAJOR=20 echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list sudo apt-get update -sudo apt-get install nodejs -y +sudo apt-get install nodejs git -y ``` -2. Clone repo and install +2. Clone repository and install ``` git clone https://github.com/OpenAsar/arrpc.git cd ./arrpc npm install ``` -3. Run server +3. Run server ``` node src ``` From 84d6eced3508f2da45de9947278592a3e39da616 Mon Sep 17 00:00:00 2001 From: masiv_ <79378620+masiv1001@users.noreply.github.com> Date: Sun, 15 Oct 2023 02:27:32 +0000 Subject: [PATCH 3/3] Update README.md Small inconsistency (dnf and yum) fix. --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index c746750..e9f9620 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,6 @@ Rich Presence (RPC) is the name for how some apps can talk to Discord desktop on 1. Install dependencies (Git, Node >=18, below are commands for Node 20 installation, replace 20 for 18 if needed) ###### [RedHat and derivatives, Fedora, Nobara, etc (yum)](https://github.com/nodesource/distributions#supported-versions-1) ``` -sudo dnf upgrade --refresh sudo yum install https://rpm.nodesource.com/pub_20.x/nodistro/repo/nodesource-release-nodistro-1.noarch.rpm git -y sudo yum install nodejs -y --setopt=nodesource-nodejs.module_hotfixes=1 ```