-
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds the flatpak manifest required to build a flatpak of OpenAndroidInstaller. The flatpak can be built with flatpak build --user --install --force-clean build-dir org.openandroidinstaller.OpenAndroidInstaller.json and then launched from the app launcher. Note that I cannot test wether flashing actually works, but I did test if it can recognize my phone, which it is able to do. The flatpak manifest currently also uses the source from the repository directly, this will have to be changed if it's planned to be submitted to flathub.
- Loading branch information
Showing
7 changed files
with
500 additions
and
31 deletions.
There are no files selected for viewing
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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" | ||
] | ||
} | ||
] | ||
} |
This file was deleted.
Oops, something went wrong.