This is a fork of diced/dvm with a couple of fixes. Keeping any changes I make seperate for now, but might open a PR with them at some point in the future.
See the original repo for AUR packages and binaries
- Rust (rustup or your distro might provide a
rustup
package, thenrustup install stable
)
git clone https://github.com/dev-sda1/dvm
cd dvm
cargo build --release
If you don't want to bother compiling from source then you may use the precompiled binary that diced provides on their releases page
Note: The precompiled binary is not a statically compiled binary, so if it happens to error, run ldd dvm-x86_64-unknown-linux-gnu
and it will show the libraries it needs, then install them.
wget https://github.com/diced/dvm/releases/download/<version>/dvm-x86_64-unknown-linux-gnu
chmod +x dvm
./dvm # you can move it into /usr/bin or move it into somewhere then add it to $PATH
discord version manager for linux
Usage: dvm <COMMAND>
Commands:
install Install the latest <type> of discord
install-open-asar Install openasar for <type> of discord
update Update to the latest <type> of discord
remove Remove the installed <type> of discord
list Show all installed versions
completions Get shell completions
run Run discord with specific options
help Print this message or the help of the given subcommand(s)
Options:
-h, --help Print help
-V, --version Print version
To install a specific version just type in
dvm install stable
This will do the following:
- Download the latest stable tarball from discord
- Extract it into $HOME/.dvm
- Create a bin file that executes the executable
- Copy desktop and icons to their folders
If you forget to add the flag -o
when installing discord, you can install open asar by doing
dvm install-open-asar stable
...or do it when installing discord
dvm install stable -o
You can install multiple versions at once, they will be executed one after the other.
dvm install stable ptb canary development
Removing installations is as easy as installing them
dvm remove stable
This will do the following:
- Remove the $HOME/.dvm/
- Remove desktop entries and icons
- Remove the bin file
Updating installations is as easy as installing them
dvm update stable
This will do the following:
- Check if discord actually needs to be updated
- Download the latest tarball
- Remove the $HOME/.dvm/
- Do everything the installation does.
This will show all installations that are currently installed, the --verbose, -v
flag will show the path it's installed to, and the --check, -c
flag will check if your installations are up-to-date (red = outdated, green = up to date)
dvm show
dvm show -v
dvm show -c
dvm show -vc
# no flag
canary:0.0.133
development:0.0.198
stable:0.0.17
# -v
canary:0.0.133 -> /home/diced/.dvm/DiscordCanary
development:0.0.198 -> /home/diced/.dvm/DiscordDevelopment
stable:0.0.17 -> /home/diced/.dvm/Discord
You can run discord via command line with extra flags
dvm run canary <extra args>
# for example
dvm run canary --idk-some-chromium-flag-or-something
Get shell completions for your shell of choice
dvm completions zsh
I don't really focus on this anymore, but I'll try my best lol. If you want to reach out to help feel free to send a message request or friend request on discord (@dicedtomato
), or contact through github issues, etc.