Commit graph

243 commits

Author SHA1 Message Date
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
Bruno Lopes
98a1009c4a
build/linux: Reduce redundancy of 'build-environment' on snapcraft.yaml 2025-08-05 18:04:30 -03:00
Jehan
40adbff456 app, build: fix MR !2326 (porting to libappstream).
The following things were broken:

* Remove gdk-pixbuf-2.0/ from gdk-pixbuf include (this is part of the -I
  directory in the pkg-config data).
* Properly free the allocated AsMetadata which were leaked (while the
  AsComponent was freed mistakenly since it belongs to the AsMetadata).
* Properly free GFile as a GObject (it must not be freed with g_free()!).
* Fix various coding style bugs.
* Fix installing a .gex file by dropping it in GIMP. The code in
  file_gex_validate() was completely broken as it was not parsing the
  AppStream metadata anymore.
* Mininum libappstream requirement moved down to 0.16.1 so that GIMP can
  be built on Debian bookworm (our dependency baseline).
* Fix Snap build (hopefully, untested).
2025-08-04 18:56:42 +00:00
Joey Riches
8277817b62 app: Port from appstream-glib to appstream
From the horse's mouth:
"WARNING: appstream-glib is heavy maintenance mode, use appstream
instead"

Additionally, appstream-glib no longer conforms fully to the
appstream specification.

Some care is taken to taken to support both libappstream 1.0 as well
as libappstream 0.16.x to support stable distros.
2025-08-04 18:56:42 +00:00
Bruno Lopes
3d9e95a2f4
build/linux: Remove empty line on Flatpak gimp script for consistency with Win 2025-08-04 15:07:20 -03:00
Bruno Lopes
a269410d6b
build/linux: Add missing submodule init on local mode of Snap script 2025-08-04 15:05:48 -03:00
Bruno Lopes
6ab5402195
build/linux: Make flatpak env section more consistent with Snap script 2025-08-04 14:37:38 -03:00
Bruno Lopes
05f85e79d1
build/linux: Bump qoi module commit
The recent commit promisses slighty better performance.
2025-08-04 08:53:27 -03:00
Bruno Lopes
7f7ee96717
build/linux: Update poppler module to 25.08 2025-08-04 08:44:08 -03:00
Bruno Lopes
893f268e60
build/linux: Complete a3aca3c1 2025-08-03 19:47:24 -03:00