Flatpak manifest (GNOME Platform 48, GTK 3, rust-stable SDK extension) + launcher, desktop file, metainfo and app icon. Builds the designer, xframe-palette and xframe-layout with cargo --offline from the vendored crates (flatpak/cargo-sources.json, generated from Cargo.lock with flatpak-cargo-generator.py), installs them under /app/share/lightgui-rust/, and launches the combined IDE. The XFrame icons come from the C repo (second git source). build-flatpak.sh builds the Flatpak and a single-file bundle.
17 lines
886 B
Bash
Executable File
17 lines
886 B
Bash
Executable File
#!/bin/bash
|
|
# Build the LightGUI Rust Flatpak and a single-file bundle.
|
|
# Run from the repo root: bash flatpak/build-flatpak.sh
|
|
# Outputs: LightGUIRust.flatpak (single-file bundle) in the repo root.
|
|
# The cargo-sources.json (flatpak/cargo-sources.json) is generated from
|
|
# Cargo.lock with flatpak-cargo-generator.py; regenerate it after any
|
|
# Cargo.lock change: flatpak-cargo-generator.py Cargo.lock -o flatpak/cargo-sources.json
|
|
set -e
|
|
cd "$(dirname "$0")/.."
|
|
MANIFEST=flatpak/com.hotconfig.LightGUIRust.yaml
|
|
APP_ID=com.hotconfig.LightGUIRust
|
|
BUILD_DIR=${BUILD_DIR:-/tmp/flatpak-build-lightgui-rust}
|
|
REPO_DIR=${REPO_DIR:-/tmp/flatpak-repo-lightgui-rust}
|
|
flatpak-builder --force-clean --repo="$REPO_DIR" "$BUILD_DIR" "$MANIFEST"
|
|
flatpak build-bundle "$REPO_DIR" LightGUIRust.flatpak "$APP_ID" --runtime-repo=https://dl.flathub.org/repo/flathub.flatpakrepo
|
|
ls -lh LightGUIRust.flatpak
|