wailsapp / wails

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

About `wails build` and `wails dev` With v2.5.1 #2719

Closed fzdwx closed 1 year ago

fzdwx commented 1 year ago

Description

Executing the program generated by wails build will cause the page to flicker constantly, but running it directly with wails dev is normal.

wails build: qwe

wails dev: qwe

To Reproduce

git clone https://github.com/fzdwx/launcher.git
wails dev

wails build

Expected behaviour

Looking forward to wails build and wails dev behaving consistently.

Screenshots

No response

Attempted Fixes

No response

System Details

$ wails doctor
Wails CLI v2.5.1

 SUCCESS  Done.

# System

OS           | Arch Linux
Version      | Unknown
ID           | arch
Go Version   | go1.20.5
Platform     | linux
Architecture | amd64

# Wails

Version         | v2.5.1
Package Manager | pacman

# Dependencies

Dependency | Package Name | Status    | Version
*docker    | docker       | Installed | 1:24.0.2-1
gcc        | gcc          | Installed | 13.1.1-1
libgtk-3   | gtk3         | Installed | 1:3.24.38-1
libwebkit  | webkit2gtk   | Installed | 2.40.2-1
npm        | npm          | Installed | 8.19.2-2
pkg-config | pkgconf      | Installed | 1.8.1-1
* - 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

fzdwx commented 1 year ago

Seems to be related to the changes made in this line: https://github.com/fzdwx/launcher/commit/8da1cef0341602fa4d7ec0ec0cc744ea8005e32d#diff-08bef502d8d33bea18f88fb6f472577fe30ae672500e5429b089c3e9bd686878L25