|
1 | 1 | { |
2 | 2 | "app-id": "org.sugarlabs.MusicBlocks", |
3 | | - "runtime": "org.gnome.Platform", |
4 | | - "runtime-version": "3.36", |
5 | | - "sdk": "org.gnome.Sdk", |
6 | | - "command": "launcher", |
| 3 | + "runtime": "org.freedesktop.Platform", |
| 4 | + "runtime-version": "19.08", |
| 5 | + "branch": "stable", |
| 6 | + "sdk": "org.freedesktop.Sdk", |
| 7 | + "base": "io.atom.electron.BaseApp", |
| 8 | + "base-version": "stable", |
| 9 | + "command": "run.sh", |
| 10 | + "separate-locales": false, |
7 | 11 | "finish-args": [ |
8 | 12 | "--share=network", |
9 | | - "--socket=wayland", |
10 | | - "--socket=fallback-x11", |
| 13 | + "--socket=x11", |
11 | 14 | "--socket=pulseaudio", |
12 | 15 | "--device=dri", |
| 16 | + "--filesystem=home", |
13 | 17 | "--env=MUSICBLOCKS_PATH=/app/share/musicblocks" |
14 | 18 | ], |
| 19 | + "build-options" : { |
| 20 | + "cflags": "-O2 -g", |
| 21 | + "cxxflags": "-O2 -g", |
| 22 | + "env": { |
| 23 | + "NPM_CONFIG_LOGLEVEL": "info" |
| 24 | + } |
| 25 | + }, |
15 | 26 | "modules": [ |
16 | 27 | { |
17 | | - "name": "launcher", |
| 28 | + "name": "nodejs", |
| 29 | + "cleanup": [ |
| 30 | + "/include", |
| 31 | + "/share", |
| 32 | + "/app/lib/node_modules/npm/changelogs", |
| 33 | + "/app/lib/node_modules/npm/doc", |
| 34 | + "/app/lib/node_modules/npm/html", |
| 35 | + "/app/lib/node_modules/npm/man", |
| 36 | + "/app/lib/node_modules/npm/scripts" |
| 37 | + ], |
| 38 | + "sources": [ |
| 39 | + { |
| 40 | + "type": "archive", |
| 41 | + "url": "https://nodejs.org/dist/v14.7.0/node-v14.7.0.tar.xz", |
| 42 | + "sha256": "ca2f1c63f3f2bf22247d7386bfc31e0295caa953f39f7079210170a886288e6f" |
| 43 | + } |
| 44 | + ] |
| 45 | + }, |
| 46 | + { |
| 47 | + "name": "mb-launcher", |
18 | 48 | "buildsystem": "simple", |
19 | 49 | "build-commands": [ |
20 | 50 | "python3 setup.py install --prefix=${FLATPAK_DEST}" |
|
38 | 68 | "rm -rf musicblocks/charts", |
39 | 69 | "rm -rf musicblocks/mouse-art", |
40 | 70 | "rm -rf musicblocks/screenshots", |
| 71 | + "rm musicblocks/package*", |
| 72 | + "mkdir /app/share/musicblocks", |
41 | 73 | "cp -ra musicblocks/* /app/share/musicblocks" |
42 | 74 | ], |
43 | 75 | "sources": [ |
44 | 76 | { |
45 | 77 | "type": "git", |
46 | 78 | "url": "https://github.com/sugarlabs/musicblocks", |
47 | | - "tag": "v3.1", |
48 | | - "commit": "5a0e5fc244acd8fa806f78a937165cc2a528e68e", |
| 79 | + "tag": "v3.2", |
| 80 | + "commit": "010d7f90cd68ac25c3c07886f1f5955ef2f196dc", |
49 | 81 | "dest": "musicblocks" |
50 | 82 | }, |
51 | 83 | { |
52 | 84 | "type": "patch", |
53 | 85 | "path": "save-interface.patch" |
54 | 86 | } |
55 | 87 | ] |
| 88 | + }, |
| 89 | + { |
| 90 | + "name": "electron-app", |
| 91 | + "build-options": { |
| 92 | + "env": { |
| 93 | + "electron_config_cache": "/run/build/electron-app/flatpak-node/npm-cache" |
| 94 | + }, |
| 95 | + "build-args": [ "--share=network" ] |
| 96 | + }, |
| 97 | + "buildsystem": "simple", |
| 98 | + "build-commands": [ |
| 99 | + "npm install --prefix=main --offline --cache=/run/build/electron-app/flatpak-node/npm-cache/", |
| 100 | + "cp -ra main/* /app/share/musicblocks/", |
| 101 | + "install run.sh /app/bin/" |
| 102 | + ], |
| 103 | + "sources": [ |
| 104 | + { |
| 105 | + "type": "git", |
| 106 | + "url": "https://github.com/srevinsaju/musicblocks-app", |
| 107 | + "tag": "continuous", |
| 108 | + "commit": "844eabe9b9e668f9f645a9af49517e83cb738d80", |
| 109 | + "dest": "main" |
| 110 | + }, |
| 111 | + { |
| 112 | + "type": "patch", |
| 113 | + "path": "electron-app.patch" |
| 114 | + }, |
| 115 | + "generated-sources.json", |
| 116 | + { |
| 117 | + "type": "script", |
| 118 | + "dest-filename": "run.sh", |
| 119 | + "commands": [ |
| 120 | + "npm start --prefix=/app/share/musicblocks" |
| 121 | + ] |
| 122 | + } |
| 123 | + ] |
56 | 124 | } |
57 | 125 | ] |
58 | 126 | } |
0 commit comments