Skip to content

Commit

Permalink
build: remove flatpak (#4005) (#4006)
Browse files Browse the repository at this point in the history
ref: #3945 (comment)

Ignite is available on Homebrew (Linux + macOS): https://formulae.brew.sh/formula/ignite#default
And the snap store (Linux): https://snapcraft.io/ignite

We have CI configured already to publish releases for both of them.
I as well added the Flatpak support, but it is harder to release automatically, and we already have two packages managers for linux. Imho we should just remove it.

(cherry picked from commit 97b8c24)

Co-authored-by: Julien Robert <[email protected]>
  • Loading branch information
mergify[bot] and julienrbrt authored Mar 12, 2024
1 parent 6fe4e8c commit fef65f3
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 143 deletions.
4 changes: 0 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@ build:
snapcraft:
@sed -i 's/{{version}}/'$(version)'/' packaging/snap/snapcraft.yaml

## prepare flatpak manifest for release
flatpak:
@sed -i 's/{{version}}/'$(version)'/' packaging/flatpak/com.ignite.Ignite.yml

## mocks: generate mocks
mocks:
@echo Generating mocks
Expand Down
1 change: 0 additions & 1 deletion packaging/.gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
.flatpak-builder
build-dir
repo
*.snap
33 changes: 0 additions & 33 deletions packaging/flatpak/com.ignite.Ignite.yml

This file was deleted.

10 changes: 0 additions & 10 deletions packaging/flatpak/ignite.desktop

This file was deleted.

61 changes: 0 additions & 61 deletions packaging/flatpak/ignite.metainfo.xml

This file was deleted.

15 changes: 0 additions & 15 deletions packaging/flatpak/logo.svg

This file was deleted.

19 changes: 0 additions & 19 deletions packaging/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,6 @@

Ignite CLI is distributed on multiple platforms and package managers. This document describes how to package and distribute Ignite CLI.

## Flatpak

Read the folowing resources to understand Flatpak.

* <https://docs.flathub.org/docs/category/for-app-authors>
* <https://docs.flatpak.org/en/latest/first-build.html>

```bash
cd packaging/flatpak
sudo apt install flatpak-builder
flatpak install org.freedesktop.Platform//23.08 org.freedesktop.Sdk//23.08 org.freedesktop.Sdk.Extension.golang//23.08
flatpak-builder build-dir com.ignite.Ignite.yml --force-clean
flatpak-builder --user --install--force-clean --repo=repo build-dir com.ignite.Ignite.yml
flatpak run com.ignite.Ignite
```

The Flatpak is published at <https://flathub.org/apps/com.ignite.Ignite>.
The update process is done manually at <https://github.com/flathub/com.ignite.Ignite> at the moment. At each release, edit `com.ignite.Ignite.yml` and the metainfo file to update the version.

## Snap

Read the folowing resources to understand Snap.
Expand Down

0 comments on commit fef65f3

Please sign in to comment.