Giter VIP home page Giter VIP logo

installer's Introduction

BetterDiscord Installer

Overview | Development | Contributors

Preview
A simple standalone program which automates the installation, removal and maintenance of BetterDiscord.

Chat Downloads License


Overview

This repository contains the source code for the BetterDiscord installer. This installer is written with electron-webpack and Svelte 3.

Downloads

These will link you to the latest builds found in the releases tab of this repository.

Windows (7+) macOS (10.10+) Linux

Codebase

.
├──assets                  // Contains static assets (such as images) used by the installer.
|  └──images               // Images (logos, backgrounds, etc...) used by the installer.
├──scripts                 // Scripts needed for development and contributing.
└──src                     // The installer's source code.
    ├──main                // Electron "main" process. Creates and configures the BrowserWindow.
    └──renderer            // Electron "renderer" process. Contains most components and scripts.
        ├──actions         // Scripts performed by the installer such as installing, repairing and uninstalling.
        |  └──utils        // Common utilities used by installer actions (such as killing discord).
        ├──common          // Common UI components such as buttons, checkboxes, radios, etc...
        ├──pages           // Component files for each page in the installer's setup process.
        ├──stores          // Svelte store used for storing global data.
        |  └──types        // Used for defining custom svelte stores.
        └──transitions     // Contains custom Svelte transitions and animations.

Development

This is a tutorial designed for people looking to contribute to, or work directly with the installer's source code. If you are just looking to download and install BetterDiscord, visit the releases page of this repository.

Prerequisites

Building

1: Clone the repository.

git clone https://github.com/BetterDiscord/installer && cd installer

This will create a local copy of this repository and navigate you to the root folder of the repository.

2: Install Dependencies

Run this command at the root folder to install dependencies:

yarn install

3: Run Build Script

To run the installer in development mode, simply run the following command:

yarn dev

Additional Scripts

Linting

This project uses ESLint. Run this command to lint your changes:

yarn lint

Compiling & Distribution

yarn dist

Contributors

For information on contributing to this project, please see CONTRIBUTING.md.

installer's People

Contributors

dav1312 avatar inve1951 avatar mjkzy avatar qbdesu avatar rauenzi avatar schitcrafter avatar tropix126 avatar xanax-c-137 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

installer's Issues

Flatpak/snap compatibility

Is your feature request related to a problem? Please describe.
The current installer doesn't work in Flatpak.

Describe the solution you'd like
Add flatpak support. You might want to look into the code of betterdiscordctl to see how that would be done.

Describe alternatives you've considered
I've tried changing the discord path to ~/.var/app/com.discordapp.Discord/config/discord, but Discord just spit out a "fatal javascript error".

Not launching the EXE

Not much to say. i attempt to open it and it doesn't execute.

Desktop.2021.04.03.-.04.15.04.04.mp4

still says discontinued version after downloading new version

After downloading the new launcher and installing it, discord still says its a discontinued version.
Tried uninstalling discord completely and deleting all folders as well

Am on Windows 10 newest updates etc. no other modifications to discord

Unable to fullscreen youtube videos

Describe the bug
I am unable to fullscreen youtube videos. I click the fullscreen button and nothing happens. I can fullscreen normal videos however the taskbar is still showing.

To Reproduce
Steps to reproduce the behavior:

  1. Send a youtube video
  2. Click play
  3. Click fullscreen button

Expected behavior
Should fullscreen

System Information:

  • OS: Windows 10 Pro 1909
  • Discord Version: Stable

the download links mess

Please fix the download link and the version number confusion.
First I got a update available popup
As you see, it says a update available 1.0.0
Capture
Suggestion: I suggest changing “1.0.0” to “1.0.0-beta”.
I clicked “Update Now”, but it couldn’t as you see.
2

I clicked “Download Installer” Link which is https://github.com/rauenzi/BetterDiscordApp/releases/latest which redirects to https://github.com/rauenzi/BetterDiscordApp/releases/tag/v1.0.0 as you see there is a note of new Installer Releases and download link for v1.0.0 (which is actually v1.0.4 I mean BandagedBD_Windows.exe 112KB)

Suggestion: change “Download Installer” link to https://github.com/BetterDiscord/Installer/releases/
233

Suggestion change v1.0.0 to v1.0.4, or just delete it.
I downloaded “BandagedBD_Windows.exe 112KB” and opened, as you see
123111111

I clicked yes it brings to https://github.com/rauenzi/BBDInstaller/releases/download/v1.0.5/BandagedBD.exe i downloaded it and installed, yet I still get a update available popup like the first image, then I realized that I have to download the beta installer from(https://github.com/BetterDiscord/Installer/releases/)
The result:
3

Suggestion change “v1.0.0” to “v1.0.0-beta”.

Conclusion: There are 3 repo links
https://github.com/rauenzi/BetterDiscordApp/releases (v1.0.0 download(it's actually 1.0.4) + v.1.0.0-beta link note)
https://github.com/rauenzi/BBDInstaller/releases (v1.0.5 download)
https://github.com/BetterDiscord/Installer/releases (v1.0.0-beta download)
Suggestion: archive the first repo link. For the second repo link add a note that there is a new beta installer and update the links or whatever.

and since there are three repo, i don't if i should open a issue here or there or there.

Crashes when using discord_arch_electron

Describe the bug
At first, when installing BetterDiscord I get this error:

TypeError: process.electronBinding is not a function

Which can be fixed by changing both of its invocations to:

(process.electronBinding ? process.electronBinding("command_line") : process._linkedBinding("electron_common_command_line"))

After that, BD simply crashes and disables itself but I can't find any crash logs.

To Reproduce
Steps to reproduce the behavior:

  1. Install discord_arch_electron
  2. Install BetterDiscord on it
  3. Fix the process.electronBinding issue
  4. BD crashes when launching Discord

Expected behavior
Honestly, I didn't actually think it would work so this was expected…

System Information:

  • OS: Arch Linux
  • Discord Version: 0.0.14
  • Electron Version: 12.0.2

Additional Context:

  • The location of the modules is the same as in regular Discord.
  • The resources are moved from ./resources to /usr/lib/discord.
  • app.asar is unpacked into /usr/lib/discord/app.asar.unpacked.
  • The system electron is used to run Discord through app.asar.
  • process.resourcesPath points to /usr/lib/electron/resources.

New installer takes a long time to load

After I downloaded this new installer, every time that I start Discord the BD logo will consistently flash and say it's loading.

It takes mins for it to load all my themes and plugins (which aren't even a lot).

I actually even did a completely fresh install with no themes and plugins and it still took a long time to load.

I also have automatic loading on and it still takes a long time.

Someone said to try disabling Emotes. I did that and it still takes a long time.

And for clarification, I'm not saying Discord is slow; Discord starts fine and loads fine. It's BD that takes a while to load. And specifically this new version of BD, because I have since reverted to an older version and I don't have this problem with it.

System Information:

  • OS: Windows 10 Home 20H2
  • Discord Version: Stable

Beta Installer doesnt load

Basically what happens, is I try installing BD Beta release installer, and the downloader gets stuck on "Attempting to kill Discord" | "Killing Discord"

image

Bandaged Better Discord's Custom CSS doesn't copy over.

Describe the bug
Custom CSS from old Bandaged Discord doesn't move over.

To Reproduce
Steps to reproduce the behavior:

  1. Install Bandaged Discord
  2. Open custom CSS in settings and make some changes.
  3. Update to Better discord
  4. Custom CSS doesn't copy over.

Expected behavior
CSS is converted to newer version.

System Information:

  • OS: Windows 10 Pro
  • Discord Version: Stable

Update don't work

Describe the bug
The update don't work i clicked and discord shutdown and nothing is updatated

To Reproduce
Steps to reproduce the behavior:
2. Click on Update Now

Expected behavior
The update don't work i clicked and discord shutdown (no restart) and nothing is updatated

Screenshots
2021-04-02_19h31_54

System Information:

  • OS: Windows
  • Discord Version: Stable

Additional context
None

Check for updates feature of BetterDiscord beta error

image

If I hit Update now, a fail message would appear, and there would be a button that takes you to the page to download the installer. The problem is that it links to the Stable installer, not the Beta installer. I'm currently using Beta BetterDiscord.

My Theme's aren't working

Describe the bug*
I can't activate my theme's I go to the setting and activate my theme it says its activated but nothing changes.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'settings'
  2. Click on 'Themes'
  3. Activate the 'Theme'
  4. See error, theme just doesn't activate

Expected behavior
When I activate my themes I usually expect them to work,.

Screenshots
If applicable, add screenshots to help explain your problem.
image
image

System Information:

  • OS: [Windows]
  • Discord Version: [Newest]

I understand this is not related to the installer and that's not my issue I'm simply asking for a fix and if you cannot offer that I'll be going back to the Original BD until you can fix it and after a little more looking into this I noticed Plugins don't work either.

[Bug] Installer does not transfer existing BetterDiscord folder to new location on Mac

Describe the bug
The new installer deletes all my plugins and themes.

To Reproduce
Steps to reproduce the behavior:

  1. Repair BetterDiscord using the new installer
  2. Go to themes/plugins
  3. See error

Expected behavior
My themes and plugins should stay.

Screenshots
If applicable, add screenshots to help explain your problem.

System Information:

  • OS: MacOS 11.2
  • Discord Version: Stable

Cant find Themes.

It wont show where to put themes or anything...
I tried repairing it but still does not work.
Lil bit of help.

Ahmed aldermaki

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Gift and GIF button removal doesn't work

Describe the bug
Gift and GIF picker buttons still appear in message box when options to hide them are enabled

To Reproduce
Steps to reproduce the behavior:

  1. Enable "Hide Gift Button" or "Hide GIF Button" under the BetterDiscord settings
  2. Check message box

Expected behavior
Gift and GIF picker buttons disappear from message box

Screenshots
Settings
Buttons still appear

System Information:

  • OS: Windows 10
  • Discord Version: Stable 81297

carshing

every time i install betterdiscord it closes by its self.

Installer binary uses an absurd amount of storage space

Using the binaries from the release page, it comes out to be ~65MB of disk space for the (arguably basic) installer.
I'm thinking that you may have accidentally disabled some compiler optimizations or something when building the binary.
Something like this realistically should take way far less than 65 megabytes.

Better discord not launching

After the update, better discord just stopped working altogether, I tried restarting my computer, re installing better discord, repairing better discord, and uninstalling and re installing but nothing has changed.

Discord is back to its old gray self after the update :(

Better discord is just strait up gone for me right now

Fixed it... kinda

No plugin / theme options

Describe the bug
When BetterDiscord has installed, the plugins and themes tabs under the BetterDiscord category in settings don't appear.

To Reproduce
Steps to reproduce the behavior:

  1. Run the windows installer on a PC that has installed BandagedBD.
  2. Open the settings page in Discord once it has been installed.
  3. See error.

Expected behavior
The plugins and themes tabs should appear under BetterDiscord like in the screenshot below.

Screenshots
First - what it was like pre-update (BandagedBD)
Screenshot 2021-04-03 181122
Second - what it looks like post-update (Updated BetterDiscord)
Screenshot 2021-04-03 181321

System Information:

  • OS: Windows 10 Home
  • Discord Version: Stable 0.0.309

Additional context
Add any other context about the problem here.

.exe dose not launch

Describe the bug
When I try to launchBetterDiscord.exe does not launch

2021-04-03.12-52-32.mp4

Silent install switch

Is your feature request related to a problem? Please describe.
I want to create a Windows setup script that installs all my favorite programs and I want as much as it as humanly possible to be silent and installed in the background.

Describe the solution you'd like
A switch you can use when running the installer exe, in the same format as most .msi files (/S, /SILENT, /VERYSILENT, /quiet, etc) that will automatically accept the license agreement, and start the installation immediately. (Preferably without even showing the GUI using /VERYSILENT). Since you can install the program to multiple installations of discord and you cant be certain of which one the user wants to install to, you can also have a secondary switch like /stable, /canary, /ptb.

Example: BetterDiscord-Installer.exe /S /stable

Describe alternatives you've considered
I could use AutoHotKey or some kind of memory alteration but that's really difficult to do consistently, and will probably break after any updates to the software.

Additional context
Please forgive me if something like this is already possible that I missed. I tried all the aforementioned switches as well as looking at the index.js of the code and I see no references to process.argv within the entire project

discord keep crashing on new version

Describe the bug
As soon as I open discord after installing new release discord crash after 15-20 second and it doesn't matter if I do anything or no
image_2021-04-03_175645

(on the discounted version the bug doesn't happen)

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'https://drive.google.com/drive/folders/1dz6tNQzDs5RJnWgxIHXTBjqIu9eB_Wlj?usp=sharing' and download my plugins and theme
  2. Use latest release of new launcher
  3. create your own client id for autostartrichpresence plugin (deleted mine) and put it in the config file of plugin
  4. open discord and watch it crash after 15-20seconds

Expected behavior
I expected the new release to not crash my discord because of my plugins or theme and I am willing to use discounted version if the issue isn't fixed

System Information:

  • OS: Windows 20H2 os build: 19042.867
  • Discord Version: Stable 81329 (b80bbff)

Additional context
the discounted version where the issue doesn't persist: 'https://rauenzi.github.io/BetterDiscordApp/' windows exe if have been changed uploaded it here: https://drive.google.com/file/d/1reX9g0fKMjzU1tlb6_kBzUjREWxGSJum/view?usp=sharing

Some themes from previous version do not work

Describe the bug
when applying themes from the previous version, some of them dont change anything allthough they did in the other version

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'settings'
  2. Click on 'themes'
  3. Scroll down to any theme from the previous version
  4. See error

Expected behavior
nothing changes and stays the same from when you applied the theme

Screenshots
image

System Information:

  • OS: Windows 10 Pro
  • Discord Version: Stable (newest release) (developer mode ON)

Additional context
the theme code:
image

Unable to use plugins and themes on Discord Canary / PTB

Describe the bug
Unsure if this is just a bug or not implemented or just isn't possible so thats why i labeled it as a bug.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'Discord Canary / PTB'
  2. Click on 'User Settings'
  3. Scroll down to 'BetterDiscord'
  4. Not seeing Emotes, Custom CSS, Plugins, Themes

Expected behavior
Seeing Emotes, Custom CSS, Plugins, Themes. Being able to disable/enable them the say exact way I'm able too on Discord.

Screenshots
https://gyazo.com/5d280ca4e1b7b2bf65eef6506d899fae

System Information:

  • OS: Windows
  • Discord Version: Canary 81364 (fece00e)

Additional context
None.

Themes Won't Enable

Describe the bug
When I try to turn my theme on, it doesn't turn on.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'User Settings'
  2. Click on 'Themes'
  3. Scroll down to 'Theme'
  4. Turn the theme on
  5. See error

Expected behavior
The theme will not turn on

Screenshots
bug

System Information:

  • OS: Windows
  • Discord Version: Stable

Additional context
No additional context.

Coloured text not working

Describe the bug
Coloured text is not actually doing anything when I turn it on. I have restarted discord, reinstalled bd, and tried turning off all plugins, nothing works

To Reproduce
I turn on coloured text, nothing happens.

Expected behavior
The discord message text to be the same colour as the role of the person sending the message.

System Information:

  • OS: Windows
  • Discord Version: Stable

The installer will not allow the selection of the discord folder on PCLinuxOS with KDE

Describe the bug
Discord is greyed out and thus cannot be selected by the installer. So the installer will never be able to find Discord.

To Reproduce
Steps to reproduce the behavior:

  1. Have PCLinuxOS with KDE on your computer.
  2. Download the appimage from the releases.
  3. Run the installer appimage.
  4. Click "Install BetterDiscord"
  5. Click "Next"
  6. Click "Discord"
  7. Click "Browse"
  8. Go to the installation folder in "usr/share/discord/"

Expected behavior
I expected to be able to select the discord executable file so that I can proceed with the installation.

Screenshots
image

System Information:

  • OS: PCLinuxOS
  • Discord Version: [default] [BUILD INFO] Release Channel: stable, Build Number: 81329, Version Hash: b80bbff00049d94903b5a20f5ad1d77df37266f1**

The installer doesn't execute

After downloading the new installer for windows I tried to run it but it doesn't work my cursor changes to the loading mode ig? but nothing work I tried changing the folder also tried disabling the anti-virus didn't work no luck with the compatibility mode either

Infinite update

My discord keeps updating endlessly and when I go to the bd launcher and click repair, nothing changes

New Better Discord crashes

I get pop-up with info that bd crashed discord and running vanilla. Old better discord still working without an issue.

BD Crashing After Update

I updated better discord, and it keeps crashing. Also, I can't even go to the settings on my plugins.
db0fc71443dfbadd12ecaad034e1ed43

didn't run

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

System Information:

  • OS: [e.g. Windows]
  • Discord Version: [eg. Stable]

Additional context
Add any other context about the problem here.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.