bundle_apps.sh: sort alphabetically and exclude .git

This commit is contained in:
Thomas Farstrike
2025-11-08 07:09:52 +01:00
parent c9814403ab
commit 601a577ff4
+3 -3
View File
@@ -21,9 +21,9 @@ echo "[" | tee -a "$outputjson"
# currently, this script doesn't purge unnecessary information from the manifests, such as activities
#for apprepo in internal_filesystem/apps internal_filesystem/builtin/apps; do
for apprepo in internal_filesystem/apps
for apprepo in internal_filesystem/apps; do
echo "Listing apps in $apprepo"
ls -1 "$apprepo" | while read appdir; do
ls -1 "$apprepo" | sort | while read appdir; do
if echo "$blacklist" | grep "$appdir"; then
echo "Skipping $appdir because it's in blacklist $blacklist"
else
@@ -41,7 +41,7 @@ for apprepo in internal_filesystem/apps
echo "Setting file modification times to a fixed value..."
find . -type f -exec touch -t 202501010000.00 {} \;
echo "Creating $mpkname with deterministic file order..."
find . -type f | sort | TZ=CET zip -X -r0 "$mpkname" -@
find . -type f | grep -v ".git/" | sort | TZ=CET zip -X -r0 "$mpkname" -@
cp res/mipmap-mdpi/icon_64x64.png "$thisappdir"/icons/"$appdir"_"$version"_64x64.png
popd
fi