Skip to content

Commit dc34543

Browse files
committed
fix windows generator
1 parent f5d06d2 commit dc34543

File tree

1 file changed

+7
-28
lines changed

1 file changed

+7
-28
lines changed

.github/workflows/generator-windows.yml

Lines changed: 7 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,12 @@ jobs:
155155
with:
156156
repository: rustdesk/rustdesk
157157

158+
- name: Restore bridge files
159+
uses: actions/download-artifact@master
160+
with:
161+
name: bridge-artifact
162+
path: ./
163+
158164
- name: Install ImageMagick on Windows
159165
run: |
160166
choco install -y imagemagick.app --no-progress
@@ -247,13 +253,6 @@ jobs:
247253
- uses: Swatinem/rust-cache@v2
248254
with:
249255
prefix-key: ${{ matrix.job.os }}
250-
251-
- name: Install flutter rust bridge deps
252-
run: |
253-
git config --global core.longpaths true
254-
cargo install flutter_rust_bridge_codegen --version ${{ env.FLUTTER_RUST_BRIDGE_VERSION }} --features "uuid"
255-
Push-Location flutter ; flutter pub get ; Pop-Location
256-
~/.cargo/bin/flutter_rust_bridge_codegen --rust-input ./src/flutter_ffi.rs --dart-output ./flutter/lib/generated_bridge.dart
257256

258257
- name: Report Status
259258
uses: fjogeleit/http-request-action@v1
@@ -355,18 +354,6 @@ jobs:
355354
flutter pub run flutter_launcher_icons
356355
cd ..
357356
358-
- name: Report Status
359-
uses: fjogeleit/http-request-action@v1
360-
with:
361-
url: ${{ env.STATUS_URL }}
362-
method: 'POST'
363-
customHeaders: '{"Content-Type": "application/json"}'
364-
data: '{"uuid": "${{ inputs.uuid }}", "status": "30% complete"}'
365-
366-
# - name: generate rustbridge
367-
# run: |
368-
# ~/.cargo/bin/flutter_rust_bridge_codegen --rust-input ./src/flutter_ffi.rs --dart-output ./flutter/lib/generated_bridge.dart
369-
370357
- name: Report Status
371358
uses: fjogeleit/http-request-action@v1
372359
with:
@@ -383,15 +370,7 @@ jobs:
383370
Remove-Item -Path usbmmidd_v2\Win32 -Recurse
384371
Remove-Item -Path "usbmmidd_v2\deviceinstaller64.exe", "usbmmidd_v2\deviceinstaller.exe", "usbmmidd_v2\usbmmidd.bat"
385372
mv ./flutter/build/windows/x64/runner/Release ./rustdesk
386-
mv -Force .\usbmmidd_v2 ./rustdesk
387-
388-
# - name: logo stuff
389-
# if: ${{ inputs.logolink != 'false' }}
390-
# continue-on-error: true
391-
# shell: bash
392-
# run: |
393-
# #echo "${{ inputs.logobase64 }}" | base64 -d > ./rustdesk/data/flutter_assets/assets/logo.png
394-
373+
mv -Force .\usbmmidd_v2 ./rustdesk
395374
396375
- name: icon stuff
397376
if: ${{ inputs.iconlink != 'false' }}

0 commit comments

Comments
 (0)