Skip to content

Commit

Permalink
refactor: specify format in cargo.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
decipher3114 committed Sep 12, 2024
1 parent 1235a71 commit 14d61b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,10 @@ jobs:
include:
- target: x86_64-unknown-linux-gnu
os: ubuntu-latest
format: "deb,pacman"
- target: x86_64-apple-darwin
os: macos-latest
format: "dmg"
- target: x86_64-pc-windows-msvc
os: windows-latest
format: "wix,nsis"
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
Expand Down Expand Up @@ -59,7 +56,7 @@ jobs:
- name: Package binary
run: |
cargo packager --release --formats ${{ matrix.format }} -v
cargo packager --release -v
- name: Upload windows artifacts
uses: actions/upload-artifact@v4
Expand Down
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,9 @@ version = "1.0.1"
identifier = "app.decipher.capter"
authors = ["decipher3114 <decipher3114@gmail.com>"]
publisher = "decipher3114"
category = "utility"
category = "Utility"
copyright = "Copyright © 2024"
formats = ["wix", "deb", "pacman", "dmg"]
before-packaging-command = "cargo build --release"
icons = ["assets/icons/windows/icon.ico", "assets/icons/macos/icon.icns", "assets/icons/linux/*"]
out-dir = "target/packages"
Expand Down

0 comments on commit 14d61b3

Please sign in to comment.