forked from distok/cutthecord
Port patches to 93205
This commit is contained in:
parent
a8124a4796
commit
65d955f011
34 changed files with 59684 additions and 2 deletions
26
resources/patches/slashcommands/93205-pre.sh
Normal file
26
resources/patches/slashcommands/93205-pre.sh
Normal file
|
@ -0,0 +1,26 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [ -z "$DISTOK_FOLDER" ]
|
||||
then
|
||||
cd /opt/ctc/gitrepo/resources/patches/slashcommands/code
|
||||
else
|
||||
cd "$DISTOK_FOLDER/resources/patches/slashcommands/code"
|
||||
fi
|
||||
|
||||
if [ -z "$DISTOK_APKTOOL_COMMAND" ]
|
||||
then
|
||||
DISTOK_APKTOOL_COMMAND="java -jar /opt/ctc/tools/apktool.jar"
|
||||
fi
|
||||
|
||||
if [ -z "$DISTOK_DX_COMMAND" ]
|
||||
then
|
||||
DISTOK_DX_COMMAND="/lib/android-sdk/build-tools/debian/dx"
|
||||
fi
|
||||
|
||||
chmod +x gradlew
|
||||
rm -rf build
|
||||
./gradlew build
|
||||
cd build/libs
|
||||
$DISTOK_DX_COMMAND --dex --output ctccommands.apk ctccommands-1.0-SNAPSHOT.jar
|
||||
$DISTOK_APKTOOL_COMMAND d ctccommands.apk
|
||||
cp -r ctccommands/smali/* ${DISTOK_EXTRACTED_DISCORD_PATH}/smali/
|
13
resources/patches/slashcommands/93205.patch
Normal file
13
resources/patches/slashcommands/93205.patch
Normal file
|
@ -0,0 +1,13 @@
|
|||
diff -crB com.discord-base/smali/com/discord/stores/BuiltInCommands.smali com.discord/smali/com/discord/stores/BuiltInCommands.smali
|
||||
*** com.discord-base/smali/com/discord/stores/BuiltInCommands.smali 2021-08-15 15:01:18.951758400 +0100
|
||||
--- com.discord/smali/com/discord/stores/BuiltInCommands.smali 2021-08-15 15:02:36.852775500 +0100
|
||||
***************
|
||||
*** 305,310 ****
|
||||
--- 305,312 ----
|
||||
|
||||
iput-object v12, p0, Lcom/discord/stores/BuiltInCommands;->builtInApplication:Lcom/discord/models/commands/Application;
|
||||
|
||||
+ invoke-static {p0}, Lcom/cutthecord/commands/CTCCommands;->CreateCTCCommands(Lcom/discord/stores/BuiltInCommands;)V
|
||||
+
|
||||
return-void
|
||||
.end method
|
1
resources/patches/slashcommands/README.md
Normal file
1
resources/patches/slashcommands/README.md
Normal file
|
@ -0,0 +1 @@
|
|||
## DisTok CutTheCord: Slash Commands
|
Loading…
Add table
Add a link
Reference in a new issue