mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 04:51:31 +08:00 
			
		
		
		
	bin: Add asserts for create-icons dependencies
This commit is contained in:
		
							parent
							
								
									880b0420cc
								
							
						
					
					
						commit
						3ce2c98317
					
				| @ -1,5 +1,15 @@ | |||||||
| #!/usr/bin/env bash | #!/usr/bin/env bash | ||||||
| 
 | 
 | ||||||
|  | if ! command -v magick &> /dev/null; then | ||||||
|  |   echo "This tool requires ImageMagick to be installed in order to create the icons." | ||||||
|  |   exit 1 | ||||||
|  | fi | ||||||
|  | 
 | ||||||
|  | if ! command -v icnsutil &> /dev/null; then | ||||||
|  |   echo "This tool requires icnsutil to be installed in order to generate macOS icons." | ||||||
|  |   exit 1 | ||||||
|  | fi | ||||||
|  | 
 | ||||||
| script_dir=$(realpath $(dirname $0)) | script_dir=$(realpath $(dirname $0)) | ||||||
| cd "${script_dir}/../images/app-icons" | cd "${script_dir}/../images/app-icons" | ||||||
| magick -background none "../icon-color.svg" -resize 180x180 "./ios/apple-touch-icon.png" | magick -background none "../icon-color.svg" -resize 180x180 "./ios/apple-touch-icon.png" | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Elian Doran
						Elian Doran