From d9ff3769da2e2c7d9a1ea5e75b233bef2e0843d5 Mon Sep 17 00:00:00 2001 From: youlingdada Date: Thu, 17 Oct 2024 10:59:01 +0800 Subject: [PATCH] =?UTF-8?q?windows=20=E5=8F=91=E5=B8=83=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index daa4d69..e73bfe5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -107,23 +107,30 @@ jobs: needs: create_release # 确保在创建发布之后再运行 steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Set up Rust - uses: actions-rs/toolchain@v1 + - uses: hecrj/setup-rust-action@v1 with: - toolchain: stable # 或者您想使用的特定版本 + rust-version: ${{env.RUST_VERSION}} + targets: x86_64-unknown-linux-musl + - uses: actions/checkout@v4 - name: Build run: cargo build --release + - name: Install Inno Setup + run: | + curl -L -o innosetup.exe https://jrsoftware.org/download.php/is.exe + Start-Process -Wait -FilePath innosetup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART + + - name: Build Installer with Inno Setup + run: | + "C:\Program Files (x86)\Inno Setup 6\ISCC.exe" install/win/install.iss + - name: Upload Release Asset uses: actions/upload-release-asset@latest env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ needs.create_release.outputs.upload_url }} - asset_path: target/release/nvm.exe - asset_name: nvm-windows.exe + asset_path: setup/nvm-rs-setup.exe + asset_name: nvm-rs-setup-windows.exe asset_content_type: application/octet-stream