Commit graph

252 commits

Author SHA1 Message Date
Bruno Lopes
d8a264283b
build/linux: Take AppStream metadata for Snap package
Like the Flatpak and, at a lesser extent, AppImage.
2025-08-15 10:34:31 -03:00
Bruno Lopes
bb1d96528d
build/linux: Update Snap README regarding babl and GEGL tagging 2025-08-15 10:34:11 -03:00
Bruno Lopes
9eee96328b
build/linux: appimagetool now supports specifying .appimage path on .zsync
See: https://github.com/AppImage/appimagetool/pull/111
2025-08-14 21:44:15 -03:00
Bruno Lopes
79a92ce439
build/linux: Use $CRAFT_PART_INSTALL for libheif plugins detection on Snap
$CRAFT_STAGE was being used but that is wrong since nothing is staged yet.
$CRAFT_PART_INSTALL is the right place where the packages are available.
2025-08-14 19:32:22 -03:00
Bruno Lopes
eefc2bea1a
build/linux: Drop org.gimp.*.HEIC in favor of org.freedesktop.*.codecs-extra
See: https://github.com/flathub/org.gimp.GIMP/issues/414
2025-08-14 19:32:19 -03:00
Bruno Lopes
0c1963ca7c
build/linux: Only submit snaps to Snap Store on releases 2025-08-14 19:21:30 -03:00
Bruno Lopes
0868cf3cd3
build/linux: More fixes to the README 2025-08-14 16:21:24 -03:00
Bruno Lopes
bb26b9f81d
build/linux: Fix some typos on Snap README 2025-08-14 16:19:15 -03:00
Bruno Lopes
052eb474cc
build/linux: Add Snap maintenance README like Flatpak and MSIX
But, right now, the "## Stable and Development releases"
section is not applicable due to the pass over being WIP:
https://github.com/snapcrafters/gimp/issues/447
2025-08-14 16:16:17 -03:00
Bruno Lopes
2e12de6747
build/linux: Change collapsible section ID to the more technical '*_submission'
We already use '*_submission' on the MSIX script.

Submission is the first act, the one which we trigger on CI.
The publishing is done by the store (Flathub or Snap Store).
2025-08-12 22:38:49 -03:00
Bruno Lopes
839064a6c6
build, gitlab-ci: Drop last ccache shenanigans
Let's prioritize reproducibility over small performance gains,
specially when we have too many packages do deal with.
2025-08-12 16:33:32 -03:00
Bruno Lopes
56cc7e363b
build/linux, gitlab-ci: Change .flatpak-builder artifact naming to be more consistent 2025-08-12 16:25:31 -03:00
Bruno Lopes
aee3bd23d6
build/linux: Restore comment of '--destructive-mode'/host mode on Snap script
It was on the env section before the remote-build drop. Let's restore it and
move to the build section which is more appropriate.
2025-08-12 16:07:16 -03:00
Bruno Lopes
a87ee3c241
build/linux: Add check to ensure we use the right 'snapcraft-rocks' image
If the container image don't have the base snap required by
snapcraft.yaml, it will naturally fail.
2025-08-12 12:21:40 -03:00
Bruno Lopes
d4aac4a3e5
build/linux: Rework deps installation message on Snap script
The new text is more alike to the flatpak one, which
should make easier to understand both scripts.
2025-08-11 22:20:51 -03:00
Bruno Lopes
5da4b89002
build/linux: Make Snap on GNOME runners (not on Launchpad)
Now can make snaps 3x faster on CI without snapcraft remote-build.
2025-08-11 22:13:23 -03:00
Bruno Lopes
b960be9735
build/linux: Remove redundant plugs: in favor of 'gnome' Snap extension
See: https://documentation.ubuntu.com/snapcraft/stable/reference/extensions/gnome-extension/
2025-08-11 13:11:45 -03:00
Bruno Lopes
3bf6aaa0fa
build/linux: Update imath and graphviz flatpak modules
Synced from: e6c69021e3
2025-08-09 09:10:01 -03:00
Bruno Lopes
d5d6b5e726
build/linux: Add comment about why we don't use config.h on Snap dist 2025-08-08 22:38:28 -03:00
Bruno Lopes
771fcb576f
build/linux: Add some sub comments on flatpak dist tools section 2025-08-08 22:18:16 -03:00
Bruno Lopes
0f91efa3d5
build/linux: Clarify files/repo section comment on Flatpak dist script 2025-08-08 22:11:35 -03:00
Bruno Lopes
bf03d71ad2
build/linux: Fix .snap path on 'snapcraft upload' command 2025-08-08 22:08:34 -03:00
Bruno Lopes
855d07193b
build/linux: Remove exit check on flatpak dist
Let's hope this fixes the bug.
2025-08-08 19:20:24 -03:00
Bruno Lopes
6645f245cb
build/linux: Hopefully bug of only aarch64 being distributed due to exit code 2025-08-08 17:37:27 -03:00
Bruno Lopes
4a9b98fc05
Revert "build/linux: build-update-repo is arch-specific"
This reverts commit 7e280c9b58.

Seems it is not arch-specific. The error we were experiencing was due to
the bug fixed in 19e83a0e.
2025-08-08 17:31:57 -03:00
Bruno Lopes
19e83a0eb5
build/linux: Fix wrong extraction of repo*.tar 2025-08-08 15:58:26 -03:00
Bruno Lopes
7e280c9b58
build/linux: build-update-repo is arch-specific 2025-08-08 11:57:15 -03:00
Bruno Lopes
e1b2b44f3b
build/linux: Fix typo in flatmanager_text variable evaluation 2025-08-08 06:23:56 -03:00
Bruno Lopes
34285d4459
build/linux: Fix build-bundle on gimp job after
a6544047
2025-08-07 21:59:30 -03:00
Bruno Lopes
0f09167e50
build/linux: Fix lack of desktop icon when running Snap 2025-08-07 20:54:34 -03:00
Bruno Lopes
fa19794d74
build/linux: Add comment about 'dot' situation on snapcraft.yaml 2025-08-07 19:02:19 -03:00
Bruno Lopes
1ec86c7d6a
build/linux: Fix for glib_networking_works test on Snap 2025-08-07 13:39:12 -03:00
Bruno Lopes
3c02c8bcb7
build/linux: Remove bogus pygimp.interp creation on Snap 2025-08-07 10:47:38 -03:00
Bruno Lopes
a65440478c
build/linux: Fix local distribution of .flatpak 2025-08-07 09:59:04 -03:00
Bruno Lopes
56e8275690
build/linux: Add 'snapcraft pack' code on local snaps 2025-08-07 09:23:10 -03:00
Bruno Lopes
c25418f38a
build/linux: Fix 'if not can_import_heic and not can_import_avif' test on Snap
Similar to c860ffe2 but now for build-time.
2025-08-07 08:41:20 -03:00
Bruno Lopes
effedb9248
build/linux: Print more debug info on Snap dist: name, track and gimp_version
That completes a3aca3c1 making the snap script just like the other ones but
it differs on the way to get GIMP_UNSTABLE since we don't have access to
the GIMP's config.h file after building with snapcraft remote-build.
2025-08-07 08:00:04 -03:00
Bruno Lopes
f157206146
build/linux: License snapcraft.yaml under GPL-3.0+
Like all other build files in this repo
2025-08-07 06:19:08 -03:00
Bruno Lopes
59ab053ab9
build/linux: Fix libheif comment on Snapcraft (it is HEJ2 not J2K)
So, in commits c860ffe2 and 2e5ac18d you should read HEJ2
2025-08-07 06:05:19 -03:00
Bruno Lopes
2e5ac18d78
build/linux: Do not plug with useless ffmpeg content snap
libheif from GNOME SDK Snap can't directly use codecs from ffmpeg due
to the use of plugin system (plugins on LIBHEIF_PLUGIN_PATH) at build time.

Also, even if it could (by custom building, which I don't plan to do),
codecs like libde265/x265 are always present in GNOME runtime Snap
(unlike GNOME runtime flatpak) so there is no way of not installing them.
2025-08-06 21:10:00 -03:00
Bruno Lopes
c860ffe2a8
build/linux: Fix AVIF, HEIC and J2K support on Snap package
The GNOME SDK Snap have only AVIF and HEIC decoding plugins,
no AVIF or HEIC encoding plugins and no J2K at all. So,
let's complete the support with 'build-packages:'.
2025-08-06 20:17:09 -03:00
Bruno Lopes
863152f1af
build/linux: Add comment about wreid libexpat1-dev situation on Snap 2025-08-06 11:53:41 -03:00
Bruno Lopes
d6766cc374
build/linux: Update libheif Flatpak module to 1.20.2
Synced from 93db928805
2025-08-06 10:36:01 -03:00
Bruno Lopes
687382b98d
build/linux: Move build-bundle code back to 3_dist-gimp-flatpakbuilder.sh
This makes more clear that making .flatpak is a dist stuff while
maintaining the multiarch support introduced in caf46017.
2025-08-06 08:03:54 -03:00
Bruno Lopes
f989b4f50c
build/linux: Add comment about libaa1-dev too on snapcraft.yaml
Following cdcdda4060

This one of the packages that it is on SDK snap but incompletely.
2025-08-05 20:14:45 -03:00
Bruno Lopes
a65d7a64a2
build/linux: Better support for local Snap builds 2025-08-05 19:21:44 -03:00
Bruno Lopes
ba31ef35d4
build/linux: Remove redundant libopenexr
It is already provided at runtime by GNOME 46 snap
2025-08-05 18:41:07 -03:00
Bruno Lopes
778f81984f
build/linux: Remove redundant libappstream-dev
It is already provided by the GNOME 46 SDK snap
2025-08-05 18:04:43 -03:00
Bruno Lopes
ba60cab0a6
build/linux: Set -Dlibdir on Snap building
On my tests, this is needed locally.
2025-08-05 18:04:41 -03:00
Bruno Lopes
cdcdda4060
build/linux: Add comments on packages that are also on GNOME SDK Snap 2025-08-05 18:04:37 -03:00