mirror of
https://github.com/netbirdio/netbird.git
synced 2024-11-25 17:43:38 +01:00
64f2d295a8
* script to generate syso files * test wireguard-windows driver package * set int log * add windows test * add windows test * verbose bash * use cd * move checkout * exit 0 * removed tty flag * artifact path * fix tags and add cache * fix cache * fix cache * test dir * restore artifacts in the root * try dll file * try dll file * copy dll * typo in copy dll * compile test * checkout first * updated cicd * fix add address issue and gen GUID * psexec typo * accept eula * mod tidy before tests * regular test exec and verbose test with psexec * test all * return WGInterface Interface * use WgIfaceName and timeout after 30 seconds * different ports and validate connect 2 peers * Use time.After for timeout and close interface * Use time.After for testing connect peers * WG Interface struct * Update engine and parse address * refactor Linux create and assignAddress * NewWGIface and configuration methods * Update proxy with interface methods * update up command test * resolve lint warnings * remove psexec test * close copied files * add goos before build * run tests on mac,windows and linux * cache by testing os * run on push * fix indentation * adjust test timeouts * remove parallel flag * mod tidy before test * ignore syso files * removed functions and renamed vars * different IPs for connect peers test * Generate syso with DLL * Single Close method * use port from test constant * test: remove wireguard interfaces after finishing engine test * use load_wgnt_from_rsrc Co-authored-by: braginini <bangvalo@gmail.com>
27 lines
986 B
Bash
27 lines
986 B
Bash
#!/bin/bash
|
|
|
|
ldir=$PWD
|
|
tmp_dir_path=$ldir/.distfiles
|
|
winnt=wireguard-nt.zip
|
|
download_file_path=$tmp_dir_path/$winnt
|
|
download_url=https://download.wireguard.com/wireguard-nt/wireguard-nt-0.10.1.zip
|
|
download_sha=772c0b1463d8d2212716f43f06f4594d880dea4f735165bd68e388fc41b81605
|
|
|
|
function resources_windows(){
|
|
cmd=$1
|
|
arch=$2
|
|
out=$3
|
|
docker run -i --rm -v $PWD:$PWD -w $PWD mstorsjo/llvm-mingw:latest $cmd -O coff -c 65001 -I $tmp_dir_path/wireguard-nt/bin/$arch -i resources.rc -o $out
|
|
}
|
|
|
|
mkdir -p $tmp_dir_path
|
|
curl -L#o $download_file_path.unverified $download_url
|
|
echo "$download_sha $download_file_path.unverified" | sha256sum -c
|
|
mv $download_file_path.unverified $download_file_path
|
|
|
|
mkdir -p .deps
|
|
unzip $download_file_path -d $tmp_dir_path
|
|
|
|
resources_windows i686-w64-mingw32-windres x86 resources_windows_386.syso
|
|
resources_windows aarch64-w64-mingw32-windres arm64 resources_windows_arm64.syso
|
|
resources_windows x86_64-w64-mingw32-windres amd64 resources_windows_amd64.syso |