| 
									
										
										
										
											2023-07-09 17:59:01 +08:00
										 |  |  | #!/usr/bin/env bash
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | echo $MACOS_CODESIGN_IDENTITY | 
					
						
							| 
									
										
										
										
											2023-12-03 20:31:48 +08:00
										 |  |  | cargo install flutter_rust_bridge_codegen --version 1.80.1 --features uuid | 
					
						
							| 
									
										
										
										
											2023-07-09 17:59:01 +08:00
										 |  |  | 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 |