Merge pull request #18 from Xenorio/master
Add Discord Development Branch
This commit is contained in:
		
						commit
						fffa8e0014
					
				
					 2 changed files with 11 additions and 3 deletions
				
			
		|  | @ -10,11 +10,12 @@ Unofficial RPM package for Discord. | ||||||
|     - Discord Stable: `./create-package.sh stable` |     - Discord Stable: `./create-package.sh stable` | ||||||
|     - Discord PTB:     `./create-package.sh ptb` |     - Discord PTB:     `./create-package.sh ptb` | ||||||
|     - Discord Canary: `./create-package.sh canary` |     - Discord Canary: `./create-package.sh canary` | ||||||
|  |     - Discord Development: `./create-package.sh development` | ||||||
| 
 | 
 | ||||||
| ## Features | ## Features | ||||||
| - Downloads the latest version of Discord from the official website | - Downloads the latest version of Discord from the official website | ||||||
| - Creates a ready-to-use RPM package | - 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 | - Adds Discord to the applications list with a nice HD icon | ||||||
| - Supports Fedora (31) and OpenSUSE (Leap 15.1+). | - Supports Fedora (31) and OpenSUSE (Leap 15.1+). | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -24,9 +24,9 @@ else | ||||||
| fi	 | fi	 | ||||||
| 
 | 
 | ||||||
| # Checks that the version (stable/ptb/canary) is given as a parameter. | # 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" | 	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 | 	exit 1 | ||||||
| fi | fi | ||||||
| 
 | 
 | ||||||
|  | @ -45,6 +45,13 @@ elif [[ $1 == "ptb" ]]; then | ||||||
| 	download_url='https://discordapp.com/api/download/ptb' | 	download_url='https://discordapp.com/api/download/ptb' | ||||||
| 	cut_part=3 | 	cut_part=3 | ||||||
| 	desktop_file="$work_dir/discord-ptb.desktop" | 	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 | else | ||||||
| 	app_name='Discord' | 	app_name='Discord' | ||||||
| 	exe_name='Discord' | 	exe_name='Discord' | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Guillaume Raffin
						Guillaume Raffin