pack: fix run script error
This commit is contained in:
1 parent
84c02f894e
commit
d50c7d7011
1 file changed
+7
-6
+7
-6
@@ -4,12 +4,12 @@
|
|||||||
"description": "Quick Start Templates for Vite + Vue 3 + Electron",
|
"description": "Quick Start Templates for Vite + Vue 3 + Electron",
|
||||||
"main": "dist/main/index.js",
|
"main": "dist/main/index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "NODE_ENV=development vite",
|
"dev": "cross-env NODE_ENV=development vite",
|
||||||
"build": "NODE_ENV=production vite build && electron-builder -wml",
|
"build": "cross-env NODE_ENV=production vite build && electron-builder -wml",
|
||||||
"build:dir": "NODE_ENV=production vite build && electron-builder --dir",
|
"build:dir": "cross-env NODE_ENV=production vite build && electron-builder --dir",
|
||||||
"build:mac": "NODE_ENV=production vite build && CSC_IDENTITY_AUTO_DISCOVERY=false electron-builder --mac",
|
"build:mac": "cross-env NODE_ENV=production vite build && CSC_IDENTITY_AUTO_DISCOVERY=false electron-builder --mac",
|
||||||
"build:linux": "NODE_ENV=production vite build && electron-builder --linux",
|
"build:linux": "cross-env NODE_ENV=production vite build && electron-builder --linux",
|
||||||
"build:win": "NODE_ENV=production vite build && electron-builder --windows",
|
"build:win": "cross-env NODE_ENV=production vite build && electron-builder --windows",
|
||||||
"lint": "eslint --ext .js,.vue -f ./node_modules/eslint-friendly-formatter src",
|
"lint": "eslint --ext .js,.vue -f ./node_modules/eslint-friendly-formatter src",
|
||||||
"lint:fix": "eslint --ext .js,.vue -f ./node_modules/eslint-friendly-formatter --fix src",
|
"lint:fix": "eslint --ext .js,.vue -f ./node_modules/eslint-friendly-formatter --fix src",
|
||||||
"postinstall": "npm run lint:fix && electron-builder install-app-deps"
|
"postinstall": "npm run lint:fix && electron-builder install-app-deps"
|
||||||
@@ -34,6 +34,7 @@
|
|||||||
"@babel/preset-env": "^7.19.1",
|
"@babel/preset-env": "^7.19.1",
|
||||||
"@vitejs/plugin-vue": "^3.1.2",
|
"@vitejs/plugin-vue": "^3.1.2",
|
||||||
"@vue/babel-plugin-jsx": "^1.1.1",
|
"@vue/babel-plugin-jsx": "^1.1.1",
|
||||||
|
"cross-env": "^7.0.3",
|
||||||
"electron": "^21.0.0",
|
"electron": "^21.0.0",
|
||||||
"electron-builder": "^23.3.3",
|
"electron-builder": "^23.3.3",
|
||||||
"eslint": "^8.24.0",
|
"eslint": "^8.24.0",
|
||||||
|
|||||||
Reference in new issue
Block a user