Improve current nightly implementation (#4514)
* WIP: Improve current nightly implementation * Add nightly icons * Clean up script * Clean up * Clean up * Clean up2 * Clean up3
This commit is contained in:
		
							
								
								
									
										13
									
								
								scripts/flip-files-to-nightly.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										13
									
								
								scripts/flip-files-to-nightly.sh
									
									
									
									
									
										Executable file
									
								
							@ -0,0 +1,13 @@
 | 
			
		||||
#!/bin/bash
 | 
			
		||||
 | 
			
		||||
# package.json
 | 
			
		||||
VERSION=$(date +'%-y.%-m.%-d') yarn files:set-version
 | 
			
		||||
echo "$(jq --arg name 'Zoo Modeling App (Nightly)' '.productName=$name' package.json --indent 2)" > package.json
 | 
			
		||||
 | 
			
		||||
# electron-builder.yml
 | 
			
		||||
yq -i '.publish[0].url = "https://dl.zoo.dev/releases/modeling-app/nightly"' electron-builder.yml
 | 
			
		||||
yq -i '.appId = "dev.zoo.modeling-app-nightly"' electron-builder.yml
 | 
			
		||||
 | 
			
		||||
# icons
 | 
			
		||||
cp assets/icon-nightly.png assets/icon.png
 | 
			
		||||
cp assets/icon-nightly.ico assets/icon.ico
 | 
			
		||||
		Reference in New Issue
	
	Block a user