fix: env, native deps

This commit is contained in:
ThaUnknown 2023-06-04 23:28:55 +02:00
parent e94db5997f
commit 8565c1a9ce
2 changed files with 15 additions and 3 deletions

View file

@ -6,9 +6,9 @@
"main": "build/main.js",
"homepage": "https://github.com/ThaUnknown/miru#readme",
"scripts": {
"start": "SET NODE_ENV=development & concurrently --kill-others \"npm run web:watch\" \"npm run electron:start\"",
"start": "cross-env NODE_ENV=development concurrently --kill-others \"npm run web:watch\" \"npm run electron:start\"",
"web:watch": "webpack serve",
"web:build": "SET NODE_ENV=production & webpack build",
"web:build": "cross-env NODE_ENV=production webpack build",
"electron:start": "electron ./build/main.js",
"build": "npm run web:build && electron-builder",
"publish": "npm run web:build && electron-builder -p always"
@ -16,6 +16,7 @@
"devDependencies": {
"concurrently": "^7.6.0",
"copy-webpack-plugin": "^11.0.0",
"cross-env": "^7.0.3",
"css-loader": "^6.8.1",
"electron": "23.1.0",
"electron-builder": "^23.6.0",
@ -65,7 +66,8 @@
"appId": "com.github.thaunknown.miru",
"productName": "Miru",
"files": [
"build/**/*"
"build/**/*",
"!node_modules/**/*.{mk,a,o,h}"
],
"mac": {
"artifactName": "${os}-${name}-${version}.${ext}",

View file

@ -6,6 +6,7 @@ specifiers:
browser-event-target-emitter: ^1.0.0
concurrently: ^7.6.0
copy-webpack-plugin: ^11.0.0
cross-env: ^7.0.3
css-loader: ^6.8.1
discord-rpc: 4.0.1
ebml-iterator: ^1.0.2
@ -52,6 +53,7 @@ dependencies:
devDependencies:
concurrently: 7.6.0
copy-webpack-plugin: 11.0.0_webpack@5.85.0
cross-env: 7.0.3
css-loader: 6.8.1_webpack@5.85.0
electron: 23.1.0
electron-builder: 23.6.0
@ -1513,6 +1515,14 @@ packages:
uint8-util: 2.1.9
dev: false
/cross-env/7.0.3:
resolution: {integrity: sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==}
engines: {node: '>=10.14', npm: '>=6', yarn: '>=1'}
hasBin: true
dependencies:
cross-spawn: 7.0.3
dev: true
/cross-fetch-ponyfill/1.0.3:
resolution: {integrity: sha512-uOBkDhUAGAbx/FEzNKkOfx3w57H8xReBBXoZvUnOKTI0FW0Xvrj3GrYv2iZXUqlffC1LMGfQzhmBM/ke+6eTDA==}
dependencies: