mirror of
https://github.com/bettercap/bettercap
synced 2025-08-20 05:23:19 -07:00
fix: fixed windows build via msys2/setup-msys2@v2
This commit is contained in:
parent
9266ee942f
commit
e1e8a0b78d
2 changed files with 8 additions and 13 deletions
19
.github/workflows/build-and-deploy.yml
vendored
19
.github/workflows/build-and-deploy.yml
vendored
|
@ -61,25 +61,20 @@ jobs:
|
||||||
choco install openssl.light -y
|
choco install openssl.light -y
|
||||||
choco install make -y
|
choco install make -y
|
||||||
choco install 7zip -y
|
choco install 7zip -y
|
||||||
choco install pkgconfiglite -y
|
|
||||||
mkdir C:\pkg-config
|
|
||||||
choco install zadig -y
|
choco install zadig -y
|
||||||
curl -L "https://github.com/libusb/libusb/releases/download/v1.0.24/libusb-1.0.24.7z" -o "C:\libusb.7z"
|
|
||||||
7z x -y "C:\libusb.7z" -o"C:\libusb"
|
|
||||||
curl -L "https://www.winpcap.org/install/bin/WpdPack_4_1_2.zip" -o "C:\wpcap-sdk.zip"
|
curl -L "https://www.winpcap.org/install/bin/WpdPack_4_1_2.zip" -o "C:\wpcap-sdk.zip"
|
||||||
7z x -y "C:\wpcap-sdk.zip" -o"C:\winpcap"
|
7z x -y "C:\wpcap-sdk.zip" -o"C:\winpcap"
|
||||||
copy builder\libusb.pc C:\pkg-config\libusb.pc
|
|
||||||
copy builder\libusb.pc C:\pkg-config\libusb-1.0.pc
|
|
||||||
|
|
||||||
- name: Build on Windows
|
- name: Install libusb via mingw
|
||||||
if: ${{ matrix.os == 'windows-latest' }}
|
if: ${{ matrix.os == 'windows-latest' }}
|
||||||
run: |
|
uses: msys2/setup-msys2@v2
|
||||||
env PKG_CONFIG_PATH=C:\pkg-config\ make -e TARGET="${{ env.OUTPUT }}"
|
with:
|
||||||
|
install: |-
|
||||||
|
mingw64/mingw-w64-x86_64-libusb
|
||||||
|
mingw64/mingw-w64-x86_64-pkg-config
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
if: ${{ matrix.os != 'windows-latest' }}
|
run: make -e TARGET="${{ env.OUTPUT }}"
|
||||||
run: |
|
|
||||||
make -e TARGET="${{ env.OUTPUT }}"
|
|
||||||
|
|
||||||
- name: Verify Build
|
- name: Verify Build
|
||||||
run: |
|
run: |
|
||||||
|
|
2
.github/workflows/test-on-windows.yml
vendored
2
.github/workflows/test-on-windows.yml
vendored
|
@ -24,7 +24,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
go-version: ${{ matrix.go-version }}
|
go-version: ${{ matrix.go-version }}
|
||||||
|
|
||||||
- name: Install libus via mingw
|
- name: Install libusb via mingw
|
||||||
uses: msys2/setup-msys2@v2
|
uses: msys2/setup-msys2@v2
|
||||||
with:
|
with:
|
||||||
install: |-
|
install: |-
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue