-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathio.github.keshav-writes-code.cherit.yml
More file actions
65 lines (62 loc) · 2.89 KB
/
io.github.keshav-writes-code.cherit.yml
File metadata and controls
65 lines (62 loc) · 2.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
id: io.github.keshav-writes-code.cherit
runtime: org.gnome.Platform
runtime-version: '47'
sdk: org.gnome.Sdk
command: cherit
finish-args:
- --socket=wayland
- --socket=fallback-x11
- --device=dri
- --share=ipc
- --share=network
- --filesystem=home
- --filesystem=xdg-documents
- --filesystem=xdg-config
sdk-extensions:
- org.freedesktop.Sdk.Extension.node20
- org.freedesktop.Sdk.Extension.rust-stable
build-options:
append-path: /usr/lib/sdk/node20/bin:/usr/lib/sdk/rust-stable/bin
modules:
- name: cherit
buildsystem: simple
env:
HOME: /run/build/cherit
CARGO_HOME: /run/build/cherit/cargo
XDG_CACHE_HOME: /run/build/cherit/flatpak-node/cache
yarn_config_offline: 'true'
yarn_config_cache: /run/build/cherit/flatpak-node/yarn-cache
sources:
- type: git
url: https://github.com/Keshav-writes-code/Cherit.git
branch: main
- type: file
path: cargo-sources.json
- type: file
path: node-sources.json
build-commands:
- echo -e 'yarn-offline-mirror "/run/build/cherit/flatpak-node/yarn-mirror"\nyarn-offline-mirror-pruning true' > .yarnrc
- mkdir -p apps/app/src-tauri/.cargo && echo -e '[source.crates-io]\nreplace-with = "vendored-sources"\n\n[source.vendored-sources]\ndirectory = "/run/build/cherit/cargo/vendor"' > apps/app/src-tauri/.cargo/config.toml
- yarn install --offline --immutable --immutable-cache --inline-builds
- yarn workspace cherit run tauri build -- -b deb
- ar -x apps/app/src-tauri/target/release/bundle/deb/*.deb
- |
if [ -f data.tar.xz ]; then
tar -xf data.tar.xz
else
tar -xf data.tar.gz
fi
- install -Dm755 usr/bin/cherit /app/bin/cherit
- sed -i 's/^Icon=cherit/Icon=io.github.keshav-writes-code.cherit/' usr/share/applications/cherit.desktop
- install -Dm644 usr/share/applications/cherit.desktop /app/share/applications/io.github.keshav-writes-code.cherit.desktop
- install -Dm644 usr/share/icons/hicolor/128x128/apps/cherit.png /app/share/icons/hicolor/128x128/apps/io.github.keshav-writes-code.cherit.png
- install -Dm644 usr/share/icons/hicolor/32x32/apps/cherit.png /app/share/icons/hicolor/32x32/apps/io.github.keshav-writes-code.cherit.png
- |
if [ -f usr/share/icons/hicolor/256x256@2/apps/cherit.png ]; then
install -Dm644 usr/share/icons/hicolor/256x256@2/apps/cherit.png /app/share/icons/hicolor/512x512/apps/io.github.keshav-writes-code.cherit.png
fi
- |
if [ -f usr/share/icons/hicolor/scalable/apps/cherit.svg ]; then
install -Dm644 usr/share/icons/hicolor/scalable/apps/cherit.svg /app/share/icons/hicolor/scalable/apps/io.github.keshav-writes-code.cherit.svg
fi
- install -Dm644 usr/share/metainfo/io.github.keshav-writes-code.cherit.metainfo.xml /app/share/metainfo/io.github.keshav-writes-code.cherit.metainfo.xml