You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 070498b
Browse filesBrowse the repository at this point in the historyBrowse files
To bundle your app in an .mpk file, just make an uncompressed .zip file of it, without including the top-level `com.micropythonos.helloworld/` folder.
3
+
To bundle your app in an .mpk file, just make an uncompressed "zip" file of it, without including the top-level `com.micropythonos.helloworld/` folder.
4
+
5
+
It's recommended to make the .mpk file deterministic by:
6
+
- setting the file timestamps to a fixed value
7
+
- sorting the files, so the order is fixed
8
+
- excluding extra file attributes and directories
4
9
5
10
For example:
6
11
7
12
```
8
13
cd com.micropythonos.helloworld/
9
-
zip -r0 /tmp/com.micropythonos.helloworld_0.0.2.mpk .
14
+
find . -type f -exec touch -t 202501010000.00 {} \; # set fixed timestamp
15
+
find . -type f | sort | TZ=CET zip -X -r -0 /tmp/com.micropythonos.helloworld_0.0.2.mpk -@ # sort, -Xclude extra attributes, -recurse into directories and -0 compression
10
16
```
11
17
18
+
Take a look at [`scripts/bundleapps.sh`](https://github.com/MicroPythonOS/MicroPythonOS/blob/main/scripts/bundleapps.sh) to see how the MicroPythonOS default apps are bundled.
0 commit comments