refactor progress
This commit is contained in:
48
fluxer_desktop/packaging/flatpak/README.md
Normal file
48
fluxer_desktop/packaging/flatpak/README.md
Normal file
@@ -0,0 +1,48 @@
|
||||
# Fluxer Flatpak packaging
|
||||
|
||||
These files are for submitting Fluxer to [Flathub](https://flathub.org), the centralised Flatpak application repository.
|
||||
|
||||
## Files
|
||||
|
||||
- **`app.fluxer.json`** -- Flatpak manifest defining the build, runtime, permissions, and sources.
|
||||
- **`app.fluxer.metainfo.xml`** -- AppStream metadata for the app store listing (description, categories, content rating, etc.).
|
||||
- **`app.fluxer.desktop`** -- XDG desktop entry so the app appears in desktop launchers.
|
||||
- **`icon-256.png`** -- Application icon (256x256). This file must be extracted from the build resources or provided separately; it is not checked in.
|
||||
|
||||
## Placeholder SHA256 hashes
|
||||
|
||||
The `sha256` values in `app.fluxer.json` are set to `PLACEHOLDER_SHA256_X64` and `PLACEHOLDER_SHA256_ARM64`. These are updated automatically by [flatpak-external-data-checker](https://github.com/nickvdp/flatpak-external-data-checker) via the `x-checker-data` configuration on each source. When preparing a manual build, replace them with the actual SHA256 checksums of the downloaded tar.gz archives.
|
||||
|
||||
## Icon
|
||||
|
||||
The `icon-256.png` file needs to be provided before building. You can extract it from the Electron build resources:
|
||||
|
||||
```sh
|
||||
cp ../../build_resources/icons/256x256.png icon-256.png
|
||||
```
|
||||
|
||||
Or generate it from the source SVG/PNG in the build resources directory.
|
||||
|
||||
## Testing locally
|
||||
|
||||
Install the required runtime and base app if you haven't already:
|
||||
|
||||
```sh
|
||||
flatpak install flathub org.freedesktop.Platform//24.08 org.freedesktop.Sdk//24.08 org.electronjs.Electron2.BaseApp//24.08
|
||||
```
|
||||
|
||||
Then build and install:
|
||||
|
||||
```sh
|
||||
flatpak-builder --user --install build-dir app.fluxer.json
|
||||
```
|
||||
|
||||
Run the app:
|
||||
|
||||
```sh
|
||||
flatpak run app.fluxer
|
||||
```
|
||||
|
||||
## Flathub submission
|
||||
|
||||
To submit to Flathub, fork the [flathub/flathub](https://github.com/flathub/flathub) repository and open a pull request adding `app.fluxer.json` along with the supporting files. Refer to the [Flathub submission guide](https://docs.flathub.org/docs/for-app-authors/submission/) for current requirements.
|
||||
10
fluxer_desktop/packaging/flatpak/app.fluxer.desktop
Normal file
10
fluxer_desktop/packaging/flatpak/app.fluxer.desktop
Normal file
@@ -0,0 +1,10 @@
|
||||
[Desktop Entry]
|
||||
Name=Fluxer
|
||||
Comment=Instant messaging and VoIP application
|
||||
Exec=fluxer %U
|
||||
Icon=app.fluxer
|
||||
Type=Application
|
||||
Categories=Network;InstantMessaging;
|
||||
StartupWMClass=fluxer
|
||||
MimeType=x-scheme-handler/fluxer;
|
||||
Terminal=false
|
||||
78
fluxer_desktop/packaging/flatpak/app.fluxer.json
Normal file
78
fluxer_desktop/packaging/flatpak/app.fluxer.json
Normal file
@@ -0,0 +1,78 @@
|
||||
{
|
||||
"id": "app.fluxer",
|
||||
"runtime": "org.freedesktop.Platform",
|
||||
"runtime-version": "24.08",
|
||||
"sdk": "org.freedesktop.Sdk",
|
||||
"base": "org.electronjs.Electron2.BaseApp",
|
||||
"base-version": "24.08",
|
||||
"command": "fluxer",
|
||||
"separate-locales": false,
|
||||
"finish-args": [
|
||||
"--share=ipc",
|
||||
"--share=network",
|
||||
"--socket=x11",
|
||||
"--socket=wayland",
|
||||
"--socket=pulseaudio",
|
||||
"--device=all",
|
||||
"--talk-name=org.freedesktop.Notifications",
|
||||
"--talk-name=org.kde.StatusNotifierWatcher",
|
||||
"--talk-name=org.freedesktop.secrets",
|
||||
"--filesystem=xdg-run/pipewire-0",
|
||||
"--env=XCURSOR_PATH=/run/host/user-share/icons:/run/host/share/icons"
|
||||
],
|
||||
"modules": [
|
||||
{
|
||||
"name": "fluxer",
|
||||
"buildsystem": "simple",
|
||||
"build-commands": [
|
||||
"install -d /app/lib/fluxer",
|
||||
"cp -r ./* /app/lib/fluxer/",
|
||||
"chmod +x /app/lib/fluxer/fluxer",
|
||||
"install -Dm644 /app/lib/fluxer/resources/app.asar.unpacked/node_modules/electron/dist/chrome-sandbox /app/lib/fluxer/chrome-sandbox || true",
|
||||
"install -d /app/bin",
|
||||
"ln -s /app/lib/fluxer/fluxer /app/bin/fluxer",
|
||||
"install -Dm644 app.fluxer.metainfo.xml /app/share/metainfo/app.fluxer.metainfo.xml",
|
||||
"install -Dm644 app.fluxer.desktop /app/share/applications/app.fluxer.desktop",
|
||||
"install -Dm644 icon-256.png /app/share/icons/hicolor/256x256/apps/app.fluxer.png"
|
||||
],
|
||||
"sources": [
|
||||
{
|
||||
"type": "archive",
|
||||
"only-arches": ["x86_64"],
|
||||
"url": "https://api.fluxer.app/dl/desktop/stable/linux/x64/latest/tar_gz",
|
||||
"sha256": "PLACEHOLDER_SHA256_X64",
|
||||
"x-checker-data": {
|
||||
"type": "json",
|
||||
"url": "https://api.fluxer.app/dl/desktop/stable/linux/x64/latest",
|
||||
"version-query": ".version",
|
||||
"url-query": ".files.tar_gz.url"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "archive",
|
||||
"only-arches": ["aarch64"],
|
||||
"url": "https://api.fluxer.app/dl/desktop/stable/linux/arm64/latest/tar_gz",
|
||||
"sha256": "PLACEHOLDER_SHA256_ARM64",
|
||||
"x-checker-data": {
|
||||
"type": "json",
|
||||
"url": "https://api.fluxer.app/dl/desktop/stable/linux/arm64/latest",
|
||||
"version-query": ".version",
|
||||
"url-query": ".files.tar_gz.url"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "file",
|
||||
"path": "app.fluxer.metainfo.xml"
|
||||
},
|
||||
{
|
||||
"type": "file",
|
||||
"path": "app.fluxer.desktop"
|
||||
},
|
||||
{
|
||||
"type": "file",
|
||||
"path": "icon-256.png"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
41
fluxer_desktop/packaging/flatpak/app.fluxer.metainfo.xml
Normal file
41
fluxer_desktop/packaging/flatpak/app.fluxer.metainfo.xml
Normal file
@@ -0,0 +1,41 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<component type="desktop-application">
|
||||
<id>app.fluxer</id>
|
||||
<name>Fluxer</name>
|
||||
<summary>Instant messaging and VoIP application</summary>
|
||||
<metadata_license>CC0-1.0</metadata_license>
|
||||
<project_license>AGPL-3.0-or-later</project_license>
|
||||
<description>
|
||||
<p>Fluxer is a free and open-source instant messaging and voice-over-IP application. It provides text chat, voice calls, video calls, and screen sharing in a modern interface.</p>
|
||||
<p>Features include:</p>
|
||||
<ul>
|
||||
<li>Text messaging with rich formatting and media support</li>
|
||||
<li>Voice and video calls</li>
|
||||
<li>Screen sharing</li>
|
||||
<li>Communities with channels</li>
|
||||
<li>Direct messages and group chats</li>
|
||||
<li>Custom emoji and reactions</li>
|
||||
</ul>
|
||||
</description>
|
||||
<url type="homepage">https://fluxer.app</url>
|
||||
<url type="bugtracker">https://github.com/fluxerapp/fluxer/issues</url>
|
||||
<url type="help">https://fluxer.app/help</url>
|
||||
<launchable type="desktop-id">app.fluxer.desktop</launchable>
|
||||
<categories>
|
||||
<category>Network</category>
|
||||
<category>InstantMessaging</category>
|
||||
</categories>
|
||||
<provides>
|
||||
<binary>fluxer</binary>
|
||||
</provides>
|
||||
<content_rating type="oars-1.1">
|
||||
<content_attribute id="social-chat">intense</content_attribute>
|
||||
<content_attribute id="social-audio">intense</content_attribute>
|
||||
<content_attribute id="social-contacts">intense</content_attribute>
|
||||
<content_attribute id="social-info">moderate</content_attribute>
|
||||
</content_rating>
|
||||
<supports>
|
||||
<control>pointing</control>
|
||||
<control>keyboard</control>
|
||||
</supports>
|
||||
</component>
|
||||
Reference in New Issue
Block a user