Skip to content

Commit fefdd93

Browse files
bundleapps.sh: take actual version number
1 parent 9923684 commit fefdd93

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/bundleapps.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ mkdir -p appstore_backend/bundled_apps
33
ls -1 internal_filesystem/apps | while read appdir; do
44
echo "Bundling $appdir"
55
pushd internal_filesystem/apps/"$appdir"
6-
# TODO: get and append version from manifest instead of hardcoding:
7-
mpkname="../../../appstore_backend/bundled_apps/"$appdir"_0.0.1.mpk"
6+
version=$( grep "^Version:" META-INF/MANIFEST.MF | cut -d " " -f 2)
7+
mpkname="../../../appstore_backend/bundled_apps/"$appdir"_"$version".mpk"
8+
echo "Creating $mpkname"
89
zip -r0 "$mpkname" .
910
cp res/mipmap-mdpi/icon_64x64.png "$mpkname"_icon_64x64.png
1011
popd

0 commit comments

Comments
 (0)