forked from flatpak/flatpak-builder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathorg.test.Python2.json
37 lines (37 loc) · 1.08 KB
/
org.test.Python2.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{
"app-id": "org.test.Python2",
"runtime": "org.test.PythonPlatform",
"sdk": "org.test.PythonSdk",
"command": "testpython.py",
"modules": [
{
"name": "compiled-python",
"post-install": [
"mkdir /app/bin",
"cp testpython.py /app/bin",
"cp importme.py /app/bin",
/* Compile importme.py */
"/app/bin/testpython.py",
/* Remove .py file, but keep .pyc */
"rm /app/bin/importme.py",
/* Make sure it still works */
"/app/bin/testpython.py"
],
"sources": [
{
"type": "file",
"path": "empty-configure",
"dest-filename": "configure"
},
{
"type": "file",
"path": "testpython.py"
},
{
"type": "file",
"path": "importme.py"
}
]
}
]
}