-
-
Notifications
You must be signed in to change notification settings - Fork 34
/
org.openandroidinstaller.OpenAndroidInstaller.json
165 lines (164 loc) · 5.55 KB
/
org.openandroidinstaller.OpenAndroidInstaller.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
{
"app-id": "org.openandroidinstaller.OpenAndroidInstaller",
"runtime": "org.freedesktop.Platform",
"runtime-version": "22.08",
"sdk": "org.freedesktop.Sdk",
"command": "openandroidinstaller",
"finish-args": [
"--share=ipc",
"--share=network",
"--socket=fallback-x11",
"--socket=wayland",
"--device=all"
],
"modules": [
{
"name": "cython",
"buildsystem": "simple",
"build-commands": [
"python3 setup.py install --prefix=/app --root=/"
],
"sources": [
{
"type": "archive",
"url": "https://files.pythonhosted.org/packages/0a/70/1500f05bddb16d795b29fac42954b3c8764c82367b8326c10f038471ae7f/Cython-0.29.34.tar.gz",
"sha256": "1909688f5d7b521a60c396d20bba9e47a1b2d2784bfb085401e1e1e7d29a29a8"
}
]
},
{
"name": "PyYAML",
"buildsystem": "simple",
"build-commands": [
"pip3 install --exists-action=i --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} \"pyyaml\" --no-build-isolation"
],
"sources": [
{
"type": "file",
"url": "https://files.pythonhosted.org/packages/a0/a4/d63f2d7597e1a4b55aa3b4d6c5b029991d3b824b5bd331af8d4ab1ed687d/PyYAML-5.4.1.tar.gz",
"sha256": "607774cbba28732bfa802b54baa7484215f530991055bb562efbed5b2f20a45e"
}
]
},
{
"name": "watchdog",
"buildsystem": "simple",
"build-commands": [
"pip3 install --exists-action=i --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} \"watchdog\" --no-build-isolation"
],
"sources": [
{
"type": "file",
"url": "https://files.pythonhosted.org/packages/95/a6/d6ef450393dac5734c63c40a131f66808d2e6f59f6165ab38c98fbe4e6ec/watchdog-3.0.0.tar.gz",
"sha256": "4d98a320595da7a7c5a18fc48cb633c2e73cda78f93cac2ef42d42bf609a33f9"
}
]
},
"flatpak/generated-poetry-sources.json",
{
"name": "brotlicffi",
"buildsystem": "simple",
"build-commands": [
"pip3 install --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} brotlicffi"
],
"sources": [
{
"type": "file",
"url": "https://files.pythonhosted.org/packages/d3/d8/6acbb65e350213ad6bd96180593fad0a269a3baa845c67fed21adee3959d/brotlicffi-1.0.9.2.tar.gz",
"sha256": "0c248a68129d8fc6a217767406c731e498c3e19a7be05ea0a90c3c86637b7d96"
}
]
},
{
"name": "openandroidinstaller",
"buildsystem": "simple",
"sources": [
{
"type": "dir",
"path": "."
},
{
"type": "file",
"url": "https://files.pythonhosted.org/packages/09/79/5ab16fbf2d9354c242e9f9e784d604dd06842405f7797e71238f3c053200/poetry_core-1.0.7-py2.py3-none-any.whl",
"sha256": "4f8a7f5390d772f42c4c4c3f188e6424b802cb4b57466c6633a1b9ac36f18a43"
},
{
"type": "script",
"commands": [
"python3 /app/lib/python3.10/site-packages/openandroidinstaller/openandroidinstaller.py"
],
"dest-filename": "openandroidinstaller.sh"
},
{
"type": "file",
"path": "flatpak/org.openandroidinstaller.OpenAndroidInstaller.appdata.xml"
},
{
"type": "file",
"path": "flatpak/org.openandroidinstaller.OpenAndroidInstaller.desktop"
},
{
"type": "file",
"path": "flatpak/org.openandroidinstaller.OpenAndroidInstaller.png"
}
],
"build-commands": [
"mkdir -p /app/{bin,share/{appdata,applications,icons/hicolor/512x512/apps}}",
"pip3 install --prefix=/app --no-deps --find-links=\"file://${PWD}\" --no-index poetry-core==1.0.7 .",
"mkdir -p /app/lib/python3.10/site-packages/openandroidinstaller/bin",
"install -Dm755 openandroidinstaller.sh /app/bin/openandroidinstaller",
"install -Dm755 ${FLATPAK_ID}.png /app/share/icons/hicolor/512x512/apps/${FLATPAK_ID}.png",
"install -Dm755 ${FLATPAK_ID}.appdata.xml /app/share/appdata/${FLATPAK_ID}.appdata.xml",
"install -Dm755 ${FLATPAK_ID}.desktop /app/share/applications/${FLATPAK_ID}.desktop"
]
},
{
"name": "libusb",
"config-opts": [ "--disable-static" ],
"cleanup": [
"/lib/*.la",
"/lib/pkgconfig",
"/include"
],
"sources": [
{
"type":"archive",
"url":"https://github.com/libusb/libusb/archive/v1.0.26.tar.gz",
"sha256": "a09bff99c74e03e582aa30759cada218ea8fa03580517e52d463c59c0b25e240"
}
],
"post-install": [
"install -Dm644 COPYING /app/share/licenses/libusb/COPYING"
]
},
{
"name": "android-tools",
"buildsystem": "simple",
"sources": [
{
"type": "archive",
"url": "https://dl.google.com/android/repository/platform-tools_r34.0.1-linux.zip",
"sha256": "09aa9346b7c61adbf79f15378cbd61666899a20678b8cb9872f078c38fe3833f"
}
],
"build-commands": [
"install -Dm755 adb /app/lib/python3.10/site-packages/openandroidinstaller/bin/adb",
"install -Dm755 fastboot /app/lib/python3.10/site-packages/openandroidinstaller/bin/fastboot"
]
},
{
"name": "heimdall",
"buildsystem": "simple",
"sources": [
{
"type": "archive",
"url": "https://people.ubuntu.com/~neothethird/heimdall-linux.zip",
"sha256": "b8abc6e274dedf98263ede30cbceef69f21134298905f319474c7814008eb78d"
}
],
"build-commands": [
"install -Dm755 heimdall /app/lib/python3.10/site-packages/openandroidinstaller/bin/heimdall"
]
}
]
}