mirror of
				https://github.com/oSoWoSo/DistroHopper.git
				synced 2024-08-14 22:46:53 +00:00 
			
		
		
		
	Add quick 'n dirty docs explaining how to add a new OS
This commit is contained in:
		
							parent
							
								
									635765dcfc
								
							
						
					
					
						commit
						dacc7913e1
					
				
					 1 changed files with 19 additions and 0 deletions
				
			
		
							
								
								
									
										19
									
								
								quickget
									
										
									
									
									
								
							
							
						
						
									
										19
									
								
								quickget
									
										
									
									
									
								
							|  | @ -1,5 +1,24 @@ | |||
| #!/usr/bin/env bash | ||||
| 
 | ||||
| # Here the quick 'n dirty guide to adding a new OS to quickget | ||||
| # | ||||
| #  1. Add the new OS, all lowercase, to os_support() | ||||
| #  2. Add a "pretty name" display name to pretty_name() | ||||
| #  3. Create a releases_newos() generator that outputs the currently supported release versions | ||||
| #  4. Add the new OS to make_vm_config() | ||||
| #  5. Create a get_newos() function that does something like this: | ||||
| #     function get_newos() { | ||||
| #         local ISO="" | ||||
| #         local URL="" | ||||
| # | ||||
| #         validate_release "releases_newos" | ||||
| #         ISO="newos-${RELEASE}-amd64.iso" | ||||
| #         URL="https://www.newos.org/download/${ISO}" | ||||
| #         web_get "${URL}" "${VM_PATH}" | ||||
| #         make_vm_config "${ISO}" | ||||
| #     } | ||||
| #  6. Add new OS to the argument parser at the bottom of the script | ||||
| 
 | ||||
| function pretty_name() { | ||||
|   local OS="${1}" | ||||
|   local PRETTY_NAME="" | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue