Skip to content

Commit

Permalink
windows 发布优化
Browse files Browse the repository at this point in the history
  • Loading branch information
youlingdada committed Oct 17, 2024
1 parent 17067b3 commit d9ff376
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit d9ff376

Please sign in to comment.