Skip to content

Use all your internet connections at once on Windows, macOS, Linux and Android: per-connection load balancing over Wi-Fi, Ethernet, mobile data and phone tethers

Windows: version info, icon and manifest in the exes (#27)

Rohit Mahto1b5f6ddc7c62
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 54854ee..28a84ef 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -100,10 +100,12 @@ jobs:
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
+ - run: choco install innosetup --no-progress -y
+ # The release build itself, so the smoke test runs the exe that ships.
- shell: pwsh
run: |
- scripts/fetch-wintun.ps1 -OutDir dist
- go build -o dist/net-merge.exe ./cmd/net-merge
+ scripts/build.ps1
+ if ((Get-Item dist\net-merge-tray.exe).VersionInfo.ProductName -ne 'net-merge') { throw 'net-merge-tray.exe has no version info' }
go build -o dist/winfakeup.exe ./scripts/winfakeup
scripts/windows-smoke.ps1 dist\net-merge.exe
diff --git a/.gitignore b/.gitignore
index 58c3d8d..b8b3c86 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,3 +2,4 @@
wintun.dll
dist/
result
+*.syso
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 3b70057..2f12be8 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,11 @@ entry here before pushing a version tag.
## [Unreleased]
+### Fixed
+- **Windows: fewer antivirus false positives.** `net-merge.exe` and `net-merge-tray.exe` now carry a
+ name, version, icon and manifest. Bare unsigned Go programs are what antivirus machine-learning models
+ flag (Microsoft Defender's `Trojan:Win32/Wacatac.B!ml` on VirusTotal).
+
## [0.3.2] - 2026-10-19
### Fixed
diff --git a/scripts/build.ps1 b/scripts/build.ps1
index df23b3f..d8de590 100644
--- a/scripts/build.ps1
+++ b/scripts/build.ps1
@@ -22,9 +22,18 @@ New-Item -ItemType Directory dist | Out-Null
Invoke-Native 'go vet' { go vet ./... }
Invoke-Native 'go test' { go test ./... }
+# Version info, icon and manifest for each exe: antivirus ML models flag bare unsigned Go exes
+# (Microsoft's Trojan:Win32/Wacatac.B!ml).
+function New-Resources([string]$Exe, [string]$Description) {
+ Invoke-Native "resources $Exe" { go run github.com/tc-hib/[email protected] simply --arch amd64 --out cmd\net-merge\rsrc --icon packaging\icons\hicolor\256x256\apps\net-merge.png --manifest cli --product-name net-merge --file-description $Description --original-filename $Exe --product-version $Version --file-version $Version --copyright 'net-merge contributors' }
+}
+
# One source, two exes: a console CLI, and a windowless build that defaults to the tray.
+New-Resources 'net-merge.exe' 'net-merge'
Invoke-Native 'build cli' { go build -trimpath -ldflags "-s -w -X main.version=$Version" -o dist\net-merge.exe .\cmd\net-merge }
+New-Resources 'net-merge-tray.exe' 'net-merge tray'
Invoke-Native 'build tray' { go build -trimpath -ldflags "-s -w -H=windowsgui -X main.defaultCmd=tray -X main.version=$Version" -o dist\net-merge-tray.exe .\cmd\net-merge }
+Remove-Item cmd\net-merge\rsrc_windows_amd64.syso
Invoke-Native 'icon' { .\dist\net-merge.exe _icon dist\net-merge.ico }
& "$PSScriptRoot\fetch-wintun.ps1" -OutDir dist