scratchjr/bin/bundle-compile.sh
Chris Garrity f6dbdd4fe7 Fix Android scaling
On some newer android devices the screen tranform matrix already includes the current scale. i.e. the matrix looks like:
```
{
    a: scaleX,
    b: 0,
    c: 0,
    d: scaleY,
    e: offsetX,
    f: offsetY
}
```
where both `scaleX`, and `scaleY` are the current zoom. On other devices the scale is always `1`, and we need to apply our own scaling.

I also added the code to automatically allow webview debgging if the buildType is debuggable.  Also, note that you can switch which line is commented out in bundle-compile.sh to get unobfuscated javascript.
2020-01-15 08:42:11 -05:00

4 lines
172 B
Bash
Executable file

#!/bin/sh
cd ..;
/usr/local/bin/node ./node_modules/webpack/bin/webpack.js --mode=production
# /usr/local/bin/node ./node_modules/webpack/bin/webpack.js --mode=development