5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-03 16:21:11 +08:00

Merge pull request #955 from letheanVPN/generated-project-helper

Helper NPM scripts for developers working on a Wails GUI project
This commit is contained in:
Lea Anthony 2021-11-23 03:50:29 -08:00 committed by GitHub
commit f5f89c31eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,12 @@
{
"private": true,
"scripts": {
"postinstall": "npm run setup && cd frontend && npm install",
"build": "wails build --clean",
"build:macos": "npm run build -- --platform darwin/universal",
"build:macos-arm": "npm run build -- --platform darwin/arm64",
"build:macos-intel": "npm run build -- --platform darwin",
"build:windows": "npm run build -- --platform windows/amd64",
"setup": "go install github.com/wailsapp/wails/v2/cmd/wails@latest"
}
}