You've already forked MicroPythonOS
mirror of
https://github.com/m5stack/MicroPythonOS.git
synced 2026-05-20 11:51:27 -07:00
bundleapps.sh: take actual version number
This commit is contained in:
@@ -3,8 +3,9 @@ mkdir -p appstore_backend/bundled_apps
|
||||
ls -1 internal_filesystem/apps | while read appdir; do
|
||||
echo "Bundling $appdir"
|
||||
pushd internal_filesystem/apps/"$appdir"
|
||||
# TODO: get and append version from manifest instead of hardcoding:
|
||||
mpkname="../../../appstore_backend/bundled_apps/"$appdir"_0.0.1.mpk"
|
||||
version=$( grep "^Version:" META-INF/MANIFEST.MF | cut -d " " -f 2)
|
||||
mpkname="../../../appstore_backend/bundled_apps/"$appdir"_"$version".mpk"
|
||||
echo "Creating $mpkname"
|
||||
zip -r0 "$mpkname" .
|
||||
cp res/mipmap-mdpi/icon_64x64.png "$mpkname"_icon_64x64.png
|
||||
popd
|
||||
|
||||
Reference in New Issue
Block a user