Skip to content

Commit 14033b1

Browse files
axtlosststerbak
authored andcommitted
Add flatpak manifest
1 parent 2a55b2c commit 14033b1

7 files changed

+499
-31
lines changed

flatpak/OpenAndroidInstaller.png

-20 KB
Binary file not shown.

flatpak/generated-poetry-sources.json

Lines changed: 334 additions & 0 deletions
Large diffs are not rendered by default.

flatpak/org.openandroidinstaller.OpenAndroidInstaller.metainfo.xml renamed to flatpak/org.openandroidinstaller.OpenAndroidInstaller.appdata.xml

File renamed without changes.

flatpak/org.openandroidinstaller.OpenAndroidInstaller.desktop

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ Name=OpenAndroidInstaller
66
Comment= Makes installing alternative Android distributions nice and easy.
77
Categories=Utility;FileTools;
88

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

org.openandroidinstaller.OpenAndroidInstaller.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

0 commit comments

Comments
 (0)