Comments (1)
ah my bad; when minify is empty --count "$MINIFY" --script
becomes --count "" --script
, and the argparser (correctly) wonders "uhhh why did you pass me an empty string there in the middle?"
removing the quotes works as expected:
#!/usr/bin/env bash
# usage:
# ./compress.sh # build + minify
# ./compress.sh 1 # build only
MINIFY="--minify"
if [[ -n "$1" ]]; then
echo "skipping minification..."
MINIFY=""
fi
/w/shrinko8/shrinko8.py game.p8 tower.p8.png --lint --count $MINIFY --script compress_combine.py
whoops -- I should have looked into this more before opening an issue!
from shrinko8.
Related Issues (20)
- Minification issue with peek shortcut HOT 4
- String minification with extra symbols unexpected HOT 6
- unhandled exception HOT 2
- Feature proposal: annotate source with token/character counts for functions HOT 6
- very slow compression (10s) HOT 1
- Compress fails on binary string HOT 2
- unknown expression: `x=?y`
- Reported compressed size in shrinko8 does not match pico8 HOT 6
- choosing varnames in output HOT 10
- bug: preserve for-loop / function parameter HOT 2
- README preserve example doesnt work HOT 1
- bad output for shorthand print with `--focus-compressed --no-minify-spaces` HOT 1
- support `--label` for p8 output HOT 3
- Export sprite sheet HOT 2
- Feature Proposal: Find most token (or character) intense parts of code. HOT 2
- Feature Proposal: Constant variables. HOT 3
- -1 => 65535 HOT 1
- shorthand parser bugs in pico8
- long decimal replacements of fractions
- true/false inlining can waste chars HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shrinko8.