build: deploy windows builds as zip files
This commit is contained in:
		
							parent
							
								
									56e6412837
								
							
						
					
					
						commit
						c2b066824f
					
				
					 1 changed files with 10 additions and 4 deletions
				
			
		|  | @ -28,10 +28,16 @@ TARGETS=$(/bin/ls) | |||
| for target in $TARGETS; do | ||||
|     if [ -d "$target" ]; then | ||||
|         cd "$target" | ||||
|         echo packing "$target"... | ||||
|         if [ "${target:0:8}" == "windows-" ]; then | ||||
|             echo packing zip "$target"... | ||||
|             zip -r "../../${APPNAME}-${VERSION}-${target}.zip" ./* | ||||
|             cd .. | ||||
|         else | ||||
|             echo packing tar "$target"... | ||||
|             tar -czf "../../${APPNAME}-${VERSION}-${target}.tar.gz" -- * | ||||
|             cd .. | ||||
|         fi | ||||
|     fi | ||||
| done | ||||
| 
 | ||||
| cd .. | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue