11
11
description : ' Version string in filename'
12
12
13
13
env :
14
- WIN_RUST_VERSION : " 1.75 "
14
+ WIN_RUST_VERSION : " 1.83 "
15
15
LLVM_VERSION : " 15.0.6"
16
- FLUTTER_VERSION : " 3.19.6"
17
- FLUTTER_RUST_BRIDGE_VERSION : " 1.80.1"
18
- # vcpkg version: 2024.07.12
19
- VCPKG_COMMIT_ID : " 1de2026f28ead93ff1773e6e680387643e914ea1"
16
+ FLUTTER_VERSION : " 3.24.5"
17
+ # vcpkg version: 2024.11.16
18
+ VCPKG_COMMIT_ID : " b2cb0da531c2f1f740045bfe7c4dac59f0b2b69c"
20
19
21
20
jobs :
21
+ generate-bridge :
22
+ uses : ./.github/workflows/bridge.yml
23
+
22
24
build-RustDeskTempTopMostWindow :
23
25
uses : ./.github/workflows/third-party-RustDeskTempTopMostWindow.yml
24
26
with :
30
32
31
33
build-for-windows-flutter :
32
34
name : x86_64-pc-windows-msvc (windows-2022)
33
- needs : [build-RustDeskTempTopMostWindow]
35
+ needs : [build-RustDeskTempTopMostWindow, generate-bridge ]
34
36
runs-on : windows-2022
35
37
steps :
36
38
- name : Export GitHub Actions cache environment variables
45
47
with :
46
48
ref : ${{ inputs.tag }}
47
49
50
+ - name : Restore bridge files
51
+ uses : actions/download-artifact@master
52
+ with :
53
+ name : bridge-artifact
54
+ path : ./
55
+
48
56
- name : Cache [Install LLVM and Clang]
49
57
id : cache-llvm
50
58
uses : actions/cache@v3
66
74
flutter-version : ${{ env.FLUTTER_VERSION }}
67
75
cache : true
68
76
77
+ # https://github.com/flutter/flutter/issues/155685
78
+ - name : Replace engine with rustdesk custom flutter engine
79
+ run : |
80
+ flutter doctor -v
81
+ flutter precache --windows
82
+ Invoke-WebRequest -Uri https://github.com/rustdesk/engine/releases/download/main/windows-x64-release.zip -OutFile windows-x64-release.zip
83
+ Expand-Archive -Path windows-x64-release.zip -DestinationPath windows-x64-release
84
+ mv -Force windows-x64-release/* C:/hostedtoolcache/windows/flutter/stable-${{ env.FLUTTER_VERSION }}-x64/bin/cache/artifacts/engine/windows-x64-release/
85
+
86
+ - name : Patch flutter
87
+ shell : bash
88
+ run : |
89
+ cp .github/patches/flutter_3.24.4_dropdown_menu_enableFilter.diff $(dirname $(dirname $(which flutter)))
90
+ cd $(dirname $(dirname $(which flutter)))
91
+ [[ "3.24.5" == ${{env.FLUTTER_VERSION}} ]] && git apply flutter_3.24.4_dropdown_menu_enableFilter.diff
92
+
69
93
- name : Install Rust toolchain
70
94
uses : dtolnay/rust-toolchain@v1
71
95
with :
@@ -77,13 +101,6 @@ jobs:
77
101
with :
78
102
prefix-key : windows-2022
79
103
80
- - name : Install flutter rust bridge deps
81
- run : |
82
- git config --global core.longpaths true
83
- cargo install flutter_rust_bridge_codegen --version ${{ env.FLUTTER_RUST_BRIDGE_VERSION }} --features "uuid"
84
- Push-Location flutter ; flutter pub get ; Pop-Location
85
- ~/.cargo/bin/flutter_rust_bridge_codegen --rust-input ./src/flutter_ffi.rs --dart-output ./flutter/lib/generated_bridge.dart
86
-
87
104
- name : Setup vcpkg with Github Actions binary cache
88
105
uses : lukka/run-vcpkg@v11
89
106
with :
0 commit comments