Fix the issue of slow startup when using wails3 dev

This commit is contained in:
zyj
2025-11-27 16:19:22 +08:00
parent 0abc387c23
commit dec0ad4cb5
2 changed files with 38 additions and 12 deletions

View File

@@ -5,19 +5,19 @@ version: '3'
# This information is used to generate the build assets.
info:
companyName: "My Company" # The name of the company
productName: "My Product" # The name of the application
productIdentifier: "com.mycompany.myproduct" # The unique product identifier
description: "A program that does X" # The application description
copyright: "(c) 2025, My Company" # Copyright text
comments: "Some Product Comments" # Comments
companyName: "Twitter Account" # The name of the company
productName: "Twitter Account Manager" # The name of the application
productIdentifier: "com.twitteraccount.app" # The unique product identifier
description: "Twitter account management application" # The application description
copyright: "(c) 2025, Twitter Account" # Copyright text
comments: "Twitter Account Manager" # Comments
version: "0.0.1" # The application version
# Dev mode configuration
dev_mode:
root_path: .
log_level: warn
debounce: 1000
debounce: 300
ignore:
dir:
- .git
@@ -32,12 +32,10 @@ dev_mode:
- "*.go"
git_ignore: true
executes:
- cmd: wails3 task common:install:frontend:deps
type: once
- cmd: wails3 task common:dev:frontend
type: background
- cmd: go mod tidy
type: blocking
type: background # 改回 background让它持续运行
- cmd: powershell.exe -ExecutionPolicy Bypass -File build/wait.ps1 -Seconds 15
type: blocking # 等待 15 秒让前端完全启动
- cmd: wails3 task build
type: blocking
- cmd: wails3 task run