wailsapp / wails

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

can't run it on windows 2022 datacenter #3069

Open songdemei opened 9 months ago

songdemei commented 9 months ago

Description

Hi: When I build my app with windows/amd64 platform on mac os ,release mode When I run it on windows 2022 datacenter version ,can't into main window,it open a page like IIS default page. I must build with debug mode ,then run it and refresh page ,they can into my home page. Why?

To Reproduce

1.build like this : wails build -platform=windows/amd64 -webview2=embed 2.run on windows 2022 datacenter platform

3.open it

Expected behaviour

open my home page

Screenshots

image

Attempted Fixes

No response

System Details

Wails CLI v2.3.1

Scanning system - Please wait (this may take a long time)...Done.

# System

OS           | MacOS   
Version      | 10.14.6 
ID           | 18G9323 
Go Version   | go1.19.4
Platform     | darwin  
Architecture | amd64   

# Wails

Version | v2.3.1

# Dependencies

Dependency                | Package Name | Status    | Version 
Xcode command line tools  | N/A          | Installed | 2354    
npm                       | N/A          | Installed | 10.2.3  
*Xcode                    | N/A          | Available |         
*upx                      | N/A          | Installed | upx 3.96
*nsis                     | N/A          | Available |         
* - Optional Dependency

# Diagnosis

Your system is ready for Wails development!
Optional package(s) installation details: 
  - Xcode: Available at https://apps.apple.com/us/app/xcode/id497799835
  - nsis : More info at https://wails.io/docs/guides/windows-installer/

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

Additional context

No response

stffabi commented 9 months ago

Thanks for using Wails and reporting this.

The version 2.3.1 of Wails is quite old, that's why I suspect you are seeing issue #2521. Please upgrade to at least v2.4.1 which contains the fix #2496.