add res/osx-dist.sh
This commit is contained in:
		
							parent
							
								
									99d25002f7
								
							
						
					
					
						commit
						f5d0cece43
					
				
							
								
								
									
										14
									
								
								res/osx-dist.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										14
									
								
								res/osx-dist.sh
									
									
									
									
									
										Executable file
									
								
							| @ -0,0 +1,14 @@ | ||||
| #!/usr/bin/env bash | ||||
| 
 | ||||
| echo $MACOS_CODESIGN_IDENTITY | ||||
| cargo install flutter_rust_bridge_codegen --version 1.75.3 --features uuid | ||||
| cd flutter; flutter pub get; cd - | ||||
| ~/.cargo/bin/flutter_rust_bridge_codegen --rust-input ./src/flutter_ffi.rs --dart-output ./flutter/lib/generated_bridge.dart --c-output ./flutter/macos/Runner/bridge_generated.h | ||||
| ./build.py --flutter | ||||
| rm rustdesk-$VERSION.dmg | ||||
| # security find-identity -v | ||||
| codesign --force --options runtime -s $MACOS_CODESIGN_IDENTITY --deep --strict ./flutter/build/macos/Build/Products/Release/RustDesk.app -vvv | ||||
| create-dmg --icon "RustDesk.app" 200 190 --hide-extension "RustDesk.app" --window-size 800 400 --app-drop-link 600 185 rustdesk-$VERSION.dmg ./flutter/build/macos/Build/Products/Release/RustDesk.app | ||||
| codesign --force --options runtime -s $MACOS_CODESIGN_IDENTITY --deep --strict rustdesk-$VERSION.dmg -vvv | ||||
| # notarize the rustdesk-${{ env.VERSION }}.dmg | ||||
| rcodesign notary-submit --api-key-path ~/.p12/api-key.json  --staple rustdesk-$VERSION.dmg | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user