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 | for target in $TARGETS; do | ||||||
|     if [ -d "$target" ]; then |     if [ -d "$target" ]; then | ||||||
|         cd "$target" |         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" -- * |             tar -czf "../../${APPNAME}-${VERSION}-${target}.tar.gz" -- * | ||||||
|             cd .. |             cd .. | ||||||
|         fi |         fi | ||||||
|  |     fi | ||||||
| done | done | ||||||
| 
 | 
 | ||||||
| cd .. | cd .. | ||||||
|  | @ -42,7 +48,7 @@ TARFILES=$(/bin/ls) | ||||||
| for tarfile in $TARFILES; do | for tarfile in $TARFILES; do | ||||||
|     echo signing "$tarfile"... |     echo signing "$tarfile"... | ||||||
|     gpg --local-user 4E6CF7234FFC4E14531074F98EB1E1BB660E3FB9 --detach-sig "$tarfile" |     gpg --local-user 4E6CF7234FFC4E14531074F98EB1E1BB660E3FB9 --detach-sig "$tarfile" | ||||||
|     sha256sum -b "$tarfile" > "${tarfile}.sha256" |     sha256sum -b "$tarfile" >"${tarfile}.sha256" | ||||||
| done | done | ||||||
| 
 | 
 | ||||||
| echo "done making release $VERSION @ $DESTDIR" | echo "done making release $VERSION @ $DESTDIR" | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue