shrink sfx some more

This commit is contained in:
ed 2020-05-12 00:26:40 +02:00
parent 866c74c841
commit 2a6a3aedd0
2 changed files with 5 additions and 4 deletions

View file

@ -71,7 +71,7 @@ cd sfx
tar -zxf $f tar -zxf $f
mv Jinja2-*/jinja2 . mv Jinja2-*/jinja2 .
rm -rf Jinja2-* jinja2/testsuite rm -rf Jinja2-* jinja2/testsuite jinja2/tests.py
# msys2 tar is bad, make the best of it # msys2 tar is bad, make the best of it
echo collecting source echo collecting source
@ -123,8 +123,9 @@ done
} }
# up2k goes from 28k to 22k laff # up2k goes from 28k to 22k laff
for f in copyparty/web/*.js; do echo entabbening
unexpand.exe -t 4 --first-only <"$f" >t find | grep -E '\.(js|css|html|py)$' | while IFS= read -r f; do
unexpand -t 4 --first-only <"$f" >t
tmv "$f" tmv "$f"
done done

View file

@ -260,7 +260,7 @@ def read_py(binp):
def get_pys(): def get_pys():
ver, chk = read_py(sys.executable) ver, chk = read_py(sys.executable)
if chk: if chk or PY2:
return [[chk, ver, sys.executable]] return [[chk, ver, sys.executable]]
hits = {sys.executable.lower(): sys.executable} hits = {sys.executable.lower(): sys.executable}