Skip to content

Commit

Permalink
Put pkg into devDependencies and add package script
Browse files Browse the repository at this point in the history
  • Loading branch information
majaha committed Feb 5, 2024
1 parent 4b95c6b commit 2bce189
Show file tree
Hide file tree
Showing 4 changed files with 2,384 additions and 29 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,7 @@ jobs:
mv `npm pack` ../cli-build/wasm4-npm.tar.gz
npm ci
npm install -g pkg
pkg --compress Brotli --out-path ../cli-build --targets latest-win,latest-mac,latest-linux .
npm run package
- name: Quick w4 CLI tests
run: |
Expand Down
3 changes: 2 additions & 1 deletion cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ First run `npm install` to install dependencies.

Run `npm link` in this directory to install a `w4` symlink for local development.

You will also want to build the runtime, by running `npm run build` in /runtimes/web.
You will probably also want to build at least one of the runtimes. Follow the instructions
in /runtimes/*/README.md.

We use [pkg](https://www.npmjs.com/package/pkg) to bundle node-free binaries. Make sure that all
file resources that need to be loaded at runtime go in the assets directory in order to be included.
Loading

0 comments on commit 2bce189

Please sign in to comment.