|
| 1 | +--- |
| 2 | +app-id: io.github.liberodark.OpenDrive |
| 3 | +base: org.electronjs.Electron2.BaseApp |
| 4 | +base-version: "20.08" |
| 5 | +command: odrive |
| 6 | +runtime: org.freedesktop.Platform |
| 7 | +runtime-version: "20.08" |
| 8 | +sdk: org.freedesktop.Sdk |
| 9 | +sdk-extensions: |
| 10 | + - org.freedesktop.Sdk.Extension.node10 |
| 11 | +separate-locales: false |
| 12 | +finish-args: |
| 13 | + - --device=dri |
| 14 | + - --env=XDG_CURRENT_DESKTOP=Unity |
| 15 | + - --filesystem=home |
| 16 | + - --share=ipc |
| 17 | + - --share=network |
| 18 | + - --socket=x11 |
| 19 | + - --talk-name=com.canonical.AppMenu.Registrar |
| 20 | + - --talk-name=org.freedesktop.Notifications |
| 21 | + - --talk-name=org.kde.StatusNotifierWatcher |
| 22 | +modules: |
| 23 | + - name: yarn |
| 24 | + buildsystem: simple |
| 25 | + build-commands: |
| 26 | + - mkdir --parents /app/share/yarn/ |
| 27 | + - cp --archive * /app/share/yarn/ |
| 28 | + - ln --symbolic /app/share/yarn/bin/yarn /app/bin/yarn |
| 29 | + - ln --symbolic /app/share/yarn/bin/yarnpkg /app/bin/yarnpkg |
| 30 | + cleanup: |
| 31 | + - "*" |
| 32 | + sources: |
| 33 | + - type: archive |
| 34 | + sha256: df202627d9a70cf09ef2fb11cb298cb619db1b958590959d6f6e571b50656029 |
| 35 | + url: https://github.com/yarnpkg/yarn/releases/download/v1.16.0/yarn-v1.16.0.tar.gz |
| 36 | + |
| 37 | + - name: odrive |
| 38 | + buildsystem: simple |
| 39 | + build-options: |
| 40 | + append-path: /usr/lib/sdk/node10/bin/ |
| 41 | + env: |
| 42 | + ELECTRON_CACHE: /run/build/odrive/electron-cache/ |
| 43 | + JOBS: max |
| 44 | + electron_config_cache: /run/build/odrive/electron-cache/ |
| 45 | + npm_config_nodedir: /usr/lib/sdk/node10/ |
| 46 | + arch: |
| 47 | + aarch64: |
| 48 | + env: |
| 49 | + earch: arm64 |
| 50 | + suffix: "-arm64" |
| 51 | + arm: |
| 52 | + env: |
| 53 | + earch: armv7l |
| 54 | + suffix: "-armv7l" |
| 55 | + i386: |
| 56 | + env: |
| 57 | + earch: ia32 |
| 58 | + suffix: "-ia32" |
| 59 | + x86_64: |
| 60 | + env: |
| 61 | + earch: x64 |
| 62 | + suffix: "" |
| 63 | + build-commands: |
| 64 | + - yarn --cwd /run/build/odrive/main/ --offline install |
| 65 | + - yarn --cwd /run/build/odrive/main/ --offline run release-linux --${earch} --dir |
| 66 | + - cp --recursive main/dist/linux${suffix}-unpacked /app/OpenDrive/ |
| 67 | + - install -D -m0644 main/public/images/logo.svg /app/share/icons/hicolor/scalable/apps/io.github.liberodark.OpenDrive.svg |
| 68 | + - install -D -m0755 odrive.sh /app/bin/odrive |
| 69 | + - install -D -m0644 -t /app/share/applications/ io.github.liberodark.OpenDrive.desktop |
| 70 | + - install -D -m0644 -t /app/share/metainfo/ io.github.liberodark.OpenDrive.metainfo.xml |
| 71 | + sources: |
| 72 | + - generated-sources.json |
| 73 | + - type: archive |
| 74 | + dest: main |
| 75 | + sha256: cafe7e9bd4faa60c9172922371157335a4fba06c6c2f5f3916e7bd3f7602789f |
| 76 | + url: https://github.com/liberodark/ODrive/archive/0.2.2.tar.gz |
| 77 | + - type: file |
| 78 | + path: io.github.liberodark.OpenDrive.desktop |
| 79 | + - type: file |
| 80 | + path: io.github.liberodark.OpenDrive.metainfo.xml |
| 81 | + - type: file |
| 82 | + dest: main/ |
| 83 | + dest-filename: ".yarnrc" |
| 84 | + path: yarnrc |
| 85 | + - type: file |
| 86 | + dest: main/ |
| 87 | + path: yarn.lock |
| 88 | + - type: script |
| 89 | + commands: |
| 90 | + - exec env TMPDIR=${XDG_CACHE_HOME}/tmp/ /app/OpenDrive/odrive "$@" |
| 91 | + dest-filename: odrive.sh |
0 commit comments