V.1.3.0 Flatpak config and setup #53

Merged
yaso_meth merged 5 commits from v.1.3.0 into main 2026-06-10 11:57:26 +00:00
24 changed files with 216 additions and 126 deletions
Binary file not shown.

Before

Width:  |  Height:  |  Size: 61 KiB

After

Width:  |  Height:  |  Size: 256 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 42 KiB

After

Width:  |  Height:  |  Size: 186 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 100 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 84 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 85 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 61 KiB

After

Width:  |  Height:  |  Size: 243 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 64 KiB

After

Width:  |  Height:  |  Size: 267 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 39 KiB

After

Width:  |  Height:  |  Size: 159 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 80 KiB

After

Width:  |  Height:  |  Size: 266 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 70 KiB

After

Width:  |  Height:  |  Size: 221 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 78 KiB

After

Width:  |  Height:  |  Size: 295 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 47 KiB

After

Width:  |  Height:  |  Size: 154 KiB

+4
View File
@@ -0,0 +1,4 @@
.dart_tool/
.build/
build/
.pub-cache/
+6 -1
View File
@@ -47,4 +47,9 @@ app.*.map.json
/android/app/release
# Flutter config file
/config/
/config/
#Flatpak build files
flatpak/build-dir/
flatpak/.flatpak-builder/
+1 -1
View File
@@ -16,7 +16,7 @@ WORKDIR /app
COPY pubspec.yaml pubspec.lock ./
RUN flutter pub get
COPY . .
RUN flutter build web --release -t ./lib/main_prod.dart
RUN flutter build web --release -t ./lib/main_prod.dart -v
# --- STAGE 2: The Final Production Image ---
FROM nginx:alpine
@@ -0,0 +1,12 @@
[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
@@ -0,0 +1,145 @@
<?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="violence-desensitization">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="profanity-slurs">none</content_attribute>
<content_attribute id="profanity-addictive">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>

Before

Width:  |  Height:  |  Size: 56 KiB

After

Width:  |  Height:  |  Size: 56 KiB

@@ -0,0 +1,43 @@
id: za.co.mzansiinnovationhub.mih
runtime: org.gnome.Platform
runtime-version: "49"
sdk: org.gnome.Sdk
command: mzansi_innovation_hub
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
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-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
Binary file not shown.

Before

Width:  |  Height:  |  Size: 169 KiB

@@ -1,12 +0,0 @@
[Desktop Entry]
Version=1.0
Type=Application
Name=MIH
GenericName=Mzansi Innovation Hub
Comment=Mzansi Innovation Hub official application
Exec=mzansi_innovation_hub
Icon=za.co.mzansiinnovationhub.mih
Terminal=false
Categories=Utility;
Keywords=MIH;Mzansi;Innovation;Hub;
StartupWMClass=mzansi_innovation_hub
@@ -1,52 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop-application">
<id>za.co.mzansiinnovationhub.mih</id>
<name>MIH</name>
<summary>Innovation tools and services for the Mzansi ecosystem</summary>
<metadata_license>CC0-1.0</metadata_license>
<project_license>GPL-3.0</project_license>
<developer_name>Mzansi Innovation Hub</developer_name>
<description>
<p>
MIH (Mzansi Innovation Hub) is a modern desktop application designed to provide
innovation tools and services for users. Built with Flutter, it offers a
high-performance, responsive interface tailored for the Linux desktop.
</p>
<ul>
<li>Access professional innovation resources</li>
<li>Streamlined user interface for efficiency</li>
<li>Native integration with Linux desktop environments</li>
</ul>
</description>
<launchable type="desktop-id">za.co.mzansiinnovationhub.mih.desktop</launchable>
<screenshots>
<screenshot type="default">
<caption>The main dashboard of the MIH application.</caption>
<image>https://git.mzansi-innovation-hub.co.za/yaso_meth/mih-project/raw/main/screenshots/main.png</image>
</screenshot>
</screenshots>
<url type="homepage">https://mzansi-innovation-hub.co.za/</url>
<url type="bugtracker">https://git.mzansi-innovation-hub.co.za/yaso_meth/mih-project/issues</url>
<provides>
<binary>mzansi_innovation_hub</binary>
</provides>
<releases>
<release version="1.0.0" date="2026-02-26"/>
</releases>
<content_rating type="oars-1.1"/>
<categories>
<category>Utility</category>
</categories>
</component>
@@ -1,55 +0,0 @@
id: za.co.mzansiinnovationhub.mih
runtime: org.freedesktop.Platform
runtime-version: '24.08'
sdk: org.freedesktop.Sdk
command: mzansi_innovation_hub
finish-args:
- --share=ipc
- --share=network # Added for Internet access
- --socket=fallback-x11
- --socket=wayland
- --device=dri
# Removed --filesystem=home for better security; add back only if strictly needed.
modules:
- name: mzansi-innovation-hub
buildsystem: simple
sources:
- type: archive
url: https://git.mzansi-innovation-hub.co.za/yaso_meth/mih-project/releases/download/linux/mzansi_innovation_hub.tar.gz
sha256: b8c383f4d43e2de36b4e6520c9745e3f8e8618bdb9ef6024ad0bf260061137a9
# If the tarball contains a top-level folder (like 'bundle'),
# flatpak-builder enters it automatically.
# If it doesn't, we use the commands below to find them.
- 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-commands:
# 1. Create the necessary directories
- mkdir -p /app/bin /app/share/applications /app/share/icons/hicolor/256x256/apps /app/share/metainfo
# 2. Move EVERYTHING from your archive into /app/bin/
# We use 'find' to move only the app-related files and avoid the metadata files
- |
find . -mindepth 1 -maxdepth 2 \
! -name "*.desktop" \
! -name "*.xml" \
! -name "*.png" \
! -name "*.yml" \
-exec cp -R -t /app/bin/ {} +
# 3. Ensure the binary is in the right place and executable
# If the binary ended up in a subfolder, this moves it to the top of /app/bin
- find /app/bin -name "mzansi_innovation_hub" -type f -exec mv {} /app/bin/ \;
- chmod +x /app/bin/mzansi_innovation_hub
# 4. Install Metadata (using the exact local files)
- 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
+5 -5
View File
@@ -1212,10 +1212,10 @@ packages:
dependency: transitive
description:
name: meta
sha256: "23f08335362185a5ea2ad3a4e597f1375e78bce8a040df5c600c8d3552ef2394"
sha256: "1741988757a65eb6b36abe716829688cf01910bbf91c34354ff7ec1c3de2b349"
url: "https://pub.dev"
source: hosted
version: "1.17.0"
version: "1.18.0"
mih_package_toolkit:
dependency: "direct main"
description:
@@ -1977,10 +1977,10 @@ packages:
dependency: transitive
description:
name: test_api
sha256: "8161c84903fd860b26bfdefb7963b3f0b68fee7adea0f59ef805ecca346f0c7a"
sha256: "949a932224383300f01be9221c39180316445ecb8e7547f70a41a35bf421fb9e"
url: "https://pub.dev"
source: hosted
version: "0.7.10"
version: "0.7.11"
timing:
dependency: transitive
description:
@@ -2294,5 +2294,5 @@ packages:
source: hosted
version: "3.1.1"
sdks:
dart: ">=3.9.0 <3.13.0-z"
dart: ">=3.10.0-0 <3.13.0-z"
flutter: ">=3.29.0"