Skip to content

Commit b9b2a57

Browse files
committed
linux/android
1 parent f8bdf30 commit b9b2a57

File tree

2 files changed

+7
-17
lines changed

2 files changed

+7
-17
lines changed

.github/workflows/generator-android.yml

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -286,17 +286,6 @@ jobs:
286286
prefix-key: rustdesk-lib-cache-android # TODO: drop '-android' part after caches are invalidated
287287
key: ${{ matrix.job.target }}
288288

289-
- name: fix android for flutter 3.13
290-
if: $${{ env.ANDROID_FLUTTER_VERSION == '3.13.9' }}
291-
run: |
292-
cd flutter
293-
sed -i 's/uni_links_desktop/#uni_links_desktop/g' pubspec.yaml
294-
sed -i 's/extended_text: .*/extended_text: 11.1.0/' pubspec.yaml
295-
flutter pub get
296-
cd lib
297-
find . | grep dart | xargs sed -i 's/textScaler: TextScaler.linear(\(.*\)),/textScaleFactor: \1,/g'
298-
cd ../..
299-
300289
###########################################################echo "${{ inputs.iconbase64 }}" | base64 -d > ./res/icon.png
301290
- name: icon stuff
302291
if: ${{ inputs.iconlink != 'false' }}
@@ -466,7 +455,7 @@ jobs:
466455
convert ./res/icon.png ./res/scalable.svg
467456
fi
468457
# build flutter
469-
pushd flutter && sed -i -e 's/extended_text: 14.0.0/extended_text: 13.0.0/g' pubspec.yaml && flutter pub get
458+
pushd flutter
470459
flutter build apk "--${{ matrix.job.reltype }}" --target-platform android-arm64 --split-per-abi
471460
mv build/app/outputs/flutter-apk/app-arm64-v8a-${{ matrix.job.reltype }}.apk ../rustdesk-${{ env.VERSION }}-${{ matrix.job.arch }}${{ matrix.job.suffix }}.apk
472461
;;
@@ -483,7 +472,7 @@ jobs:
483472
convert ./res/icon.png ./res/scalable.svg
484473
fi
485474
# build flutter
486-
pushd flutter && sed -i -e 's/extended_text: 14.0.0/extended_text: 13.0.0/g' pubspec.yaml && flutter pub get
475+
pushd flutter
487476
flutter build apk "--${{ matrix.job.reltype }}" --target-platform android-arm --split-per-abi
488477
mv build/app/outputs/flutter-apk/app-armeabi-v7a-${{ matrix.job.reltype }}.apk ../rustdesk-${{ env.VERSION }}-${{ matrix.job.arch }}${{ matrix.job.suffix }}.apk
489478
;;
@@ -500,7 +489,7 @@ jobs:
500489
convert ./res/icon.png ./res/scalable.svg
501490
fi
502491
# build flutter
503-
pushd flutter && sed -i -e 's/extended_text: 14.0.0/extended_text: 13.0.0/g' pubspec.yaml && flutter pub get
492+
pushd flutter
504493
flutter build apk "--${{ matrix.job.reltype }}" --target-platform android-x64 --split-per-abi
505494
mv build/app/outputs/flutter-apk/app-x86_64-${{ matrix.job.reltype }}.apk ../rustdesk-${{ env.VERSION }}-${{ matrix.job.arch }}${{ matrix.job.suffix }}.apk
506495
;;
@@ -517,7 +506,7 @@ jobs:
517506
convert ./res/icon.png ./res/scalable.svg
518507
fi
519508
# build flutter
520-
pushd flutter && sed -i -e 's/extended_text: 14.0.0/extended_text: 13.0.0/g' pubspec.yaml && flutter pub get
509+
pushd flutter
521510
flutter build apk "--${{ matrix.job.reltype }}" --target-platform android-x86 --split-per-abi
522511
mv build/app/outputs/flutter-apk/app-x86-${{ matrix.job.reltype }}.apk ../rustdesk-${{ env.VERSION }}-${{ matrix.job.arch }}${{ matrix.job.suffix }}.apk
523512
;;

.github/workflows/generator-linux.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ jobs:
466466
;;
467467
esac
468468
469-
if [[ "3.24.4" == ${{ env.FLUTTER_VERSION }} ]]; then
469+
if [[ "3.24.5" == ${{ env.FLUTTER_VERSION }} ]]; then
470470
case ${{ matrix.job.arch }} in
471471
aarch64)
472472
pushd /opt/flutter-elinux/flutter
@@ -497,7 +497,8 @@ jobs:
497497
convert ./res/128x128.png -resize 200% ./flutter/assets/128x128@2x.png
498498
convert ./res/icon.png ./res/scalable.svg
499499
pushd ./flutter
500-
flutter pub run flutter_launcher_icons
500+
flutter pub get
501+
dart run flutter_launcher_icons
501502
popd
502503
fi
503504
python3 ./build.py --flutter --skip-cargo

0 commit comments

Comments
 (0)