diff --git a/README.md b/README.md index f3ec06e..056f99e 100644 --- a/README.md +++ b/README.md @@ -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+). diff --git a/create-package.sh b/create-package.sh index 477a19d..f0b931b 100755 --- a/create-package.sh +++ b/create-package.sh @@ -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'