flutpak implimentation for flatpak

This commit is contained in:
yaso 2026-06-11 12:35:01 +02:00
parent c15b9807b1
commit 9f1daa3259
9 changed files with 43 additions and 56 deletions

2
mih_ui/flatpak/.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
# Generated by flutpak — https://github.com/o-murphy/flutpak
generated/

View file

@ -1,19 +0,0 @@
# Uninstall old version (safe if not installed)
flatpak uninstall --user za.co.mzansiinnovationhub.mih || true
# Remove old build data
rm -rf .flatpak-builder/ build-dir/ repo/
# Lint before building (catch errors early)
flatpak run --command=flatpak-builder-lint org.flatpak.Builder manifest za.co.mzansiinnovationhub.mih.yml
flatpak run --command=flatpak-builder-lint org.flatpak.Builder appstream za.co.mzansiinnovationhub.mih.metainfo.xml
# Dev build — fast iteration and local testing
flatpak-builder --user --install --force-clean build-dir za.co.mzansiinnovationhub.mih.yml
# Run and test the app
flatpak run za.co.mzansiinnovationhub.mih
# Flathub build — simulates Flathub's build environment, run before submitting
flatpak run --command=flathub-build org.flatpak.Builder --install za.co.mzansiinnovationhub.mih.yml
flatpak run --command=flatpak-builder-lint org.flatpak.Builder repo repo

View file

@ -0,0 +1,5 @@
#!/bin/sh
# Generated by flutpak — https://github.com/o-murphy/flutpak
APP=/app/mih
export LD_LIBRARY_PATH="$APP/lib:${LD_LIBRARY_PATH:-}"
exec "$APP/mih" "$@"

View file

@ -1,12 +0,0 @@
[Desktop Entry]
Version=1.0
Type=Application
Name=MIH
GenericName=Personal and Business Super App
Comment=Your all-in-one super app for personal and business life in Mzansi
Exec=mzansi_innovation_hub %u
Icon=za.co.mzansiinnovationhub.mih
Terminal=false
Categories=Utility;Office;ProjectManagement;
Keywords=MIH;Mzansi;Innovation;Hub;Profile;Wallet;Calendar;AI;
StartupWMClass=mzansi_innovation_hub

View file

@ -1,142 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop-application">
<id>za.co.mzansiinnovationhub.mih</id>
<name>MIH</name>
<summary>Your all-in-one super app for personal and business life in Mzansi</summary>
<metadata_license>CC0-1.0</metadata_license>
<project_license>GPL-3.0</project_license>
<developer id="za.co.mzansiinnovationhub">
<name>Mzansi Innovation Hub</name>
</developer>
<description>
<p>
Tired of juggling multiple apps for your daily needs? MIH, the first super app of Mzansi by Mzansi Innovation Hub, is your all-in-one platform designed to streamline both your personal and business life. From managing your professional profile and team to keeping track of appointments and even getting quick calculations, MIH has you covered.
</p>
<ul>
<li>Mzansi Profile: Your central hub to effortlessly manage personal and business information, including your valuable business team details.</li>
<li>Mzansi Wallet: Digitally store all your loyalty cards in one convenient place.</li>
<li>Patient Manager: Revolutionize your practice with seamless patient appointment scheduling and data management.</li>
<li>Mzansi AI: Chat with our friendly AI assistant for quick answers and support.</li>
<li>Mzansi Directory: A place to search and find out more about the people and businesses across Mzansi.</li>
<li>Calendar: Stay organized with an integrated calendar to manage all your personal and business appointments.</li>
<li>Calculator: Get quick calculations done with a simple calculator, plus easily calculate tips and forex.</li>
<li>MIH Access: Take control of your security by easily managing and viewing who has access to your profile.</li>
<li>MIH Minesweeper: The classic brain-teaser ready to entertain you no matter where you are.</li>
</ul>
</description>
<launchable type="desktop-id">za.co.mzansiinnovationhub.mih.desktop</launchable>
<screenshots>
<screenshot type="default">
<caption>Personal Home of the MIH App.</caption>
<image width="1920" height="1080">https://git.mzansi-innovation-hub.co.za/yaso_meth/mih-project/raw/branch/main/mih_screenshots/mih_personal_home.png</image>
</screenshot>
<screenshot>
<caption>Business Home of the MIH App.</caption>
<image width="1920" height="1080">https://git.mzansi-innovation-hub.co.za/yaso_meth/mih-project/raw/branch/main/mih_screenshots/mih_business_home.png</image>
</screenshot>
<screenshot>
<caption>Mzansi Personal Profile.</caption>
<image width="1920" height="1080">https://git.mzansi-innovation-hub.co.za/yaso_meth/mih-project/raw/branch/main/mih_screenshots/mzansi_personal_profile.png</image>
</screenshot>
<screenshot>
<caption>Mzansi Business Profile.</caption>
<image width="1920" height="1080">https://git.mzansi-innovation-hub.co.za/yaso_meth/mih-project/raw/branch/main/mih_screenshots/mzansi_business_profile.png</image>
</screenshot>
<screenshot>
<caption>Mzansi Wallet.</caption>
<image width="1920" height="1080">https://git.mzansi-innovation-hub.co.za/yaso_meth/mih-project/raw/branch/main/mih_screenshots/mzansi_wallet.png</image>
</screenshot>
<screenshot>
<caption>Patient Profile/ Manager</caption>
<image width="1920" height="1080">https://git.mzansi-innovation-hub.co.za/yaso_meth/mih-project/raw/branch/main/mih_screenshots/patient_profile.png</image>
</screenshot>
<screenshot>
<caption>Mzansi Directory</caption>
<image width="1920" height="1080">https://git.mzansi-innovation-hub.co.za/yaso_meth/mih-project/raw/branch/main/mih_screenshots/mzansi_directory.png</image>
</screenshot>
<screenshot>
<caption>MIH Calendar</caption>
<image width="1920" height="1080">https://git.mzansi-innovation-hub.co.za/yaso_meth/mih-project/raw/branch/main/mih_screenshots/mih_calendar.png</image>
</screenshot>
<screenshot>
<caption>Mzansi AI</caption>
<image width="1920" height="1080">https://git.mzansi-innovation-hub.co.za/yaso_meth/mih-project/raw/branch/main/mih_screenshots/mzansi_ai.png</image>
</screenshot>
<screenshot>
<caption>MIH Calculator</caption>
<image width="1920" height="1080">https://git.mzansi-innovation-hub.co.za/yaso_meth/mih-project/raw/branch/main/mih_screenshots/mih_calculator.png</image>
</screenshot>
<screenshot>
<caption>MIH Minesweeper</caption>
<image width="1920" height="1080">https://git.mzansi-innovation-hub.co.za/yaso_meth/mih-project/raw/branch/main/mih_screenshots/mih_minesweeper.png</image>
</screenshot>
<screenshot>
<caption>About MIH</caption>
<image width="1920" height="1080">https://git.mzansi-innovation-hub.co.za/yaso_meth/mih-project/raw/branch/main/mih_screenshots/about_mih.png</image>
</screenshot>
</screenshots>
<url type="homepage">https://app.mzansi-innovation-hub.co.za/</url>
<url type="vcs-browser">https://git.mzansi-innovation-hub.co.za/yaso_meth/mih-project</url>
<url type="bugtracker">https://git.mzansi-innovation-hub.co.za/yaso_meth/mih-project/issues</url>
<releases>
<release version="1.3.0" date="2026-06-05">
<description>
<p>NEW FEATURES:-</p>
<ul>
<li>Profile Links: Profile Links Added to Mzansi &amp; Business Profile.</li>
<li>MIH: Migrate to MIH Package Toolkit.</li>
<li>Android SDK: Update to SDK 36.</li>
<li>Deep Links: New PP &amp; TOS.</li>
</ul>
<p>QOL ENHANCEMENTS:-</p>
<ul>
<li>Business Profile: New Create Business flow.</li>
<li>Mzansi Profile: Mzansi Wallet card display look and feel.</li>
<li>Mzansi AI: New Model added.</li>
<li>Deep Links: Mzansi Profile and Business Profile paths added.</li>
</ul>
<p>BUG FIXES:-</p>
<ul>
<li>Navigation: Fix iOS back gesture navigation.</li>
<li>MIH Bugs: Add new bugs to fix later.</li>
</ul>
</description>
</release>
</releases>
<categories>
<category>Utility</category>
<category>Office</category>
<category>ProjectManagement</category>
</categories>
<content_rating type="oars-1.1">
<content_attribute id="violence-cartoon">none</content_attribute>
<content_attribute id="violence-fantasy">none</content_attribute>
<content_attribute id="violence-realistic">none</content_attribute>
<content_attribute id="violence-bloodshed">none</content_attribute>
<content_attribute id="violence-sexual">none</content_attribute>
<content_attribute id="drugs-alcohol">none</content_attribute>
<content_attribute id="drugs-narcotics">none</content_attribute>
<content_attribute id="drugs-tobacco">none</content_attribute>
<content_attribute id="sex-nudity">none</content_attribute>
<content_attribute id="sex-themes">none</content_attribute>
<content_attribute id="sex-homosexuality">none</content_attribute>
<content_attribute id="sex-prostitution">none</content_attribute>
<content_attribute id="sex-adultery">none</content_attribute>
<content_attribute id="language-discrimination">none</content_attribute>
<content_attribute id="money-gambling">none</content_attribute>
<content_attribute id="money-purchasing">none</content_attribute>
<content_attribute id="money-advertising">none</content_attribute>
</content_rating>
</component>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 56 KiB

View file

@ -1,43 +1,39 @@
id: za.co.mzansiinnovationhub.mih
runtime: org.gnome.Platform
runtime-version: "49"
sdk: org.gnome.Sdk
command: mzansi_innovation_hub
app-id: za.co.mzansiinnovationhub.mih
runtime: org.freedesktop.Platform
runtime-version: "25.08"
sdk: org.freedesktop.Sdk
sdk-extensions:
- org.freedesktop.Sdk.Extension.llvm20
command: mih
finish-args:
- --share=ipc
- --share=network
- --socket=fallback-x11
- --socket=wayland
- --device=dri
- --env=__EGL_VENDOR_LIBRARY_FILENAMES=/usr/lib/x86_64-linux-gnu/GL/glvnd/egl_vendor.d/50_mesa.json
modules:
- name: mzansi-innovation-hub
- name: mih
buildsystem: simple
sources:
- type: archive
url: https://git.mzansi-innovation-hub.co.za/yaso_meth/mih-project/releases/download/v.1.3.0/mzansi_innovation_hub.tar.gz
archive-type: tar-gzip
strip-components: 0
sha256: 8efff8baf8d9be44b70f3af500d985e80f2eb5a25cc421ce5c4f88b83f44ebe0
- type: file
path: za.co.mzansiinnovationhub.mih.desktop
- type: file
path: za.co.mzansiinnovationhub.mih.metainfo.xml
- type: file
path: za.co.mzansiinnovationhub.mih.png
build-options:
arch:
x86_64:
env:
BUNDLE_PATH: build/linux/x64/release/bundle
aarch64:
env:
BUNDLE_PATH: build/linux/arm64/release/bundle
append-path: /usr/lib/sdk/llvm20/bin:/var/lib/flutter/bin
prepend-ld-library-path: /usr/lib/sdk/llvm20/lib
env:
PUB_CACHE: /run/build/mih/.pub-cache
build-commands:
- mkdir -p /app/bin
- mkdir -p /app/share/applications
- mkdir -p /app/share/metainfo
- mkdir -p /app/share/icons/hicolor/256x256/apps
- cp mzansi_innovation_hub /app/bin/
- cp -r lib/ /app/bin/
- cp -r data/ /app/bin/
- install -Dm644 za.co.mzansiinnovationhub.mih.desktop /app/share/applications/za.co.mzansiinnovationhub.mih.desktop
- install -Dm644 za.co.mzansiinnovationhub.mih.png /app/share/icons/hicolor/256x256/apps/za.co.mzansiinnovationhub.mih.png
- install -Dm644 za.co.mzansiinnovationhub.mih.metainfo.xml /app/share/metainfo/za.co.mzansiinnovationhub.mih.metainfo.xml
- flutter pub get --offline
- flutter build linux --release --no-pub
- mkdir -p /app/mih
- cp -r "$BUNDLE_PATH"/. /app/mih/
- install -Dm755 flatpak/mih-wrapper.sh /app/bin/mih
- install -Dm644 app/share/metainfo/za.co.mzansiinnovationhub.mih.metainfo.xml /app/share/metainfo/za.co.mzansiinnovationhub.mih.metainfo.xml
- install -Dm644 app/share/applications/za.co.mzansiinnovationhub.mih.desktop /app/share/applications/za.co.mzansiinnovationhub.mih.desktop
- install -Dm644 app/share/icons/hicolor/256x256/apps/za.co.mzansiinnovationhub.mih.png /app/share/icons/hicolor/256x256/apps/za.co.mzansiinnovationhub.mih.png
sources:
- type: git
url: https://git.mzansi-innovation-hub.co.za/yaso_meth/mih-project.git