disable flutter texture render of osx intel

This commit is contained in:
rustdesk 2024-04-30 22:50:59 +08:00
parent 511b982dce
commit 28bf73cd5a
2 changed files with 10 additions and 2 deletions

View File

@ -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'

View File

@ -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: