Add Flatpak packaging (com.hotconfig.LightGUI)

Flatpak manifest (GNOME Platform 48, GTK 3) + launcher, desktop file,
metainfo and app icon. Builds the designer plus the XFrame palette and
layout windows, installs them under /app/share/lightgui/ mirroring the
repo layout, and launches the combined IDE via the ide script.
build-flatpak.sh builds the Flatpak and a single-file bundle.
This commit is contained in:
cnmcdee committed 2026-11-29 15:07:37 +00:00
1 parent d48d49f60c
commit 90d72a82b3
6 files changed
+81

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
#!/bin/bash
# Build the LightGUI (C) Flatpak and a single-file bundle.
# Run from the repo root: bash flatpak/build-flatpak.sh
# Outputs: LightGUI.flatpak (single-file bundle) in the repo root.
set -e
cd "$(dirname "$0")/.."
MANIFEST=flatpak/com.hotconfig.LightGUI.yaml
APP_ID=com.hotconfig.LightGUI
BUILD_DIR=${BUILD_DIR:-/tmp/flatpak-build-lightgui}
REPO_DIR=${REPO_DIR:-/tmp/flatpak-repo-lightgui}
flatpak-builder --force-clean --repo="$REPO_DIR" "$BUILD_DIR" "$MANIFEST"
flatpak build-bundle "$REPO_DIR" LightGUI.flatpak "$APP_ID" --runtime-repo=https://dl.flathub.org/repo/flathub.flatpakrepo
ls -lh LightGUI.flatpak
+10
View File
@@ -0,0 +1,10 @@
[Desktop Entry]
Type=Application
Name=LightGUI
GenericName=GUI Designer
Comment=Visual GUI designer for GTK 3 in C++
Exec=lightgui
Icon=com.hotconfig.LightGUI
Terminal=false
Categories=Development;IDE;GUIDesigner;
Keywords=GTK;GUI;designer;widgets;IDE;
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop-application">
<id>com.hotconfig.LightGUI</id>
<metadata_license>MIT</metadata_license>
<project_license>MIT</project_license>
<name>LightGUI</name>
<summary>Visual GUI designer for GTK 3 in C++</summary>
<description>
<p>LightGUI is a visual designer for building GTK 3 applications in C++. Place widgets on a canvas at absolute positions, edit their properties in the Object Inspector, and generate runnable C++/GTK source code — a Glade layout file plus a C++ class with stub signal handlers, a Makefile and a CMakeLists.txt.</p>
<p>It ships 547 hand-drawn XFrame widgets in a 583-entry combined palette, a GDB stepping debugger (Run, Step Over/Into/Out, breakpoints, watches, locals), an editable code view with Ctrl+S save, and a UI theme editor with five coding presets.</p>
</description>
<launchable type="desktop-id">com.hotconfig.LightGUI.desktop</launchable>
<url type="homepage">https://github.com/cnmcdee/lightgui</url>
<url type="vcs-browser">https://github.com/cnmcdee/lightgui</url>
<provides>
<id>com.hotconfig.LightGUI.desktop</id>
</provides>
</component>
+35
View File
@@ -0,0 +1,35 @@
app-id: com.hotconfig.LightGUI
runtime: org.gnome.Platform
runtime-version: '48'
sdk: org.gnome.Sdk
command: lightgui
finish-args:
- --share=ipc
- --socket=fallback-x11
- --socket=wayland
- --device=dri
- --filesystem=home
modules:
- name: lightgui
buildsystem: simple
sources:
- type: git
url: https://github.com/cnmcdee/lightgui.git
branch: main
build-commands:
- make lightgui -j$(nproc)
- cmake -S widgets -B widgets/build -DCMAKE_BUILD_TYPE=Release
- cmake --build widgets/build -j$(nproc) --target lightgui_palette lightgui_layout
- install -Dm755 lightgui /app/share/lightgui/lightgui
- install -Dm755 ide /app/share/lightgui/ide
- install -Dm644 ui/designer.ui /app/share/lightgui/ui/designer.ui
- mkdir -p /app/share/lightgui/icons
- cp icons/*.png /app/share/lightgui/icons/
- install -Dm755 widgets/build/palette/lightgui_palette /app/share/lightgui/widgets/build/palette/lightgui_palette
- install -Dm755 widgets/build/layout/lightgui_layout /app/share/lightgui/widgets/build/layout/lightgui_layout
- mkdir -p /app/share/lightgui/widgets/icons
- cp widgets/icons/* /app/share/lightgui/widgets/icons/
- install -Dm755 flatpak/lightgui-launcher /app/bin/lightgui
- install -Dm644 flatpak/com.hotconfig.LightGUI.desktop /app/share/applications/com.hotconfig.LightGUI.desktop
- install -Dm644 flatpak/com.hotconfig.LightGUI.metainfo.xml /app/share/metainfo/com.hotconfig.LightGUI.metainfo.xml
- install -Dm644 flatpak/icon.png /app/share/icons/hicolor/512x512/apps/com.hotconfig.LightGUI.png
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 218 KiB

+5
View File
@@ -0,0 +1,5 @@
#!/bin/sh
# LightGUI Flatpak launcher — start the combined IDE (designer + palette + layout).
# The ide script expects to live next to the binaries, ui/ and widgets/,
# which are installed under /app/share/lightgui/.
exec /app/share/lightgui/ide "$@"