mkrelease.sh: add --notar
This commit is contained in:
		
							parent
							
								
									c275d3c6d8
								
							
						
					
					
						commit
						d6f7aec884
					
				
					 1 changed files with 6 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -14,6 +14,7 @@ TEMP=$(
 | 
			
		|||
    getopt -o '' \
 | 
			
		||||
        --long certdir: \
 | 
			
		||||
        --long nosign \
 | 
			
		||||
        --long notar \
 | 
			
		||||
	--long help \
 | 
			
		||||
        -- "$@"
 | 
			
		||||
    )
 | 
			
		||||
| 
						 | 
				
			
			@ -36,6 +37,10 @@ while true; do
 | 
			
		|||
	    NOSIGN="1"
 | 
			
		||||
            shift 1; continue
 | 
			
		||||
            ;;
 | 
			
		||||
        '--notar')
 | 
			
		||||
	    NOTAR="1"
 | 
			
		||||
            shift 1; continue
 | 
			
		||||
            ;;
 | 
			
		||||
        '--help')
 | 
			
		||||
	    usage
 | 
			
		||||
	    exit 0
 | 
			
		||||
| 
						 | 
				
			
			@ -65,6 +70,6 @@ IMAGE="${BASEDIR}/$(jq -r '.name' ${JSON})-$(jq -r '.version' ${JSON})"
 | 
			
		|||
    [[ -f sha512sum.txt.sig ]] || gpg2 --detach-sign sha512sum.txt
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
if ! [[ -e "$IMAGE".tgz ]]; then
 | 
			
		||||
if ! [[ $NOTAR ]] && ! [[ -e "$IMAGE".tgz ]]; then
 | 
			
		||||
    tar cf - -C "${IMAGE%/*}" "${IMAGE##*/}" | pigz -c > "$IMAGE".tgz
 | 
			
		||||
fi
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue