Skip to content

Commit

Permalink
rename windows artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
GyulyVGC committed Jun 7, 2023
1 parent 4ce21d9 commit 62b7b7e
Show file tree
Hide file tree
Showing 3 changed files with 316 additions and 508 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: Package

on:
push:
tags:
- v*
workflow_dispatch:

jobs:
Expand Down Expand Up @@ -304,6 +301,7 @@ jobs:
- name: Package for Microsoft Windows
shell: powershell
run: |
$VERSION=(toml get Cargo.toml package.version --raw)
$targets=@(
"i686-pc-windows-msvc",
"x86_64-pc-windows-msvc"
Expand All @@ -312,7 +310,8 @@ jobs:
foreach ($target in $targets)
{
cargo wix --no-build --nocapture --target $target
Move-Item -Path target\wix\*.msi -Destination .\artifacts\
Move-Item -Path target\wix\sniffnet-$VERSION-x86.msi -Destination .\artifacts\Sniffnet_Windows_32-bit.msi
Move-Item -Path target\wix\sniffnet-$VERSION-x86_64.msi -Destination .\artifacts\Sniffnet_Windows_64-bit.msi
}
- name: Upload package artifacts
Expand Down
Loading

0 comments on commit 62b7b7e

Please sign in to comment.