{ "app-id": "io.atom.electron.ElectronQuickStart", "runtime": "org.freedesktop.Platform", "runtime-version": "1.6", "base": "io.atom.electron.BaseApp", "base-version": "stable", "branch": "stable", "sdk": "org.freedesktop.Sdk", "command": "run.sh", "separate-locales": false, "finish-args": [ /* X11 + XShm access */ "--share=ipc", "--socket=x11", /* Sound access */ "--socket=pulseaudio", /* Network access */ "--share=network" ], "build-options" : { "cflags": "-O2 -g", "cxxflags": "-O2 -g", "env": { "NPM_CONFIG_LOGLEVEL": "info" } }, "modules": [ { "name": "nodejs", "cleanup": [ "/include", "/share", "/app/lib/node_modules/npm/changelogs", "/app/lib/node_modules/npm/doc", "/app/lib/node_modules/npm/html", "/app/lib/node_modules/npm/man", "/app/lib/node_modules/npm/scripts" ], "sources": [ { "type": "archive", "url": "https://nodejs.org/dist/v8.9.2/node-v8.9.2.tar.gz", "sha256": "8038fa61ac4562786fcc6d3229f3caa07a864b94bd5922fe75942a38ea1c3a3b" } ] }, { "name": "yarn", "buildsystem": "simple", "build-commands": [ "mkdir -p /app/share/yarn", "cp -a * /app/share/yarn/", "ln -s /app/share/yarn/bin/yarn /app/bin/yarn", "ln -s /app/share/yarn/bin/yarnpkg /app/bin/yarnpkg" ], "sources": [ { "type": "archive", "url": "https://github.com/yarnpkg/yarn/releases/download/v1.3.2/yarn-v1.3.2.tar.gz", "sha256": "6cfe82e530ef0837212f13e45c1565ba53f5199eec2527b85ecbcd88bf26821d" } ] }, { "name": "electron-quick-start", "build-options" : { "env": { /* Need this for electron-download to find the cached electron binary */ "electron_config_cache": "/run/build/electron-quick-start/electron-cache" } }, "buildsystem": "simple", "sources": [ { "type": "git", "url": "https://github.com/electron/electron-quick-start.git", "commit": "71199c46fc6d599ab3f29f25e837d0e1768b5ef7", "dest": "main" }, /* This file should really have been in the repo, but here is a copy created by running npm install outside the sandbox */ { "type": "file", "path": "electron-quick-start-yarn.lock", "dest-filename": "yarn.lock", "dest": "main" }, { "type": "file", "path": "yarnrc", "dest": "main", "dest-filename": ".yarnrc" }, /* This file is autogenerated by: flatpak-yarn-generator.py electron-quick-start-yarn.lock generated-sources.json */ "generated-sources.json", /* Wrapper to launch the app */ { "type": "script", "dest-filename": "run.sh", "commands": [ "cd /app/main", "yarn start" ] } ], "build-commands": [ /* Install yarn dependencies */ "yarn install --cwd /run/build/electron-quick-start/main --offline", /* Bundle app and dependencies */ "mkdir -p /app/main /app/bin", "cp -ra * /app/main/", /* Install app wrapper */ "install run.sh /app/bin/" ] } ] }