* WIP: Change the name of the app Fixes #5971 * Force release build * More renames * Fix release builds on PR * Remove alpha on home page, replace with nightly if nightly * Change appId back to dev.zoo.modeling-app after updater test failure * Cleanup towards review * Lint * Lint plus @jacebrowning's suggestion * Lint
		
			
				
	
	
		
			20 lines
		
	
	
		
			661 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			661 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/bash
 | |
| 
 | |
| export COMMIT=$(git rev-parse --short HEAD)
 | |
| 
 | |
| # package.json
 | |
| PACKAGE=$(jq '.productName="Zoo Design Studio (Nightly)" | .name="zoo-modeling-app-nightly"' package.json --indent 2)
 | |
| echo "$PACKAGE" > 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
 | |
| yq -i '.nsis.include = "./scripts/installer-nightly.nsh"' electron-builder.yml
 | |
| 
 | |
| # Release notes
 | |
| echo "Nightly build (commit $COMMIT)" > release-notes.md
 | |
| 
 | |
| # icons
 | |
| cp assets/icon-nightly.png assets/icon.png
 | |
| cp assets/icon-nightly.ico assets/icon.ico
 |