wailsapp / wails

Create beautiful applications using Go
https://wails.io
MIT License
25.61k stars 1.24k forks source link

Windows 11 家庭中文版编译成功但是应用打开后没有vue部分的内容,只有main.go里设置的效果 #2781

Open yonomo opened 1 year ago

yonomo commented 1 year ago

Description

1、用的Windows 11 家庭中文版,但是wails doctor 检测为Windows 10 Home China 2、build成功后,exe文件打开后没有预期的内容

To Reproduce

PS D:\test\wails\test2\helloworld> wails build DEB | Using go webview2loader Wails CLI v2.5.1

Build Options

Platform(s) | windows/amd64 Compiler | D:\devsoft\go\bin\go.exe Skip Bindings | false Build Mode | production Frontend Directory | D:\test\wails\test2\helloworld\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 'D:\test\wails\test2\helloworld\build\bin\helloworld.exe' in 9.621s.

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

Expected behaviour

/

Screenshots

No response

Attempted Fixes

No response

System Details

PS D:\test\wails\test2\helloworld> wails doctor
DEB | Using go webview2loader
Wails CLI v2.5.1

 SUCCESS  Done.

# System

OS           | Windows 10 Home China
Version      | 2009 (Build: 22621)  
ID           | 22H2
Go Version   | go1.20.5
Platform     | windows
Architecture | amd64

# Wails

Version | v2.5.1

# Dependencies

Dependency | Package Name | Status    | Version      
WebView2   | N/A          | Installed | 114.0.1823.82
Nodejs     | N/A          | Installed | 20.4.0       
npm        | N/A          | Installed | 9.7.2        
*upx       | N/A          | Installed | upx 4.0.2    
*nsis      | N/A          | Installed | v3.09        
* - Optional Dependency

# Diagnosis

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

Additional context

No response

leaanthony commented 1 year ago

The Windows 10 string is what Windows reports as the OS. Sounds crazy, but it's true.

XudongLiu commented 4 months ago

YES. I have the same problem, and dev is alway OK, but after building, the app can not run @yonomo Have you solved the problem?