diff --git a/.gitea/workflows/flutter-build.yml b/.gitea/workflows/flutter-build.yml index 58f99984..309ebbf1 100644 --- a/.gitea/workflows/flutter-build.yml +++ b/.gitea/workflows/flutter-build.yml @@ -1,5 +1,8 @@ -name: Build the flutter version of the RustDesk -on: [push] +name: release +on: + push: + tags: + - '*' env: CARGO_NDK_VERSION: "3.1.2" @@ -22,7 +25,7 @@ env: RENDEZVOUS_SERVER: '${{ secrets.RENDEZVOUS_SERVER }}' jobs: - build-for-windows-flutter: + release: name: ${{ matrix.job.target }} (${{ matrix.job.os }}) runs-on: [self-hosted, Windows] strategy: @@ -34,26 +37,6 @@ jobs: - name: Checkout source code uses: actions/checkout@v3 -# - name: Install LLVM and Clang -# uses: KyleMayes/install-llvm-action@v1 -# with: -# version: ${{ env.LLVM_VERSION }} - -# - name: Install flutter -# uses: subosito/flutter-action@v2 -# with: -# channel: "stable" -# flutter-version: ${{ env.FLUTTER_VERSION }} -# cache: true - - # - name: Replace engine with rustdesk custom flutter engine - # run: | - # flutter doctor -v - # flutter precache --windows - # Invoke-WebRequest -Uri https://github.com/Kingtous/engine/releases/download/v3.7.0-rustdesk/windows-x64-release-flutter.zip -OutFile windows-x64-flutter-release.zip - # Expand-Archive windows-x64-flutter-release.zip -DestinationPath engine - # mv -Force engine/* C:/hostedtoolcache/windows/flutter/stable-${{ env.FLUTTER_VERSION }}-x64/bin/cache/artifacts/engine/windows-x64-release/ - - name: Install Rust toolchain uses: actions-rs/toolchain@v1 with: @@ -74,11 +57,6 @@ jobs: Push-Location flutter ; flutter pub get ; Pop-Location ~/.cargo/bin/flutter_rust_bridge_codegen --rust-input ./src/flutter_ffi.rs --dart-output ./flutter/lib/generated_bridge.dart -# - name: Install vcpkg dependencies -# run: | -# cd C:\ -# git clone https://github.com/Kingtous/rustdesk_thirdpary_lib --depth=1 - - name: Build rustdesk shell: powershell env: @@ -86,8 +64,6 @@ jobs: run: python3 .\build.py --portable --hwcodec --flutter --feature IddDriver - name: find Runner.res - # Windows: find Runner.res (compiled from ./flutter/windows/runner/Runner.rc), copy to ./Runner.res - # Runner.rc does not contain actual version, but Runner.res does continue-on-error: true shell: bash run: |