fix build, fix electron

This commit is contained in:
Tom (plebeius.eth)
2025-05-22 13:15:40 +02:00
parent c4978028c0
commit c192e526f5
10 changed files with 140 additions and 51 deletions
+13 -9
View File
@@ -49,17 +49,18 @@
"scripts": {
"start": "vite",
"build": "cross-env PUBLIC_URL=./ GENERATE_SOURCEMAP=false vite build",
"build:preload": "vite build --config electron/vite.preload.config.js",
"build-netlify": "cross-env NODE_OPTIONS=\"--max_old_space_size=4096\" PUBLIC_URL=./ GENERATE_SOURCEMAP=true VITE_COMMIT_REF=$COMMIT_REF CI='' vite build",
"test": "vitest",
"preview": "vite preview",
"analyze-bundle": "cross-env PUBLIC_URL=./ GENERATE_SOURCEMAP=true vite build && source-map-explorer 'build/assets/*.js'",
"electron": "yarn electron:before && electron .",
"analyze-bundle": "cross-env PUBLIC_URL=./ GENERATE_SOURCEMAP=true vite build && npx source-map-explorer 'build/assets/*.js'",
"electron": "yarn build:preload && cross-env ELECTRON_IS_DEV=1 yarn electron:before && cross-env ELECTRON_IS_DEV=1 electron .",
"electron:no-delete-data": "yarn electron:before:download-ipfs && electron .",
"electron:start": "concurrently \"cross-env BROWSER=none yarn start\" \"wait-on http://localhost:3000 && yarn electron\"",
"electron:start:no-delete-data": "concurrently \"cross-env BROWSER=none yarn start\" \"wait-on http://localhost:3000 && yarn electron:no-delete-data\"",
"electron:build:linux": "yarn build && electron-rebuild && electron-builder build --publish never -l",
"electron:build:windows": "yarn build && yarn electron-rebuild && electron-builder build --publish never -w",
"electron:build:mac": "yarn build && yarn electron-rebuild && electron-builder build --publish never -m",
"electron:build:linux": "yarn build && yarn build:preload && electron-rebuild && electron-builder build --publish never -l",
"electron:build:windows": "yarn build && yarn build:preload && yarn electron-rebuild && electron-builder build --publish never -w",
"electron:build:mac": "yarn build && yarn build:preload && yarn electron-rebuild && electron-builder build --publish never -m",
"electron:before": "yarn electron-rebuild && yarn electron:before:download-ipfs && yarn electron:before:delete-data",
"electron:before:download-ipfs": "node electron/download-ipfs",
"electron:before:delete-data": "rimraf .plebbit",
@@ -83,9 +84,9 @@
]
},
"devDependencies": {
"@capacitor/android": "5.0.0",
"@capacitor/cli": "5.0.0",
"@capacitor/core": "5.0.0",
"@capacitor/android": "7.2.0",
"@capacitor/cli": "7.2.0",
"@capacitor/core": "7.2.0",
"@electron/rebuild": "4.0.0",
"@types/memoizee": "0.4.9",
"@typescript-eslint/eslint-plugin": "8.29.0",
@@ -112,12 +113,15 @@
"isomorphic-fetch": "3.0.0",
"lint-staged": "12.3.8",
"stream-browserify": "3.0.0",
"vite": "6.2.0",
"vite": "6.2.1",
"vite-plugin-eslint": "1.8.1",
"vite-plugin-node-polyfills": "0.23.0",
"vite-plugin-pwa": "0.21.1",
"wait-on": "7.0.1"
},
"resolutions": {
"@bonfida/spl-name-service": "3.0.0"
},
"main": "electron/main.js",
"build": {
"appId": "plebchan.desktop",