Support test packaging process

This commit is contained in:
Tw93
2025-08-14 20:51:42 +08:00
parent b2072b5e80
commit f76d567895
10 changed files with 640 additions and 29 deletions

View File

@@ -31,7 +31,7 @@
"scripts": {
"start": "npm run dev",
"dev": "npm run tauri dev",
"build": "npm run tauri build --release",
"build": "npm run tauri build --",
"build:debug": "npm run tauri build -- --debug",
"build:mac": "npm run tauri build -- --target universal-apple-darwin",
"build:config": "chmod +x script/app_config.mjs && node script/app_config.mjs",
@@ -40,7 +40,7 @@
"cli": "rollup -c rollup.config.js --watch",
"cli:dev": "cross-env NODE_ENV=development rollup -c rollup.config.js -w",
"cli:build": "cross-env NODE_ENV=production rollup -c rollup.config.js",
"test": "npm run cli:build && node tests/index.js",
"test": "npm run cli:build && PAKE_CREATE_APP=1 node tests/index.js",
"format": "npx prettier --write . --ignore-unknown && cd src-tauri && cargo fmt --verbose",
"hooks:setup": "bash .githooks/setup.sh",
"postinstall": "npm run hooks:setup",