From a06ce7e1834e846cb22b0031d9f03c5fcd611064 Mon Sep 17 00:00:00 2001 From: Kingtous Date: Thu, 30 Mar 2023 10:54:43 +0800 Subject: [PATCH] add: x86 windows --- .github/workflows/flutter-nightly.yml | 10 ++++------ Cargo.lock | 2 +- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/flutter-nightly.yml b/.github/workflows/flutter-nightly.yml index 30bf10605..b6020460c 100644 --- a/.github/workflows/flutter-nightly.yml +++ b/.github/workflows/flutter-nightly.yml @@ -154,7 +154,7 @@ jobs: name: ${{ matrix.job.target }} (${{ matrix.job.os }}) runs-on: ${{ matrix.job.os }} # Temporarily disable this action due to additional test is needed. - if: false + # if: false strategy: fail-fast: false matrix: @@ -175,14 +175,10 @@ jobs: - name: Install Rust toolchain uses: actions-rs/toolchain@v1 with: - toolchain: stable-${{ matrix.job.target }} + toolchain: nightly-${{ matrix.job.target }} target: ${{ matrix.job.target }} override: true profile: minimal # minimal component installation (ie, no documentation) - - - name: Set Rust toolchain to the target - run: | - rustup default stable-${{ matrix.job.target }} - uses: Swatinem/rust-cache@v2 with: @@ -204,6 +200,8 @@ jobs: shell: bash run: | python3 res/inline-sciter.py + # Patch sciter x86 + sed -i 's/branch = "dyn"/branch = "dyn_x86"/g' ./Cargo.toml # Replace the link for the ico. rm res/icon.ico && cp flutter/windows/runner/resources/app_icon.ico res/icon.ico cargo build --features inline --release --bins diff --git a/Cargo.lock b/Cargo.lock index a0815f8e0..5a4cad9f8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -6343,7 +6343,7 @@ dependencies = [ [[package]] name = "trayicon" version = "0.1.3-1" -source = "git+https://github.com/open-trade/trayicon-rs#8d9c4489287752cc5be4a35c103198f7111112f9" +source = "git+https://github.com/open-trade/trayicon-rs#35bd01963271b45a0b6a0f65f1ce03a5f35bc691" dependencies = [ "winapi 0.3.9", "winit",