wails icon indicating copy to clipboard operation
wails copied to clipboard

windows 11 report virus when wails build

Open mllw opened this issue 1 year ago • 7 comments

Description

wails build DEB | Using go webview2loader Wails CLI v2.6.0

Build Options

Platform(s) | windows/amd64 Compiler | D:\apps\Go\bin\go.exe Skip Bindings | false Build Mode | production Devtools | false Frontend Directory | E:\workspace\golang\waterfaute\frontend Obfuscated | false Skip Frontend | false Compress | false Package | true Clean Bin Dir | false LDFlags | Tags | [] Race Detector | false

Building target: windows/amd64

• Generating bindings: ERROR
changeme: go build changeme: open C:\Users\jq\AppData\Local\Temp\go-build664362386\b001\exe\a.out.exe: Operation did not complete successfully because the file contains a virus or potentially unwanted software.

      exit status 1

ERROR
changeme: go build changeme: open C:\Users\jq\AppData\Local\Temp\go-build664362386\b001\exe\a.out.exe: Operation did not complete successfully because the file contains a virus or potentially unwanted software.

      exit status 1

To Reproduce

run wails build

Expected behaviour

success build

Screenshots

No response

Attempted Fixes

No response

System Details

Microsoft Windows [版本 10.0.22621.2428]

Additional context

No response

mllw avatar Nov 09 '23 12:11 mllw

Personally I've found the details in wails.json can make a difference, I'll grab my work config and do some testing and report back.

PylotLight avatar Nov 09 '23 13:11 PylotLight

I am running into this issue as well, out of nowhere today. Also using Windows 11.

Ggpsv avatar Nov 15 '23 19:11 Ggpsv

Yes, I had it with Task as well last night. This isn't a Wails issue. This has been covered many times.

leaanthony avatar Nov 15 '23 21:11 leaanthony

@leaanthony So I suspected, thank you. In your experience, is it a false positive? It went away as I restarted my machine, though I did ran Defender just in case.

Ggpsv avatar Nov 15 '23 21:11 Ggpsv

I can't speak for your application but in general, Go applications can get flagged by antivirus vendors because they have poor virus detection mechanisms. Sign your app and it's usually fine. Yeah, I don't get the logic either.

leaanthony avatar Nov 15 '23 21:11 leaanthony

step by step:

1、wails init -n wailstest

DEB | Using go webview2loader Wails CLI v2.6.0

Initialising Project 'wailstest'

Project Name | wailstest Project Directory | e:\workspace\golang\wailstest\wailstest Template | Vanilla + Vite Template Source | https://wails.io

Initialised project 'wailstest' in 21.37s.

♥ If Wails is useful to you or your company, please consider sponsoring the project: https://github.com/sponsors/leaanthony

2、 wails build DEB | Using go webview2loader Wails CLI v2.6.0

Build Options

Platform(s) | windows/amd64 Compiler | D:\apps\Go\bin\go.exe Skip Bindings | false Build Mode | production Devtools | false Frontend Directory | e:\workspace\golang\wailstest\wailstest\frontend Obfuscated | false Skip Frontend | false Compress | false Package | true Clean Bin Dir | false LDFlags | Tags | [] Race Detector | false

Building target: windows/amd64

• Generating bindings: Done. • Installing frontend dependencies: Done. • Compiling frontend: Done. • Generating application assets: Done. • Compiling application: Done. INFO Wails is now using the new Go WebView2Loader. If you encounter any issues with it, please report them to https://github.com/wailsapp/wails/issues/2004. You could also use the old legacy loader with -tags native_webview2loader, but keep in mind this will be deprecated in the near future. Built 'e:\workspace\golang\wailstest\wailstest\build\bin\wailstest.exe' in 13.651s.

♥ If Wails is useful to you or your company, please consider sponsoring the project: https://github.com/sponsors/leaanthony

3、Distribution to other users I use dingtalk to send to others Antivirus software is triggered at this step 6261C585-F61E-4e55-B3FB-EC6A44F9D5FD 983C9382-D325-4e60-8146-D88BC1CA732F

mllw avatar Nov 16 '23 01:11 mllw

See answer above. Locking thread as there's nothing to add.

leaanthony avatar Nov 16 '23 01:11 leaanthony