id: in.cinny.Cinny runtime: org.gnome.Platform runtime-version: '48' sdk: org.gnome.Sdk command: cinny rename-icon: cinny sdk-extensions: - org.freedesktop.Sdk.Extension.node20 - org.freedesktop.Sdk.Extension.rust-stable finish-args: - --socket=wayland - --socket=fallback-x11 - --share=ipc - --device=dri - --socket=pulseaudio - --share=network - --filesystem=xdg-run/keyring # Tauri does not yet support the Freedesktop.org # File Transfer portal, so this is needed to support # the drag and drop files. - --filesystem=home # Instead of prompting the user with a file chooser # (using the File Chooser portal), Tauri stores the # files of links into XDG_DOWNLOAD_DIR #- --filesystem=xdg-download # tauri-plugin-notification uses notify-rust. # Removing the D-Bus access below depends on # https://github.com/hoodie/notify-rust/issues/218 - --talk-name=org.freedesktop.Notifications - --talk-name=org.kde.StatusNotifierWatcher build-options: append-path: /usr/lib/sdk/node20/bin:/usr/lib/sdk/rust-stable/bin modules: - shared-modules/libappindicator/libappindicator-gtk3-12.10.json - name: webkit2gtk-4.0 sources: - type: archive url: https://webkitgtk.org/releases/webkitgtk-2.48.5.tar.xz sha256: bb64ed9d1cfd58e8b5e89ccad71dd31adfed56336bad7695031ad0b668e1987c x-checker-data: type: html url: https://webkitgtk.org/releases/ version-pattern: LATEST-STABLE-(\d[\.\d]+\d) url-template: https://webkitgtk.org/releases/webkitgtk-$version.tar.xz buildsystem: cmake-ninja config-opts: - -DCMAKE_BUILD_TYPE=RelWithDebInfo - -DENABLE_BUBBLEWRAP_SANDBOX=OFF - -DENABLE_DOCUMENTATION=OFF - -DENABLE_GAMEPAD=OFF - -DENABLE_INTROSPECTION=OFF - -DENABLE_MINIBROWSER=OFF - -DENABLE_SPEECH_SYNTHESIS=OFF - -DENABLE_WEBDRIVER=OFF - -DPORT=GTK - -DUSE_GTK4=OFF - -DUSE_LIBBACKTRACE=OFF - -DUSE_SOUP2=ON modules: - shared-modules/libsoup/libsoup-2.4.json - name: unifdef no-autogen: true make-install-args: - prefix=${FLATPAK_DEST} sources: - type: archive url: https://dotat.at/prog/unifdef/unifdef-2.12.tar.xz sha256: 43ce0f02ecdcdc723b2475575563ddb192e988c886d368260bc0a63aee3ac400 cleanup: - '*' - name: libjxl buildsystem: cmake-ninja config-opts: - -DCMAKE_BUILD_TYPE=Release - -DBUILD_TESTING=OFF sources: - type: git url: https://github.com/libjxl/libjxl.git tag: v0.11.1 commit: 794a5dcf0d54f9f0b20d288a12e87afb91d20dfc disable-shallow-clone: true x-checker-data: type: git tag-pattern: ^v([\d.]+)$ - name: libvips cleanup: - /* sources: - type: git url: https://github.com/libvips/libvips tag: v8.17.1 commit: 8fa37a64547e392d3808eed8d72adab7e02b3d00 x-checker-data: type: git tag-pattern: ^v((?:\d+.)*\d+)$ buildsystem: meson - name: Cinny sources: - type: git url: https://github.com/cinnyapp/cinny-desktop.git tag: v4.10.0 commit: fbc70716960943818ca4a5c0a8ee2e1940aecd08 x-checker-data: type: git tag-pattern: ^v((?:\d+.)*\d+)$ - type: patch path: 0001-disable-tauri-updater.patch - node-sources.json - cargo-sources.json - type: file path: in.cinny.Cinny.desktop - type: file path: in.cinny.Cinny.appdata.xml buildsystem: simple build-options: env: CARGO_HOME: /run/build/Cinny/cargo XDG_CACHE_HOME: /run/build/Cinny/flatpak-node/cache npm_config_cache: /run/build/Cinny/flatpak-node/npm-cache npm_config_offline: 'true' npm_config_sharp_libvips_local_prebuilds: /run/build/Cinny/flatpak-node/libvips-cache NODE_OPTIONS: --max_old_space_size=4096 build-commands: - for project in . cinny; do npm ci --offline --legacy-peer-deps --prefix=$project; done - cargo --offline fetch --manifest-path src-tauri/Cargo.toml - npm run tauri build -- -b none - install -Dm644 -t /app/share/metainfo/ in.cinny.Cinny.appdata.xml - install -Dm755 -t /app/bin/ src-tauri/target/release/cinny - install -Dm755 -t /app/share/icons/hicolor/scalable/apps/ cinny/public/res/svg/cinny.svg - install -Dm644 -t /app/share/applications/ in.cinny.Cinny.desktop