mirror of
				https://github.com/jcefmaven/jcefbuild.git
				synced 2025-11-04 16:33:40 +08:00 
			
		
		
		
	Sign jogl and gluegen-rt dylibs in jar to perform notarization on complete build
This commit is contained in:
		
							
								
								
									
										23
									
								
								macosx_codesign_zip.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										23
									
								
								macosx_codesign_zip.sh
									
									
									
									
									
										Executable file
									
								
							@@ -0,0 +1,23 @@
 | 
			
		||||
#!/bin/bash
 | 
			
		||||
 | 
			
		||||
if [ $# -lt 3 ]
 | 
			
		||||
  then
 | 
			
		||||
    echo "Usage: ./macosx_codesign_zip.sh <path> <zippath> <certname>"
 | 
			
		||||
    echo ""
 | 
			
		||||
    echo "path: the absolute(!) target path"
 | 
			
		||||
    echo "zippath: the path inside the zip"
 | 
			
		||||
    echo "certname: the apple signing certificate name. Something like \"Developer ID Application: xxx (yyy)\""
 | 
			
		||||
    exit 1
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
#Set workdir local
 | 
			
		||||
cd "$( dirname "$0" )"
 | 
			
		||||
ENTITLEMENTS_BROWSER=entitlements/entitlements-browser.plist
 | 
			
		||||
 | 
			
		||||
mkdir tmp
 | 
			
		||||
unzip "$1" "$2" -d tmp
 | 
			
		||||
cd tmp
 | 
			
		||||
codesign --force --options runtime --entitlements "$ENTITLEMENTS_BROWSER" --sign "$3" --timestamp --verbose "$2"
 | 
			
		||||
zip --update "$1" "$2"
 | 
			
		||||
cd ..
 | 
			
		||||
rm -rf tmp
 | 
			
		||||
		Reference in New Issue
	
	Block a user