-
Notifications
You must be signed in to change notification settings - Fork 734
Conversation
_functionCallSplice = 507; | ||
_functionSplice = 580; | ||
_discordPath = "/opt/DiscordCanary/resources"; | ||
// not sure where the .deb install, and most people are going to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AFAIK *.deb
file installs in /usr/share/discord-canary
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The original required the user to install in /opt
, and not everyone is on Debian or Ubuntu, so I'm inclined to leave that for now. I don't want to look like I'm taking responsibility for this code, I just updated the line numbers for 0.0.3.
Some fixes for script :) cd
# Move dir if exists
oldTime=$(date +"%H-%M-%S.%d-%m-%y")
mv discord "discord.${oldTime}.old"
# And.. Create new!
mkdir discord
cd discord
# Install discord in /opt/
wget "https://discordapp.com/api/download/canary?platform=linux&format=tar.gz" -O discord-canary.tar.gz
tar -xzvf discord-canary.tar.gz
sudo cp -r DiscordCanary /opt/
sudo ln -s /opt/DiscordCanary/DiscordCanary /usr/bin/discord
# Install BetterDiscord
git clone https://github.com/sarnex/BetterDiscordApp.git
mv BetterDiscordApp BetterDiscord
cp BetterDiscord/NodeInstaller/* .
cp BetterDiscord/splice .
npm install asar wrench
sudo ./install.sh
cd To uninstall Discord: sudo rm -f $(which discord)
sudo rm -rf /opt/DiscordCanary/ |
ah thanks for updating my pull request, was too busy to work on it |
Works fine for me! I needed to change the |
Still works with no changes on version 0.4 and 0.5 |
Not works on newest 0.0.6 version :( |
@DaFri-Nochiterov should be fixed now I've also cleaned up the PR a good bit. |
890e9f5
to
03e5f06
Compare
@sarnex, yes, this works. Thanks. |
Again. Not works on 0.0.7 version. Now with Uncaught Exception:
SyntaxError: Unexpected token ;
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:387:25)
at Object.Module._extensions..js (module.js:422:10)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
at Object.<anonymous> (/opt/DiscordCanary/resources/electron.asar/browser/init.js:184:8)
at Module._compile (module.js:413:34)
at Object.Module._extensions..js (module.js:422:10)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12) |
@DaFri-Nochiterov fixed again, hopefully they leave index.js alone in the future. If it happens again, I'll look for a better solution than hardcoding line numbers which is done in the official installer. |
1f82c32
to
18fb5c2
Compare
@sarnex You should definitely look for a better solution, because I'm pretty sure the index.js will change a lot in the near future. |
04ee627
to
79d00fd
Compare
I've rewritten the linux installer to not use hardcoded line numbers. It should not break now unless they remove the two lines I'm searching for, which I don't expect. |
And it works fine on just-released |
Emoticons no longer works in this version |
Yup, it is still needed. #436 should fix it. |
Any chance of all of that getting merged into this PR? I'd rather not go through all of that every time I install BetterDiscord. |
I merged #436 into my PR and rebased.
…On Wed, Jan 11, 2017 at 11:33 AM, simoniz0r ***@***.***> wrote:
Any chance of all of that getting merged into this PR? I'd rather not go
through all of that every time I install BetterDiscord.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#288 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGvNDI9trwIK0AozKMbTuRu-9RSjJVp-ks5rRQRggaJpZM4INLQo>
.
|
Thank you so much! |
Still works with canary 0.0.14 👍 |
I guess we should change the path in diff --git a/js/main.js b/js/main.js
index 4ee8bea..3f1a5d9 100644
--- a/js/main.js
+++ b/js/main.js
@@ -13,7 +13,7 @@
let __fs = window.require("fs");
let __process = window.require("process");
let __platform = __process.platform;
- let __dataPath = (__platform === 'win32' ? __process.env.APPDATA : __platform === 'darwin' ? __process.env.HOME + '/Library/Preferences' : '/var/local') + '/BetterDiscord/';
+ let __dataPath = (__platform === 'win32' ? __process.env.APPDATA : __platform === 'darwin' ? __process.env.HOME + '/Library/Preferences' : process.env.HOME + '/.config') + '/BetterDiscord/';
let __data = {}; |
Could you also please merge #435 into this PR? I had to create a script that deletes |
I merged it.
…On Thu, Jan 26, 2017 at 7:13 AM, simoniz0r ***@***.***> wrote:
Could you also please merge #435
<#435> into this PR? I had
to create a script that deletes /home/user/.config/bdstorage.json before
launching BetterDiscord otherwise it complains that /home/user/.config/
BetterDiscord//bdStorage.json doesn't exist, and gives me a javascript
error that locks up the whole app.
[image: Javascript error]
<https://camo.githubusercontent.com/e3d814ae6a97fc34c7d92b78e47782ba95ec6d5b/687474703a2f2f692e696d6775722e636f6d2f346a68757a32452e706e67>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#288 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGvNDM6Y-qkJd1cWNiSM7eWiyQhmX5XFks5rWI3QgaJpZM4INLQo>
.
|
And another update. Still works with 0.0.15 👍 |
@magiruuvelvet I hope you’re not going to keep this up every day, considering the new update schedule. 😜 |
Change linux path to use the $HOME/.config folder
Canary it set to build on each new push to the master branch, just as an FYI. |
I don't know if you've seen this, but Ckath made a script that can install BetterDiscord to any directory... might be of some use to you. |
This is basically just doing what the BetterDiscord installer does in a
script, there's no way for it to be merged but maybe it's easier to use. I
recommend following the instructions here.
…On Sat, Feb 4, 2017 at 8:52 AM, simoniz0r ***@***.***> wrote:
I don't know if you've seen this, but Ckath made a script that can install
BetterDiscord to any directory... might be of some use to you.
https://github.com/Ckath/Discord-stuff/blob/master/scripts/tape.sh
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#288 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGvNDNRzjwu6NDR1PvfPWzIPI4vPEXNdks5rZIKDgaJpZM4INLQo>
.
|
I would think the fact that it allows any directory to be used is enough, but shrug |
It only has to be /opt for the install, you can move Discord after.
…On Sat, Feb 4, 2017 at 1:56 PM, simoniz0r ***@***.***> wrote:
I would say the fact that it allows any directory to be used is enough,
but ¯_(ツ)_/¯
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#288 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGvNDOwvjBv7-jHQKdglX6FAjwvhhK1gks5rZMnqgaJpZM4INLQo>
.
|
Sure, but that's not ideal. That is not the default install location for the .deb package. Also, with PTB and Stable being released on Linux, |
Maybe it's time to merge this o-o |
Woo! |
we did it boys, i dont mind maintaining the linux portion but please use
this PR for that
…On Fri, Feb 10, 2017 at 9:07 AM, Kody ***@***.***> wrote:
Woo!
You should keep an eye on the fact that we're not using /var/local
anymore, but ~/.config.
This includes (at least) in v2/lib/core.js: installPath and dataPath, and
injs/main.js: for __dataPath
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#288 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGvNDNKtBTEQDtf4QGw-sDobvoFTkmb-ks5rbG8qgaJpZM4INLQo>
.
|
Code heavily based on @Francesco149's original PR, with line numbers updated.
Signed-off-by: Nick Sarnie [email protected]
His original instructions are below, with slight modification:
Make sure you have at least node v5