@@ -11,6 +11,9 @@ finish-args:
1111 - --device=dri
1212 - --share=ipc
1313 - --share=network
14+ - --filesystem=home
15+ - --filesystem=xdg-documents
16+ - --filesystem=xdg-config
1417sdk-extensions :
1518 - org.freedesktop.Sdk.Extension.node20
1619 - org.freedesktop.Sdk.Extension.rust-stable
@@ -22,28 +25,41 @@ modules:
2225 buildsystem : simple
2326 env :
2427 HOME : /run/build/cherit
25- CARGO_HOME : /run/build/cherit/src-tauri
28+ CARGO_HOME : /run/build/cherit/cargo
2629 XDG_CACHE_HOME : /run/build/cherit/flatpak-node/cache
2730 yarn_config_offline : ' true'
2831 yarn_config_cache : /run/build/cherit/flatpak-node/yarn-cache
2932 sources :
3033 - type : git
3134 url : https://github.com/Keshav-writes-code/Cherit.git
3235 branch : main
33- - cargo-sources.json
34- - node-sources.json
36+ - type : file
37+ path : cargo-sources.json
38+ - type : file
39+ path : node-sources.json
3540 build-commands :
36- - echo -e 'yarn-offline-mirror "/run/build/cherit/flatpak-node/yarn-mirror"\nyarn-offline-mirror-pruning true' > /run/build/cherit/.yarnrc
37- - mkdir -p src-tauri/.cargo && echo -e '[source.crates-io]\nreplace-with = "vendored-sources"\n\n[source.vendored-sources]\ndirectory = "/run/build/cherit/cargo/vendor"' > ../../../src-tauri/.cargo/config.toml
38- - yarn install --offline --immutable --immutable-cache --inline-builds
39- - yarn run tauri build -- -b deb
40- - ar -x ../../../src-tauri/target/release/bundle/deb/*.deb
41- - tar -xf ../../../src-tauri/target/release/bundle/deb/cherit/data.tar.gz
42- - install -Dm755 ../../../src-tauri/target/release/bundle/deb/cherit/data/usr/bin/your-command /app/bin/your-command
43- - install -Dm644 ../../../src-tauri/target/release/bundle/deb/cherit/data/usr/share/applications/cherit.desktop /app/share/applications/org.your.id.desktop
44- - install -Dm644 ../../../src-tauri/target/release/bundle/deb/cherit/data/usr/share/icons/hicolor/128x128/apps/cherit.png /app/share/icons/hicolor/128x128/apps/cherit.png
45- - install -Dm644 ../../../src-tauri/target/release/bundle/deb/cherit/data/usr/share/icons/hicolor/32x32/apps/cherit.png /app/share/icons/hicolor/32x32/apps/cherit.png
46- - install -Dm644 ../../../src-tauri/target/release/bundle/deb/cherit/data/usr/share/icons/hicolor/256x256@2/apps/cherit.png /app/share/icons/hicolor/512x512/apps/cherit.png
47- - install -Dm644 ../../../src-tauri/target/release/bundle/deb/cherit/data/usr/share/icons/hicolor/scalable/apps/cherit.svg /app/share/icons/hicolor/scalable/apps/cherit.svg
48-
49- - install -Dm644 ../../../src-tauri/target/release/bundle/deb/cherit/data/usr/share/metainfo/org.your.id /app/share/metainfo/org.your.id
41+ - echo -e 'yarn-offline-mirror "/run/build/cherit/flatpak-node/yarn-mirror"\nyarn-offline-mirror-pruning true' > .yarnrc
42+ - 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
43+ - yarn install --offline --immutable --immutable-cache --inline-builds
44+ - yarn workspace cherit run tauri build -- -b deb
45+ - ar -x apps/app/src-tauri/target/release/bundle/deb/*.deb
46+ - |
47+ if [ -f data.tar.xz ]; then
48+ tar -xf data.tar.xz
49+ else
50+ tar -xf data.tar.gz
51+ fi
52+ - install -Dm755 usr/bin/cherit /app/bin/cherit
53+ - sed -i 's/^Icon=cherit/Icon=io.github.keshav-writes-code.cherit/' usr/share/applications/cherit.desktop
54+ - install -Dm644 usr/share/applications/cherit.desktop /app/share/applications/io.github.keshav-writes-code.cherit.desktop
55+ - install -Dm644 usr/share/icons/hicolor/128x128/apps/cherit.png /app/share/icons/hicolor/128x128/apps/io.github.keshav-writes-code.cherit.png
56+ - install -Dm644 usr/share/icons/hicolor/32x32/apps/cherit.png /app/share/icons/hicolor/32x32/apps/io.github.keshav-writes-code.cherit.png
57+ - |
58+ if [ -f usr/share/icons/hicolor/256x256@2/apps/cherit.png ]; then
59+ install -Dm644 usr/share/icons/hicolor/256x256@2/apps/cherit.png /app/share/icons/hicolor/512x512/apps/io.github.keshav-writes-code.cherit.png
60+ fi
61+ - |
62+ if [ -f usr/share/icons/hicolor/scalable/apps/cherit.svg ]; then
63+ install -Dm644 usr/share/icons/hicolor/scalable/apps/cherit.svg /app/share/icons/hicolor/scalable/apps/io.github.keshav-writes-code.cherit.svg
64+ fi
65+ - install -Dm644 usr/share/metainfo/io.github.keshav-writes-code.cherit.metainfo.xml /app/share/metainfo/io.github.keshav-writes-code.cherit.metainfo.xml
0 commit comments