Skip to content

Commit

Permalink
Update JS generation commands
Browse files Browse the repository at this point in the history
Its ugly. It should not be in the README.md. But it works and it fix the problem.
  • Loading branch information
not-fl3 committed Sep 12, 2024
1 parent c940518 commit 8571468
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions js/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,16 @@ mq_js_bundle.js contains most common macroquad's dependencies JS code in one JS
`mq_js_bundle.js` was made by:

```bash
#!/bin/bash

function wrap_js {
echo "(function () {" >> mq_js_bundle.js
cat $1 >> mq_js_bundle.js
echo "}());" >> mq_js_bundle.js
}
cat ../../miniquad/js/gl.js > mq_js_bundle.js
cat ../../quad-snd/js/audio.js >> mq_js_bundle.js
cat ../../sapp-jsutils/js/sapp_jsutils.js >> mq_js_bundle.js
cat ../../quad-net/js/quad-net.js >> mq_js_bundle.js
minify mq_js_bundle.js
wrap_js ../../quad-snd/js/audio.js
wrap_js ../../sapp-jsutils/js/sapp_jsutils.js
wrap_js ../../quad-net/js/quad-net.js
minify mq_js_bundle.js > mq_js_bundle2.js
```

0 comments on commit 8571468

Please sign in to comment.