Skip to content

Commit

Permalink
Fix windows build error
Browse files Browse the repository at this point in the history
  • Loading branch information
fayeed committed Nov 1, 2022
1 parent 12ee8bf commit 28a31ed
Show file tree
Hide file tree
Showing 2 changed files with 291 additions and 262 deletions.
12 changes: 10 additions & 2 deletions host/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,17 @@
"package-windows": "pkg . -o dist/ad4m-windows-x64 -t node16-windows-x64 --public-packages \"*\"",
"release-macos": "yarn run build && yarn run package-macos",
"dev": "yarn run build && node build/cli.js",
"postinstall": "rm -rf node_modules/ipfs-core-types/src && ln -sf node_modules/@perspect3vism/ad4m-executor/default.nix default.nix",
"postinstall": "cross-os cleanup",
"build-all-linux": "yarn run build && yarn run build-holochain && yarn run relink-holochain-linux && yarn run copy-swipl && yarn run relink-swipl-linux && yarn run package-linux",
"build-all-macos": "yarn run build && yarn run build-holochain && yarn run relink-holochain-macos && yarn run copy-swipl && yarn run relink-swipl-macos && yarn run package-macos"
},
"cross-os": {
"cleanup": {
"darwin": "rm -rf node_modules/ipfs-core-types/src && ln -sf node_modules/@perspect3vism/ad4m-executor/default.nix default.nix",
"win32": "rm -rf node_modules/ipfs-core-types/src",
"linux": "echo \"hello\" && rm -rf node_modules/ipfs-core-types/src && ln -sf node_modules/@perspect3vism/ad4m-executor/default.nix default.nix"
}
},
"pkg": {
"scripts": "build/**/*",
"assets": [
Expand Down Expand Up @@ -62,18 +69,19 @@
"esm": "^3.2.25",
"fs-extra": "^9.1.0",
"get-port": "5.1.1",
"graphql-ws": "^5.9.1",
"node-fetch": "^2.5.11",
"readline-sync": "^1.4.10",
"unzipper": "^0.10.11",
"wget-improved": "^3.3.1",
"ws": "^8.8.0",
"graphql-ws": "^5.9.1",
"yargs": "^17.3.1"
},
"devDependencies": {
"@types/node": "^17.0.8",
"@types/yargs": "^17.0.8",
"@vercel/ncc": "^0.33.1",
"cross-os": "^1.5.0",
"pkg": "^5.5.2",
"typescript": "^4.6.2"
}
Expand Down
Loading

0 comments on commit 28a31ed

Please sign in to comment.