mirror of
https://github.com/AlexxIT/go2rtc.git
synced 2025-10-05 08:16:55 +08:00
Remove UPX from Windows builds because antiviruses
This commit is contained in:
@@ -2,11 +2,18 @@
|
|||||||
|
|
||||||
- UPX-3.96 pack broken bin for `linux_mipsel`
|
- UPX-3.96 pack broken bin for `linux_mipsel`
|
||||||
- UPX-3.95 pack broken bin for `mac_amd64`
|
- UPX-3.95 pack broken bin for `mac_amd64`
|
||||||
|
- UPX windows pack is recognised by anti-viruses as malicious
|
||||||
- `aarch64` = `arm64`
|
- `aarch64` = `arm64`
|
||||||
- `armv7` = `arm`
|
- `armv7` = `arm`
|
||||||
|
|
||||||
|
## Virus
|
||||||
|
|
||||||
|
- https://go.dev/doc/faq#virus
|
||||||
|
- https://groups.google.com/g/golang-nuts/c/lPwiWYaApSU
|
||||||
|
|
||||||
## Useful links
|
## Useful links
|
||||||
|
|
||||||
- https://github.com/golang/go/wiki/GoArm
|
- https://github.com/golang/go/wiki/GoArm
|
||||||
- https://gist.github.com/asukakenji/f15ba7e588ac42795f421b48b8aede63
|
- https://gist.github.com/asukakenji/f15ba7e588ac42795f421b48b8aede63
|
||||||
- https://en.wikipedia.org/wiki/AArch64
|
- https://en.wikipedia.org/wiki/AArch64
|
||||||
|
- https://stackoverflow.com/questions/22267189/what-does-the-w-flag-mean-when-passed-in-via-the-ldflags-option-to-the-go-comman
|
||||||
|
@@ -2,13 +2,13 @@
|
|||||||
|
|
||||||
@SET GOOS=windows
|
@SET GOOS=windows
|
||||||
@SET GOARCH=amd64
|
@SET GOARCH=amd64
|
||||||
@SET FILENAME=go2rtc_win64.exe
|
@SET FILENAME=go2rtc_win64.zip
|
||||||
go build -ldflags "-s -w" -trimpath -o %FILENAME% && upx-3.96 %FILENAME%
|
go build -ldflags "-s -w" -trimpath && 7z a -sdel %FILENAME% go2rtc.exe
|
||||||
|
|
||||||
@SET GOOS=windows
|
@SET GOOS=windows
|
||||||
@SET GOARCH=386
|
@SET GOARCH=386
|
||||||
@SET FILENAME=go2rtc_win32.exe
|
@SET FILENAME=go2rtc_win32.zip
|
||||||
go build -ldflags "-s -w" -trimpath -o %FILENAME% && upx-3.96 %FILENAME%
|
go build -ldflags "-s -w" -trimpath && 7z a -sdel %FILENAME% go2rtc.exe
|
||||||
|
|
||||||
@SET GOOS=linux
|
@SET GOOS=linux
|
||||||
@SET GOARCH=amd64
|
@SET GOARCH=amd64
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
@SET GOOS=windows
|
@SET GOOS=windows
|
||||||
@SET GOARCH=amd64
|
@SET GOARCH=amd64
|
||||||
cd ..
|
cd ..
|
||||||
go build -ldflags "-s -w" -trimpath && upx-3.96 go2rtc.exe
|
go build -ldflags "-w -s" -trimpath
|
Reference in New Issue
Block a user