Fix the issue of slow startup when using wails3 dev
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user