Open-source download manager & offline media toolbox for YouTube, music, social media, learning platforms & 1,800+ sites. Built with Tauri 2.0, Rust & Svelte.
Rust downloadmanagerguihacktoberfesthomebrewlightweightlinuxlinux-distributionlocal-firstmacosmacos-packagemedia-toolboxopen-sourcerustsveltetauritrendingtrending-repositorieswindowswindows-desktopytdlp
feat: add Flatpak build workflow and manifest for omniget
Tonhodbf5de8b66fc
diff --git a/.github/workflows/flatpak.yml b/.github/workflows/flatpak.ymlnew file mode 100644index 00000000..3faf3c7d--- /dev/null+++ b/.github/workflows/flatpak.yml@@ -0,0 +1,43 @@+name: Flatpak Build++on:+ workflow_dispatch:+ release:+ types: [published]++jobs:+ flatpak:+ name: Build Flatpak Bundle+ runs-on: ubuntu-latest+ container:+ image: bilelmoussaoui/flatpak-github-actions:gnome-47+ options: --privileged++ steps:+ - name: Checkout+ uses: actions/checkout@v4++ - name: Generate offline sources+ run: |+ pip3 install aiohttp tomlkit+ pip3 install "git+https://github.com/flatpak/flatpak-builder-tools.git#subdirectory=node"++ wget -q https://raw.githubusercontent.com/flatpak/flatpak-builder-tools/refs/heads/master/cargo/flatpak-cargo-generator.py+ python3 flatpak-cargo-generator.py src-tauri/Cargo.lock -o flatpak/cargo-sources.json++ npm install --package-lock-only --ignore-scripts+ python3 -m flatpak_node_generator npm package-lock.json -o flatpak/node-sources.json++ - name: Build Flatpak+ uses: flatpak/flatpak-github-actions/flatpak-builder@v6+ with:+ manifest-path: flatpak/wtf.tonho.omniget.yml+ bundle: omniget.flatpak+ upload-artifact: true+ cache-key: flatpak-builder-${{ github.sha }}++ - name: Upload Flatpak to Release+ if: github.event_name == 'release'+ uses: softprops/action-gh-release@v2+ with:+ files: omniget.flatpakdiff --git a/flatpak/wtf.tonho.omniget.yml b/flatpak/wtf.tonho.omniget.ymlnew file mode 100644index 00000000..911ddcc6--- /dev/null+++ b/flatpak/wtf.tonho.omniget.yml@@ -0,0 +1,49 @@+app-id: wtf.tonho.omniget+runtime: org.gnome.Platform+runtime-version: '47'+sdk: org.gnome.Sdk+sdk-extensions:+ - org.freedesktop.Sdk.Extension.rust-stable+ - org.freedesktop.Sdk.Extension.node20++command: omniget++finish-args:+ - --share=ipc+ - --share=network+ - --socket=fallback-x11+ - --socket=wayland+ - --device=dri+ - --socket=pulseaudio+ - --filesystem=xdg-download+ - --talk-name=org.freedesktop.Notifications+ - --talk-name=org.kde.StatusNotifierWatcher++build-options:+ append-path: /usr/lib/sdk/rust-stable/bin:/usr/lib/sdk/node20/bin+ env:+ CARGO_HOME: /run/build/omniget/cargo+ npm_config_nodedir: /usr/lib/sdk/node20++cleanup:+ - /lib/pkgconfig++modules:+ - name: omniget+ buildsystem: simple+ build-options:+ env:+ npm_config_cache: /run/build/omniget/flatpak-node/npm-cache+ build-commands:+ - npm install --offline+ - npx vite build+ - cargo --offline build --release --manifest-path src-tauri/Cargo.toml+ - install -Dm755 src-tauri/target/release/omniget /app/bin/omniget+ - install -Dm644 flatpak/wtf.tonho.omniget.desktop /app/share/applications/wtf.tonho.omniget.desktop+ - install -Dm644 flatpak/wtf.tonho.omniget.metainfo.xml /app/share/metainfo/wtf.tonho.omniget.metainfo.xml+ - install -Dm644 flatpak/wtf.tonho.omniget.png /app/share/icons/hicolor/128x128/apps/wtf.tonho.omniget.png+ sources:+ - type: dir+ path: ..+ - cargo-sources.json+ - node-sources.json