kopia lustrzana https://github.com/inkstitch/inkstitch
				
				
				
			
		
			
				
	
	
		
			23 wiersze
		
	
	
		
			527 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
			
		
		
	
	
			23 wiersze
		
	
	
		
			527 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
#!/bin/bash
 | 
						|
 | 
						|
set -e
 | 
						|
set -x
 | 
						|
 | 
						|
if [ "$BUILD" = "windows" ]; then
 | 
						|
  args="-w --ia32"
 | 
						|
elif [ "$BUILD" = "linux" ]; then
 | 
						|
  args="-l --x64"
 | 
						|
elif [ "$BUILD" = "osx" ]; then
 | 
						|
  cp installer_scripts/electron-entitlements.plist electron/build/
 | 
						|
  args="-m"
 | 
						|
fi
 | 
						|
 | 
						|
# electron version setting on release
 | 
						|
if [[ "$VERSION" =~ ^v[0-9][.0-9]+$ ]]; then
 | 
						|
    sed -i'' -e 's/11.99.11/'"${VERSION#v}"'/' electron/package.json
 | 
						|
fi
 | 
						|
cd electron
 | 
						|
which yarn > /dev/null 2>&1 || npm install -g yarn
 | 
						|
yarn --link-duplicates --pure-lockfile
 | 
						|
yarn run dist ${args}
 |