From 28bf73cd5a3fbb80970cfbf2e780200151c669ed Mon Sep 17 00:00:00 2001 From: rustdesk Date: Tue, 30 Apr 2024 22:50:59 +0800 Subject: [PATCH] disable flutter texture render of osx intel --- .github/workflows/flutter-build.yml | 7 ++++++- build.py | 5 ++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/flutter-build.yml b/.github/workflows/flutter-build.yml index 9182efaac..ec3ae8d32 100644 --- a/.github/workflows/flutter-build.yml +++ b/.github/workflows/flutter-build.yml @@ -651,7 +651,12 @@ jobs: - name: Build rustdesk run: | - ./build.py --flutter --hwcodec ${{ matrix.job.extra-build-args }} + if [[ "${{ matrix.job.arch }}" == "aarch64" ]]; then + export EXTRA_ARGS="" + else + export EXTRA_ARGs="--disable-flutter-texture-render" + fi + ./build.py --flutter $EXTRA_ARGS --hwcodec ${{ matrix.job.extra-build-args }} - name: create unsigned dmg if: env.UPLOAD_ARTIFACT == 'true' diff --git a/build.py b/build.py index 1779d7d46..f233077c1 100755 --- a/build.py +++ b/build.py @@ -111,6 +111,8 @@ def make_parser(): 'Available: PrivacyMode. Special value is "ALL" and empty "". Default is empty.') parser.add_argument('--flutter', action='store_true', help='Build flutter package', default=False) + parser.add_argument('--disable-flutter-texture-render', action='store_true', + help='Build flutter package', default=False) parser.add_argument( '--hwcodec', action='store_true', @@ -292,7 +294,8 @@ def get_features(args): features.append('vram') if args.flutter: features.append('flutter') - features.append('flutter_texture_render') + if not args.disable_flutter_texture_render: + features.append('flutter_texture_render') if args.flatpak: features.append('flatpak') if args.appimage: