osx-dist.sh 997 B

123456789101112131415
  1. #!/usr/bin/env bash
  2. echo $MACOS_CODESIGN_IDENTITY
  3. cargo install flutter_rust_bridge_codegen --version 1.80.1 --features uuid
  4. cd flutter; flutter pub get; cd -
  5. ~/.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
  6. ./build.py --flutter
  7. rm rustdesk-$VERSION.dmg
  8. # security find-identity -v
  9. codesign --force --options runtime -s $MACOS_CODESIGN_IDENTITY --deep --strict ./flutter/build/macos/Build/Products/Release/RustDesk.app -vvv
  10. 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
  11. codesign --force --options runtime -s $MACOS_CODESIGN_IDENTITY --deep --strict rustdesk-$VERSION.dmg -vvv
  12. # notarize the rustdesk-${{ env.VERSION }}.dmg
  13. rcodesign notary-submit --api-key-path ~/.p12/api-key.json --staple rustdesk-$VERSION.dmg