From 8d19bba51be1c607f4cacc745949b66e0c512ad2 Mon Sep 17 00:00:00 2001 From: Francisco Jimenez Cabrera Date: Sat, 13 May 2023 00:53:21 +0100 Subject: [PATCH] Release Windows version --- .github/workflows/release.yml | 12 +++++++++++- Cargo.lock | 2 +- Cargo.toml | 2 +- README.md | 2 +- SECURITY.md | 6 +++--- snapcraft.yaml | 2 +- 6 files changed, 18 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3befb63..ec93c9e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,6 +7,7 @@ on: push: branches: - main + - windows-releases jobs: check_release: @@ -64,6 +65,7 @@ jobs: - s390x-unknown-linux-gnu - aarch64-apple-darwin - x86_64-apple-darwin + - x86_64-pc-windows-gnu runs-on: ${{ (matrix.target == 'aarch64-apple-darwin' || matrix.target == 'x86_64-apple-darwin') && 'macos-latest' || 'ubuntu-latest' }} steps: - name: Checkout repository @@ -76,6 +78,10 @@ jobs: target: ${{ matrix.target }} override: true + - name: Install mingw-w64 + run: sudo apt install -y mingw-w64 + if: matrix.target == 'x86_64-pc-windows-gnu' + - name: Build target uses: actions-rs/cargo@v1 with: @@ -88,7 +94,11 @@ jobs: run: | cd target/${{ matrix.target }}/release short_target=$(echo "${{ matrix.target }}" | sed 's/-unknown//') - tar czvf ../../../killport-${short_target}.tar.gz killport + if [[ $short_target == *"windows"* ]]; then + tar czvf ../../../killport-${short_target}.tar.gz killport.exe + else + tar czvf ../../../killport-${short_target}.tar.gz killport + fi cd - - name: Extract version from Cargo.toml diff --git a/Cargo.lock b/Cargo.lock index c5393cb..de1c787 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -644,7 +644,7 @@ dependencies = [ [[package]] name = "killport" -version = "0.8.0" +version = "0.9.0" dependencies = [ "assert_cmd", "cargo-deb", diff --git a/Cargo.toml b/Cargo.toml index 5431e8e..45c32a8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "killport" -version = "0.8.0" +version = "0.9.0" authors = ["Francisco Jimenez Cabrera "] edition = "2021" license = "MIT" diff --git a/README.md b/README.md index 515ff1b..c25999a 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ - Kill processes by port number - Supports multiple port numbers - Verbosity control -- Works on Linux and macOS +- Works on Linux, macOS and Windows ## Installation diff --git a/SECURITY.md b/SECURITY.md index 8fedbe7..6bf1938 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -6,8 +6,8 @@ We are committed to providing security updates for the following versions of kil | Version | Supported | | ------- | ------------------ | -| 0.8.x | :white_check_mark: | -| < 0.8.0 | :x: | +| 0.9.x | :white_check_mark: | +| < 0.9.0 | :x: | Older versions of killport may still work but are not actively maintained or supported. We encourage users to upgrade to the latest version to receive security updates and feature improvements. @@ -19,7 +19,7 @@ Please follow these steps to report a vulnerability: 1. Go to the [GitHub Security tab](https://github.com/jkfran/killport/security/advisories) in the killport repository. 2. Click on "New draft advisory." -3. Provide a descriptive title for the advisory, such as "Security Vulnerability in killport v0.8.0." +3. Provide a descriptive title for the advisory, such as "Security Vulnerability in killport v0.9.0." 4. Provide a detailed description of the vulnerability, including steps to reproduce the issue, affected components, and potential impact. 5. If you have a suggested patch or workaround, please include it in the report. However, this is not required. 6. Submit the draft advisory. diff --git a/snapcraft.yaml b/snapcraft.yaml index 6bae73c..6d1885f 100644 --- a/snapcraft.yaml +++ b/snapcraft.yaml @@ -1,5 +1,5 @@ name: killport -version: "0.8.0" +version: "0.9.0" summary: A CLI tool to kill processes using specified ports description: | Killport is a command-line utility to find and kill processes listening on specified ports.