Revamp their useless script

This commit is contained in:
2024-08-21 10:55:45 +02:00
parent a3f2cd608b
commit d348e876a5
2 changed files with 12 additions and 0 deletions
Executable
+12
View File
@@ -0,0 +1,12 @@
#!/bin/sh
EXCLUDE_FILES=LICENSE README.md webxdc.js *~ *.xdc *.sh
MAX_SIZE=100000 # 100 kilobytes
rm application.xdc
zip -9 --recurse-paths application.xdc --exclude $EXCLUDE_FILES -- *
unzip -l application.xdc
# Check package size.
if [ $(wc -c < application.xdc) -ge $MAX_SIZE ]; then
echo "WARNING: package size exceeded 100 kilobytes"
fi
View File