diff --git a/.github/workflows/flatpak-build.yaml b/.github/workflows/flatpak-build.yaml new file mode 100644 index 00000000..19b20837 --- /dev/null +++ b/.github/workflows/flatpak-build.yaml @@ -0,0 +1,28 @@ +name: Flatpak Build + +on: + push: + branches: + - master + # TODO: remove + - flatpak + pull_request: + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + container: + image: bilelmoussaoui/flatpak-github-actions:gnome-42 + options: --privileged + steps: + - uses: actions/checkout@v4 + with: + submodules: true + + - name: Build Flatpak bundle + uses: flatpak/flatpak-github-actions/flatpak-builder@v6 + with: + bundle: overlayed.flatpak + manifest-path: distribution/dev.overlayed.Overlayed.yaml + cache-key: flatpak-builder-${{ github.ref }} diff --git a/distribution/dev.overlayed.Overlayed.desktop b/distribution/dev.overlayed.Overlayed.desktop new file mode 100644 index 00000000..4ea2c947 --- /dev/null +++ b/distribution/dev.overlayed.Overlayed.desktop @@ -0,0 +1,13 @@ + +[Desktop Entry] +Name=Overlayed +Comment=A Discord overlay for Linux +Exec=overlayed +Icon=dev.overlayed.Overlayed +Type=Application +Terminal=false +StartupNotify=true +Categories=Game; +Keywords=discord; +StartupWMClass=Overlayed +Version=1.4 diff --git a/distribution/dev.overlayed.Overlayed.metainfo.xml b/distribution/dev.overlayed.Overlayed.metainfo.xml new file mode 100644 index 00000000..61fe3de4 --- /dev/null +++ b/distribution/dev.overlayed.Overlayed.metainfo.xml @@ -0,0 +1,38 @@ + + + com.overlayed.Overlayed + com.overlayed.Overlayed.desktop + Overlayed + Team Overlayed + A discord overlay + CC0-1.0 + GPL-3.0-only + https://overlayed.dev + https://github.com/overlayeddev/overlayed/issues + https://github.com/overlayeddev/overlayed + https://github.com/overlayeddev/overlayed + +

See who's speaking in your Discord voice channel with a movable overlay, compatible with almost every game or app.

+ +
+ + + The home screen of the app + https://assets.overlayed.dev/appdir/pres/slide1.png + + + + + https://github.com/overlayeddev/overlayed/releases/tag/v0.5.0 + + + + moderate + intense + +
diff --git a/distribution/dev.overlayed.Overlayed.yaml b/distribution/dev.overlayed.Overlayed.yaml new file mode 100644 index 00000000..cd9ffb76 --- /dev/null +++ b/distribution/dev.overlayed.Overlayed.yaml @@ -0,0 +1,50 @@ +id: dev.overlayed.Overlayed + +runtime: org.gnome.Platform +runtime-version: "45" +sdk: org.gnome.Sdk + +rename-icon: overlayed +command: overlayed +finish-args: + # NOTE: not sure if this is for both IPC and Websockets transports + - --filesystem=xdg-run/app/com.discordapp.Discord:create # allows for discord rpc + - --device=all + - --share=ipc + - --share=network + - --socket=x11 + - --socket=wayland + +modules: + - name: overlayed + buildsystem: simple + build-commands: + - chmod +x Overlayed.AppImage + - ./Overlayed.AppImage --appimage-extract + + - | + desktop-file-edit \ + --set-name="Overlayed App" \ + --set-comment="Overlayed's game launcher" \ + --set-icon="$FLATPAK_ID" \ + --set-key="StartupNotify" --set-value="true" \ + --set-key="Categories" --set-value="Game;ActionGame;AdventureGame;Simulation;" \ + --set-key="Keywords" --set-value="game;minecraft;mc;" \ + --set-key="StartupWMClass" --set-value="Overlayed" \ + squashfs-root/usr/share/applications/overlayed.desktop + + - mkdir -p /app/{bin,share} + - cp -r squashfs-root/usr/share/icons /app/share/icons + - install -Dm755 squashfs-root/usr/bin/overlayed /app/bin/overlayed + - install -Dm644 squashfs-root/usr/share/applications/overlayed.desktop /app/share/applications/dev.overlayed.Overlayed.desktop + - install -Dm644 dev.overlayed.Overlayed.metainfo.xml /app/share/metainfo/dev.overlayed.OverlayedApp.metainfo.xml + + sources: + - type: file + path: dev.overlayed.Overlayed.metainfo.xml + + - type: file + url: https://github.com/overlayeddev/overlayed/releases/download/v0.5.0/overlayed_0.5.0_amd64.AppImage + dest-filename: Overlayed.AppImage + sha256: bbcc773e89ba6cdbf4b3e91156b2702b2a82a91b5df7a8bbd2e274d5104a9725 + only-arches: [x86_64]