Merge pull request 'Linux Flatpak config set up' (#26) from V.1.2.6 into main
Reviewed-on: #26
This commit was merged in pull request #26.
This commit is contained in:
@@ -1,11 +1,12 @@
|
||||
[Desktop Entry]
|
||||
Version=1.2.6
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Name=MIH App
|
||||
Comment=First Super App of Mzansi
|
||||
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=Mzansi;Innovation;Hub;App;
|
||||
Keywords=MIH;Mzansi;Innovation;Hub;
|
||||
StartupWMClass=mzansi_innovation_hub
|
||||
@@ -1,36 +1,52 @@
|
||||
<?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>
|
||||
|
||||
<name>MIH App</name>
|
||||
<summary>First Super App of Mzansi</summary>
|
||||
<developer_name>Mzansi Innovation Hub</developer_name>
|
||||
|
||||
|
||||
<description>
|
||||
<p>
|
||||
The Mzansi Innovation Hub (MIH) App is a multipurpose platform designed to
|
||||
empower users with integrated digital services.
|
||||
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 App</caption>
|
||||
<image>https://git.mzansi-innovation-hub.co.za/yaso_meth/mih-project/raw/branch/main/mih_ui/mih_app_flatpak/main.png</image>
|
||||
<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="homepage">https://mzansi-innovation-hub.co.za/</url>
|
||||
<url type="bugtracker">https://git.mzansi-innovation-hub.co.za/yaso_meth/mih-project/issues</url>
|
||||
|
||||
<content_rating type="oars-1.1" />
|
||||
<provides>
|
||||
<binary>mzansi_innovation_hub</binary>
|
||||
</provides>
|
||||
|
||||
<releases>
|
||||
<release version="1.2.6" date="2026-02-25" />
|
||||
<release version="1.0.0" date="2026-02-26"/>
|
||||
</releases>
|
||||
|
||||
<content_rating type="oars-1.1"/>
|
||||
|
||||
<categories>
|
||||
<category>Utility</category>
|
||||
</categories>
|
||||
|
||||
</component>
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 56 KiB |
@@ -1,46 +1,55 @@
|
||||
app-id: za.co.mzansiinnovationhub.mih
|
||||
runtime: org.gnome.Platform
|
||||
runtime-version: '49' # Matches a more modern GNOME stack
|
||||
sdk: org.gnome.Sdk
|
||||
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
|
||||
- --socket=pulseaudio
|
||||
- --share=network
|
||||
- --talk-name=org.freedesktop.Notifications
|
||||
# Filesystem access for documents
|
||||
- --filesystem=xdg-documents:ro
|
||||
# Removed --filesystem=home for better security; add back only if strictly needed.
|
||||
|
||||
modules:
|
||||
- name: mih-app
|
||||
- name: mzansi-innovation-hub
|
||||
buildsystem: simple
|
||||
build-commands:
|
||||
# Create directory structure
|
||||
- mkdir -p /app/bin /app/share/mih-app /app/share/applications /app/share/metainfo /app/share/icons/hicolor/256x256/apps
|
||||
|
||||
# Install everything to the share folder
|
||||
- cp -r * /app/share/mih-app/
|
||||
- find /app/share/mih-app -name "mzansi_innovation_hub" -exec chmod +x {} +
|
||||
|
||||
# Link the binary to /app/bin so Flatpak can find it
|
||||
- ln -s /app/share/mih-app/mzansi_innovation_hub /app/bin/mzansi_innovation_hub
|
||||
|
||||
# Install Integration Files
|
||||
- install -Dm644 za.co.mzansiinnovationhub.mih.desktop /app/share/applications/za.co.mzansiinnovationhub.mih.desktop
|
||||
- install -Dm644 za.co.mzansiinnovationhub.mih.metainfo.xml /app/share/metainfo/za.co.mzansiinnovationhub.mih.metainfo.xml
|
||||
- install -Dm644 za.co.mzansiinnovationhub.mih.png /app/share/icons/hicolor/256x256/apps/za.co.mzansiinnovationhub.mih.png
|
||||
|
||||
sources:
|
||||
- type: archive
|
||||
url: https://git.mzansi-innovation-hub.co.za/yaso_meth/mih-project/releases/download/V.1.2.6/mzansi_innovation_hub.tar.gz
|
||||
sha256: cd610351f334fccce2d279f3112a5ac21bfa18b39d3c59e2cb0334fe2e8019b3
|
||||
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
|
||||
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
|
||||
Reference in New Issue
Block a user