diff --git a/Client/build.gradle b/Client/build.gradle index 2262f13a3..93a61c6b5 100644 --- a/Client/build.gradle +++ b/Client/build.gradle @@ -9,11 +9,10 @@ repositories { } dependencies { - implementation 'com.github.Vatuu:discord-rpc:1.6.2' implementation 'com.googlecode.json-simple:json-simple:1.1.1' implementation("com.github.ajalt.mordant:mordant:2.0.0-alpha2") implementation "org.jetbrains:markdown:0.2.4" - implementation files('libs/clientlibs.jar') + implementation files('libs/clientlibs.jar', 'libs/discord-rpc.jar') } jar { diff --git a/Client/libs/discord-rpc.jar b/Client/libs/discord-rpc.jar new file mode 100644 index 000000000..cee7079fb Binary files /dev/null and b/Client/libs/discord-rpc.jar differ diff --git a/Client/src/main/kotlin/org/rs09/Discord.kt b/Client/src/main/kotlin/org/rs09/Discord.kt index c9dace69f..402a47c5c 100644 --- a/Client/src/main/kotlin/org/rs09/Discord.kt +++ b/Client/src/main/kotlin/org/rs09/Discord.kt @@ -18,7 +18,7 @@ object Discord { //Removed support for Linux due to the outlined issue on line 37. TODO: Revisit this when the RPC library updates. There's a PR there that *should* fix it. fun checkInitializable() : Boolean{ val OS = System.getProperty("os.name") - if(OS.toLowerCase().startsWith("windows")){ + if(OS.toLowerCase().startsWith("windows") || OS.toLowerCase().contains("nux")){ val arch = System.getProperty("os.arch") return arch != "aarch64" && !initialized }