Merge pull request #18 from Xenorio/master

Add Discord Development Branch
This commit is contained in:
Guillaume Raffin 2022-01-16 13:07:45 +01:00 committed by GitHub
commit fffa8e0014
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 3 deletions

View file

@ -10,11 +10,12 @@ Unofficial RPM package for Discord.
- Discord Stable: `./create-package.sh stable`
- Discord PTB:     `./create-package.sh ptb`
- Discord Canary: `./create-package.sh canary`
- Discord Development: `./create-package.sh development`
## Features
- Downloads the latest version of Discord from the official website
- Creates a ready-to-use RPM package
- Discord Stable, PTB, and Canary can be installed at the same time
- Discord Stable, PTB, Canary, and Development can be installed at the same time
- Adds Discord to the applications list with a nice HD icon
- Supports Fedora (31) and OpenSUSE (Leap 15.1+).

View file

@ -24,9 +24,9 @@ else
fi
# Checks that the version (stable/ptb/canary) is given as a parameter.
if [[ $# -ne 1 || $1 != "stable" && $1 != "ptb" && $1 != "canary" ]]; then
if [[ $# -ne 1 || $1 != "stable" && $1 != "ptb" && $1 != "canary" && $1 != "development" ]]; then
disp "${red}Wrong or missing parameters!$reset"
echo 'Usage: create-package.sh [ stable | ptb | canary ]'
echo 'Usage: create-package.sh [ stable | ptb | canary | development ]'
exit 1
fi
@ -45,6 +45,13 @@ elif [[ $1 == "ptb" ]]; then
download_url='https://discordapp.com/api/download/ptb'
cut_part=3
desktop_file="$work_dir/discord-ptb.desktop"
elif [[ $1 == "development" ]]; then
app_name='Discord Development'
exe_name='DiscordDevelopment'
pkg_name='discord-development'
download_url='https://discordapp.com/api/download/development'
cut_part=3
desktop_file="$work_dir/discord-development.desktop"
else
app_name='Discord'
exe_name='Discord'