Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a flatpak and publish on flathub #23

Closed
5 of 6 tasks
Jacalz opened this issue Sep 9, 2021 · 6 comments
Closed
5 of 6 tasks

Create a flatpak and publish on flathub #23

Jacalz opened this issue Sep 9, 2021 · 6 comments
Labels
enhancement New feature or request infrastructure Issues related to project infrastructure. os-linux Issues specific to running on Linux
Milestone

Comments

@Jacalz
Copy link
Owner

Jacalz commented Sep 9, 2021

Description:

This is a kind of progress report issue on trying to get wormhole-gui working as a flatpak. I have a manifest below that manages to build it without complaining too much.

Further work

  • Switch the app-id and all relevant files to "io.github.jacalz.wormhole_gui".
  • Use module vendor to comply with stricter build configs without network support.
  • Make the file system access a bit less strict (more than just the documents folder).
  • Add access to the fyne settings files.
  • Make the notifications work (some kind of dbus issue or might need to use the portal: https://flatpak.github.io/xdg-desktop-portal/portal-docs.html#gdbus-org.freedesktop.portal.Notification).
  • Work upstream with Fyne on potentially better flatpak support (if needed).

Manifest

app-id: io.github.jacalz.rymdport
runtime: org.freedesktop.Platform
runtime-version: '21.08'
sdk: org.freedesktop.Sdk
sdk-extensions:
    - org.freedesktop.Sdk.Extension.golang
command: rymdport

finish-args:
    - --share=ipc # Share IPC namespace with the host (necessary for X11).
    - --share=network
    - --socket=x11
    - --device=dri # OpenGL rendering support.

    # The below are commented out until there is out of the box support for wayland.
    #- --socket=fallback-x11 # Only create the x11 socket if wayland isn't avaliable.
    #- --socket=wayland

    # Needed to support desktop notifications.
    - --talk-name=org.freedesktop.Notifications

    # Support only the most common directories.
    - --filesystem=xdg-desktop
    - --filesystem=xdg-documents
    - --filesystem=xdg-download
    - --filesystem=xdg-music
    - --filesystem=xdg-pictures
    - --filesystem=xdg-videos

build-options:
  env:
    - GOBIN=/app/bin
    - GOROOT=/usr/lib/sdk/golang

modules:
    - name: rymdport
      buildsystem: simple
      build-commands:
        - $GOROOT/bin/go build -ldflags="-s -w" -o rymdport
        - install -Dm00755 rymdport $FLATPAK_DEST/bin/rymdport
        - install -Dm00644 internal/assets/icon/icon-512.png $FLATPAK_DEST/share/icons/hicolor/512x512/apps/$FLATPAK_ID.png
        - install -Dm00644 internal/assets/svg/icon.svg $FLATPAK_DEST/share/icons/hicolor/scalable/apps/$FLATPAK_ID.png
        - install -Dm00644 internal/assets/unix/$FLATPAK_ID.desktop $FLATPAK_DEST/share/applications/$FLATPAK_ID.desktop
        - install -Dm00644 internal/assets/unix/$FLATPAK_ID.appdata.xml $FLATPAK_DEST/share/appdata/$FLATPAK_ID.appdata.xml
      sources:
        - type: archive
          url: "https://github.com/Jacalz/rymdport/releases/download/v3.0.1/rymdport-v3.0.1.tar.xz"
          sha256: 7fcc0d7dce44a590796aa446bdb8a6c9365c453dde64e46477f041b6a48b37a7
@Jacalz Jacalz added enhancement New feature or request os-linux Issues specific to running on Linux labels Sep 9, 2021
@Jacalz
Copy link
Owner Author

Jacalz commented Sep 9, 2021

Good news! I have a working flatpak. There is a lot of stuff that needs to be tidied up and improved, but it is working and quite well it seems :)

@Jacalz

This comment was marked as outdated.

@Jacalz

This comment was marked as outdated.

@Jacalz Jacalz added the blocked Blocked by issues elsewhere. label Mar 5, 2022
@Jacalz Jacalz removed the blocked Blocked by issues elsewhere. label Apr 1, 2022
@Jacalz Jacalz modified the milestones: v3.1.0, v3.0.x Apr 1, 2022
@Jacalz
Copy link
Owner Author

Jacalz commented Apr 1, 2022

Great news! I now have a PR up for publishing on Flathub: flathub/flathub#2971 🥳

@Jacalz
Copy link
Owner Author

Jacalz commented Apr 4, 2022

The repository is now created at https://github.com/flathub/io.github.jacalz.rymdport. It does not seem to be up on the flathub.org site yet, but I guess that will happen sometime soon.

@Jacalz Jacalz closed this as completed Apr 4, 2022
@Jacalz
Copy link
Owner Author

Jacalz commented Apr 5, 2022

It was published and made available yesterday evening: https://flathub.org/apps/details/io.github.jacalz.rymdport

Enjoy 🙂

@Jacalz Jacalz added the infrastructure Issues related to project infrastructure. label Dec 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request infrastructure Issues related to project infrastructure. os-linux Issues specific to running on Linux
Projects
None yet
Development

No branches or pull requests

1 participant