Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Commit 85593fc

Browse files
author
x80486
committed
refactor: convert manifest to yaml
1 parent e63ddfc commit 85593fc

File tree

4 files changed

+93
-107
lines changed

4 files changed

+93
-107
lines changed

README.asciidoc

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ Assuming `flatpak`, `flatpak-builder`, and `git` packages are installed, run the
1212
$ git clone https://github.com/flathub/io.github.liberodark.OpenDrive.git
1313
$ cd io.github.liberodark.OpenDrive/
1414
$ flatpak remote-add --if-not-exists --user flathub https://flathub.org/repo/flathub.flatpakrepo
15-
$ flatpak-builder build --force-clean --install-deps-from=flathub --install --user io.github.liberodark.OpenDrive.json
15+
$ flatpak-builder build --force-clean --install-deps-from=flathub --install --user io.github.liberodark.OpenDrive.yml
1616
1717
# ...to uninstall the artifact
1818
$ flatpak uninstall --delete-data --user io.github.liberodark.OpenDrive
1919
2020
# ...and to clean-up everything
2121
$ flatpak uninstall --unused --user
22-
$ rm -rf .flatpak-builder/ build/
22+
$ rm --force --recursive .flatpak-builder/ build/
2323
$ flatpak remote-delete --user flathub
2424
----
2525

@@ -31,8 +31,3 @@ Make sure `git-2.21.x`, `yarn-1.16.x`, and `python-3.7.x` packages are installed
3131
- Run `bootstrap.sh`
3232
- Commit and push the generated/updated files
3333
- Update manifest and AppStream metadata accordingly
34-
35-
== Roadmap
36-
:uri-issues-tracker: https://github.com/flathub/io.github.liberodark.OpenDrive/issues/
37-
38-
See the {uri-issues-tracker}[Issues^] tracker.

io.github.liberodark.OpenDrive.json

Lines changed: 0 additions & 99 deletions
This file was deleted.

io.github.liberodark.OpenDrive.appdata.xml renamed to io.github.liberodark.OpenDrive.metainfo.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,5 @@
2828
<content_rating type="oars-1.1" />
2929
<releases>
3030
<release type="stable" date="2019-04-22" version="0.2.2" />
31-
<release type="stable" date="2019-02-27" version="0.2.1" />
3231
</releases>
3332
</component>

io.github.liberodark.OpenDrive.yml

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
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

Comments
 (0)