Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flatpak #150

Merged
merged 6 commits into from
May 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
334 changes: 334 additions & 0 deletions flatpak/generated-poetry-sources.json

Large diffs are not rendered by default.

18 changes: 18 additions & 0 deletions flatpak/org.openandroidinstaller.OpenAndroidInstaller.appdata.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop-application">
<id>org.openandroidinstaller.OpenAndroidInstaller</id>

<name>OpenAndroidInstaller</name>
<summary> Makes installing alternative Android distributions nice and easy. </summary>

<metadata_license>CC-BY-SA-4.0</metadata_license>
<project_license>GPL-3.0-or-later</project_license>

<description>
<p>
The OpenAndroidInstaller project helps Android users to keep their smartphone&apos;s operating system up to date with free software and to continue using the device even though the manufacturer no longer offers updates. With a graphical installation software, users are easily guided through the installation process of free Android operating systems like LineageOS.
</p>
</description>

<launchable type="desktop-id">org.openandroidinstaller.OpenAndroidInstaller.desktop</launchable>
</component>
11 changes: 11 additions & 0 deletions flatpak/org.openandroidinstaller.OpenAndroidInstaller.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[Desktop Entry]
Version=1.0
Type=Application

Name=OpenAndroidInstaller
Comment= Makes installing alternative Android distributions nice and easy.
Categories=Utility;FileTools;

Icon=org.openandroidinstaller.OpenAndroidInstaller
Exec=openandroidinstaller
Terminal=false
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
165 changes: 165 additions & 0 deletions org.openandroidinstaller.OpenAndroidInstaller.json
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"
]
}
]
}
Loading