Skip to content

Instantly share code, notes, and snippets.

@nedrichards
Created November 22, 2017 12:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nedrichards/83701e9b2ffc0599570f6255f2ff78de to your computer and use it in GitHub Desktop.
Save nedrichards/83701e9b2ffc0599570f6255f2ff78de to your computer and use it in GitHub Desktop.
rough android studio extra-data based flatpak
{
"app-id": "com.google.AndroidStudio",
"runtime": "org.freedesktop.Platform",
"runtime-version": "1.6",
"sdk": "org.freedesktop.Sdk",
"command": "android",
"finish-args": [
"--socket=x11",
"--socket=pulseaudio",
"--socket=system-bus",
"--share=ipc",
"--share=network",
"--device=all",
"--filesystem=home",
"--allow=multiarch",
"--talk-name=org.freedesktop.Notifications",
"--extra-data=android-studio.zip:7991f95ea1b6c55645a3fc48f1534d4135501a07b9d92dd83672f936d9a9d7a2:771324214::https://dl.google.com/dl/android/studio/ide-zips/3.0.0.18/android-studio-ide-171.4408382-linux.zip"
],
"modules": [
{
"name": "git",
"make-args": ["NO_PERL=1"],
"make-install-args": ["NO_PERL=1"],
"cleanup": ["/share/git-gui"],
"sources": [
{
"type": "archive",
"url": "https://www.kernel.org/pub/software/scm/git/git-2.15.0.tar.xz",
"sha256": "107116489f10b758b51af1c5dbdb9a274917b0fb67dc8eaefcdabc7bc3eb3e6a"
}
]
},
{
"name": "android-studio",
"buildsystem": "simple",
"build-commands": [
"install -D apply_extra /app/bin",
"install -D android.sh /app/bin/android",
"install -Dm644 com.google.AndroidStudio.appdata.xml /app/extra/share/appdata/com.google.AndroidStudio.appdata.xml",
"install -Dm644 com.google.AndroidStudio.desktop /app/extra/share/applications/com.google.AndroidStudio.desktop"
],
"sources": [
{
"type": "script",
"dest-filename": "apply_extra",
"commands": [
"unzip -q android-studio.zip",
"rm android-studio.zip",
"mv android-studio/* .",
"rmdir android-studio",
"install -Dm644 share/bin/studio.png export/share/icons/hicolor/128x128/apps/com.google.AndroidStudio.png"
]
},
{
"type": "file",
"path": "com.google.AndroidStudio.desktop"
},
{
"type": "file",
"path": "com.google.AndroidStudio.appdata.xml"
},
{
"type": "script",
"commands": ["/app/extra/bin/studio.sh"],
"dest-filename": "android.sh"
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment