|
19 | 19 | "releaseDistDebug": "npm run _make_src-node && npm run _createDistReleaseConfig && tauri build --config ./src-tauri/tauri-local.conf.json --debug --verbose", |
20 | 20 | "releaseDistTest": "npm run _make_src-node && npm run _createDistTestReleaseConfig && tauri build --config ./src-tauri/tauri-local.conf.json", |
21 | 21 | "releaseDistTestDebug": "npm run _make_src-node && npm run _createDistTestReleaseConfig && tauri build --config ./src-tauri/tauri-local.conf.json --debug", |
22 | | - "_src-node_npm_install": "cd src-tauri/src-node && npm ci --production && cd ../../ && npm run _src-node_remove_unsupported_bin", |
23 | | - "_src-node_remove_unsupported_bin": "shx rm -f src-tauri/src-node/node_modules/@msgpackr-extract/msgpackr-extract-linux-*/*.musl.node src-tauri/src-node/node_modules/@lmdb/lmdb-linux-*/*.musl.node", |
24 | | - "_make_src-node": "shx rm -rf src-tauri/src-node && shx cp -r ../phoenix/src-node src-tauri/src-node && npm run _src-node_npm_install", |
25 | | - "_make_src-node_debug_dev": "npm run _make_src-node && shx rm -rf src-tauri/target/debug/src-node && shx cp -r src-tauri/src-node src-tauri/target/debug/src-node", |
26 | | - "_ci_make_src-node": "shx rm -rf src-tauri/src-node && shx cp -r phoenix/src-node src-tauri/src-node && npm run _src-node_npm_install", |
| 22 | + "_make_src-node": "node ./src-build/makeSrcNode.js ../phoenix/src-node", |
| 23 | + "_ci_make_src-node": "node ./src-build/makeSrcNode.js phoenix/src-node", |
27 | 24 | "_servePhoenix": "echo -e \"\nEnsure to start phoenix server at http://localhost:8000 for development.\n Follow https://github.com/phcode-dev/phoenix#running-phoenix for instructions.\"", |
28 | 25 | "_ci-clonePhoenixForTests": "npm run _ci-env-warn && node ./src-build/clonePhoenixForTests.js", |
29 | 26 | "_ci-cloneAndBuildPhoenix": "npm run _ci-env-warn && node ./src-build/clonePhoenix.js && cd phoenix && npm ci && npm run build && cd ..", |
30 | 27 | "_ci-release:dev": "npm run _ci-env-warn && npm run _ci-cloneAndBuildPhoenix && cd phoenix && npm run release:dev && cd .. && npm run _ci-createDistReleaseConfig && npm run _ci_make_src-node", |
31 | 28 | "_ci-release:staging": "npm run _ci-env-warn && npm run _ci-cloneAndBuildPhoenix && cd phoenix && npm run release:staging && cd .. && npm run _ci-createDistReleaseConfig && npm run _ci_make_src-node", |
32 | 29 | "_ci-release:prod": "npm run _ci-env-warn && npm run _ci-cloneAndBuildPhoenix && cd phoenix && npm run release:prod && cd .. && npm run _ci-createDistReleaseConfig && npm run _ci_make_src-node", |
33 | 30 | "_ci-update-phcode-build": "node src-build/update-phcode-build.js", |
34 | | - "_watch_src-node": "chokidar '../phoenix/src-node/**/*' --ignore '../phoenix/src-node/node_modules/**/*' -c 'npm run _make_src-node_debug_dev'", |
35 | 31 | "serve": "node src-build/serveForPlatform.js", |
36 | 32 | "_serveTauri": "npm run _servePhoenix && npm run _make_src-node && tauri dev", |
37 | 33 | "_serveElectron": "npm run _servePhoenix && npm run _make_src-node && ./src-electron/node_modules/.bin/electron src-electron/main.js", |
38 | | - "postinstall": "node ./src-build/downloadNodeBinary.js", |
| 34 | + "postinstall": "node ./src-build/downloadNodeBinary.js && node ./src-build/setupElectron.js", |
39 | 35 | "cleanNodeBinary": "node src-build/cleanNodeBinary.js", |
40 | 36 | "installNodeArmDarwin": "node ./src-build/downloadNodeBinary.js '{\"platform\":\"darwin\",\"arch\":\"arm64\"}'", |
41 | 37 | "getPackageVersion": "node ./src-build/getVersion.js" |
|
0 commit comments