mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-06-26 02:04:58 +03:00
* Add initial arm64 build logic Signed-off-by: Dennis Ameling <dennis@dennisameling.com> * Upgrade Flutter to 3.44.0 and introduce Windows arm64 in CI Signed-off-by: Dennis Ameling <dennis@dennisameling.com> * Bump bridge build to Flutter 3.44 as well Signed-off-by: Dennis Ameling <dennis@dennisameling.com> * Fix install flutter step for Win arm64 * Bump install-llvm-action to v2 for arm64 support * Fix libsodium logic to only install through vcpkg on win arm64 * Fix Flutter installations on Win * Flutter XCode: only build the current arch as it defaults to universal Signed-off-by: Dennis Ameling <dennis@dennisameling.com> * Ensure that we really have arm64 Dart + Flutter engine in CI Signed-off-by: Dennis Ameling <dennis@dennisameling.com> * Enable hwcodec feature now that upstream supports building it Signed-off-by: Dennis Ameling <dennis@dennisameling.com> * CI: improve logic for getting Flutter arm64 SDK Signed-off-by: Dennis Ameling <dennis@dennisameling.com> * Apply PR feedback (only bump Flutter version on Win arm64) * Exclude MSI build on arm64 * CI: build the MSI for Windows arm64 (WiX v4 ARM64 platform + native CustomActions) * Address PR feedback * Update Cargo.toml * Update Cargo.lock * Update Cargo.lock * Add Flutter 3.44 DialogThemeData background colors Signed-off-by: 21pages <sunboeasy@gmail.com> --------- Signed-off-by: Dennis Ameling <dennis@dennisameling.com> Signed-off-by: 21pages <sunboeasy@gmail.com> Co-authored-by: RustDesk <71636191+rustdesk@users.noreply.github.com> Co-authored-by: 21pages <sunboeasy@gmail.com>
40 lines
2.4 KiB
Bash
40 lines
2.4 KiB
Bash
#!/usr/bin/env bash
|
|
# Applies the Flutter 3.44-only source/pubspec changes on the fly, in CI only.
|
|
#
|
|
# Windows arm64 needs Flutter >= 3.44 (the first stable release shipping an arm64 Dart SDK +
|
|
# engine), which renamed DialogTheme/TabBarTheme -> *Data and needs newer extended_text/
|
|
# google_fonts. Every other platform is still on Flutter 3.24.5, where the old names/versions
|
|
# are required, so these changes are kept OUT of the committed sources and applied here instead.
|
|
#
|
|
# Used by BOTH the Windows arm64 build (flutter-build.yml) and its dedicated bridge artifact
|
|
# (bridge.yml) so they share an identical 3.44 source state -- the generated *.freezed.dart must
|
|
# compile against the same Flutter/freezed version the arm64 build resolves.
|
|
#
|
|
# Remove this script (and commit the changes) once upstream bumps Flutter across the board.
|
|
#
|
|
# Run from the repository root. sed is used (not a git-apply patch) because the checked-out
|
|
# sources are CRLF on the windows-11-arm runner; the substitutions below are anchor-free and
|
|
# therefore CRLF-safe.
|
|
set -euo pipefail
|
|
|
|
# ThemeData API renames (Flutter 3.27+):
|
|
sed -i 's/dialogTheme: DialogTheme(/dialogTheme: DialogThemeData(/g' flutter/lib/common.dart
|
|
sed -i 's/tabBarTheme: const TabBarTheme(/tabBarTheme: const TabBarThemeData(/g' flutter/lib/common.dart
|
|
sed -i '/static ThemeData lightTheme = ThemeData(/,/static ThemeData darkTheme = ThemeData(/s/dialogTheme: DialogThemeData(/dialogTheme: DialogThemeData(\
|
|
backgroundColor: Colors.white,/' flutter/lib/common.dart
|
|
sed -i '/static ThemeData darkTheme = ThemeData(/,/scrollbarTheme: scrollbarThemeDark,/s/dialogTheme: DialogThemeData(/dialogTheme: DialogThemeData(\
|
|
backgroundColor: Color(0xFF18191E),/' flutter/lib/common.dart
|
|
# Dependency bumps required by the newer Dart/Flutter:
|
|
sed -i 's/extended_text: 14.0.0/extended_text: 15.0.2/' flutter/pubspec.yaml
|
|
sed -i 's/google_fonts: \^6.2.1/google_fonts: ^8.1.0/' flutter/pubspec.yaml
|
|
|
|
# Fail loudly if any expected string drifted, so we never silently build unpatched:
|
|
grep -qF 'dialogTheme: DialogThemeData(' flutter/lib/common.dart
|
|
grep -qF 'tabBarTheme: const TabBarThemeData(' flutter/lib/common.dart
|
|
grep -qF 'backgroundColor: Colors.white,' flutter/lib/common.dart
|
|
grep -qF 'backgroundColor: Color(0xFF18191E),' flutter/lib/common.dart
|
|
grep -qF 'extended_text: 15.0.2' flutter/pubspec.yaml
|
|
grep -qF 'google_fonts: ^8.1.0' flutter/pubspec.yaml
|
|
|
|
git --no-pager diff -- flutter/lib/common.dart flutter/pubspec.yaml
|