Linux Flatpak config set up #26
@@ -1,5 +1,5 @@
|
||||
[Desktop Entry]
|
||||
Version=1.2.6
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Name=MIH App
|
||||
Name[af]=MIH Toepassing
|
||||
@@ -10,9 +10,8 @@ Comment[zu]=I-Super App yokuqala yaseMzansi
|
||||
Exec=mzansi_innovation_hub
|
||||
Icon=za.co.mzansiinnovationhub.mih
|
||||
Terminal=false
|
||||
Categories=GNOME;GTK;Utility;
|
||||
Categories=Network;Utility;
|
||||
Keywords=Mzansi;Innovation;Hub;App;
|
||||
StartupWMClass=mzansi_innovation_hub
|
||||
X-Flatpak-RenamedFrom=mzansi-innovation-hub.desktop;
|
||||
X-GNOME-UsesNotifications=true
|
||||
DBusActivatable=false
|
||||
@@ -1,17 +1,22 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<component type="desktop-application">
|
||||
<id>za.co.mzansiinnovationhub.mih</id>
|
||||
|
||||
|
||||
<metadata_license>CC0-1.0</metadata_license>
|
||||
<project_license>GPL-3.0-or-later</project_license>
|
||||
|
||||
|
||||
<name>MIH App</name>
|
||||
<name xml:lang="af">MIH Toepassing</name>
|
||||
<name xml:lang="zu">I-App ye-MIH</name>
|
||||
<summary>First Super App of Mzansi</summary>
|
||||
<developer_name>Mzansi Innovation Hub</developer_name>
|
||||
|
||||
|
||||
<developer>
|
||||
<name>Mzansi Innovation Hub</name>
|
||||
</developer>
|
||||
|
||||
<description>
|
||||
<p>
|
||||
The Mzansi Innovation Hub (MIH) App is a multipurpose platform designed to
|
||||
The Mzansi Innovation Hub (MIH) App is a multipurpose platform designed to
|
||||
empower users with integrated digital services.
|
||||
</p>
|
||||
</description>
|
||||
@@ -49,7 +54,7 @@
|
||||
<content_attribute id="language-profanity">none</content_attribute>
|
||||
<content_attribute id="language-humor">none</content_attribute>
|
||||
<content_attribute id="language-discrimination">none</content_attribute>
|
||||
<content_attribute id="social-chat">none</content_attribute>
|
||||
<content_attribute id="social-chat">mild</content_attribute>
|
||||
<content_attribute id="social-info">none</content_attribute>
|
||||
<content_attribute id="social-audio">none</content_attribute>
|
||||
<content_attribute id="social-location">none</content_attribute>
|
||||
@@ -82,6 +87,6 @@
|
||||
</keywords>
|
||||
|
||||
<custom>
|
||||
<value key="flathub::flathub:minimum_runtime_version">49</value>
|
||||
<value key="flathub::flathub:minimum_runtime_version">48</value>
|
||||
</custom>
|
||||
</component>
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 60 KiB |
@@ -1,6 +1,6 @@
|
||||
app-id: za.co.mzansiinnovationhub.mih
|
||||
runtime: org.gnome.Platform
|
||||
runtime-version: '49'
|
||||
runtime-version: '48'
|
||||
sdk: org.gnome.Sdk
|
||||
command: mzansi_innovation_hub
|
||||
|
||||
@@ -13,45 +13,18 @@ finish-args:
|
||||
- --share=network
|
||||
- --talk-name=org.freedesktop.Notifications
|
||||
- --filesystem=xdg-documents:create
|
||||
- --env=FLUTTER_STORAGE_BASE_URL=https://storage.googleapis.com
|
||||
- --env=PUB_HOSTED_URL=https://pub.dev
|
||||
|
||||
# Remove the flutter-deps module - we don't need it!
|
||||
# The GNOME runtime already includes most Flutter dependencies
|
||||
|
||||
modules:
|
||||
- name: mih-app
|
||||
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/{16,32,48,64,128,256}x{16,32,48,64,128,256}/apps
|
||||
|
||||
# Extract and inspect first
|
||||
- tar xzf mzansi_innovation_hub.tar.gz
|
||||
- ls -la # See what was extracted
|
||||
|
||||
# Copy everything to app directory
|
||||
- cp -r * /app/share/mih-app/
|
||||
|
||||
# Find the actual binary and link it
|
||||
- find /app/share/mih-app -type f -executable -name "mzansi_innovation_hub*" -exec ln -sf {} /app/bin/mzansi_innovation_hub \;
|
||||
|
||||
# Make all binaries executable
|
||||
- find /app/share/mih-app -type f -executable -exec chmod +x {} \;
|
||||
|
||||
# Install Integration Files
|
||||
- mkdir -p /app/bin /app/share/mih-app /app/share/applications /app/share/metainfo /app/share/icons/hicolor/256x256/apps
|
||||
- tar xzf mzansi_innovation_hub.tar.gz -C /app/share/mih-app/
|
||||
- chmod +x /app/share/mih-app/mzansi_innovation_hub
|
||||
- ln -sf /app/share/mih-app/mzansi_innovation_hub /app/bin/mzansi_innovation_hub
|
||||
- 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 icons in multiple sizes
|
||||
- install -Dm644 za.co.mzansiinnovationhub.mih.png /app/share/icons/hicolor/256x256/apps/za.co.mzansiinnovationhub.mih.png
|
||||
- for size in 16 32 48 64 128; do
|
||||
mkdir -p /app/share/icons/hicolor/${size}x${size}/apps;
|
||||
cp za.co.mzansiinnovationhub.mih.png /app/share/icons/hicolor/${size}x${size}/apps/za.co.mzansiinnovationhub.mih.png 2>/dev/null || true;
|
||||
done
|
||||
|
||||
# Validate metainfo
|
||||
- appstream-util validate /app/share/metainfo/za.co.mzansiinnovationhub.mih.metainfo.xml
|
||||
|
||||
sources:
|
||||
- type: archive
|
||||
|
||||
Reference in New Issue
Block a user