Skip to content

Commit 601a577

Browse files
bundle_apps.sh: sort alphabetically and exclude .git
1 parent c981440 commit 601a577

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/bundle_apps.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ echo "[" | tee -a "$outputjson"
2121
# currently, this script doesn't purge unnecessary information from the manifests, such as activities
2222

2323
#for apprepo in internal_filesystem/apps internal_filesystem/builtin/apps; do
24-
for apprepo in internal_filesystem/apps
24+
for apprepo in internal_filesystem/apps; do
2525
echo "Listing apps in $apprepo"
26-
ls -1 "$apprepo" | while read appdir; do
26+
ls -1 "$apprepo" | sort | while read appdir; do
2727
if echo "$blacklist" | grep "$appdir"; then
2828
echo "Skipping $appdir because it's in blacklist $blacklist"
2929
else
@@ -41,7 +41,7 @@ for apprepo in internal_filesystem/apps
4141
echo "Setting file modification times to a fixed value..."
4242
find . -type f -exec touch -t 202501010000.00 {} \;
4343
echo "Creating $mpkname with deterministic file order..."
44-
find . -type f | sort | TZ=CET zip -X -r0 "$mpkname" -@
44+
find . -type f | grep -v ".git/" | sort | TZ=CET zip -X -r0 "$mpkname" -@
4545
cp res/mipmap-mdpi/icon_64x64.png "$thisappdir"/icons/"$appdir"_"$version"_64x64.png
4646
popd
4747
fi

0 commit comments

Comments
 (0)