chore: restruture
This commit is contained in:
BIN
desktop/resources/128x128.png
Normal file
BIN
desktop/resources/128x128.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 8.4 KiB |
BIN
desktop/resources/128x128@2x.png
Normal file
BIN
desktop/resources/128x128@2x.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 22 KiB |
BIN
desktop/resources/32x32.png
Normal file
BIN
desktop/resources/32x32.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.6 KiB |
14
desktop/resources/coop.desktop.in
Normal file
14
desktop/resources/coop.desktop.in
Normal file
@@ -0,0 +1,14 @@
|
||||
[Desktop Entry]
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Name=$APP_NAME
|
||||
GenericName=Chat Application
|
||||
Comment=Chat Freely, Stay Private on Nostr.
|
||||
TryExec=$APP_CLI
|
||||
StartupNotify=$DO_STARTUP_NOTIFY
|
||||
Exec=$APP_CLI $APP_ARGS
|
||||
Icon=$APP_ICON
|
||||
Categories=Network;InstantMessaging;
|
||||
Keywords=chat;messaging;nostr;privacy;
|
||||
MimeType=x-scheme-handler/nostr;x-scheme-handler/coop;
|
||||
Actions=NewChat;
|
||||
87
desktop/resources/flatpak/coop.metainfo.xml.in
Normal file
87
desktop/resources/flatpak/coop.metainfo.xml.in
Normal file
@@ -0,0 +1,87 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<component type="desktop-application">
|
||||
<id>$APP_ID</id>
|
||||
<metadata_license>MIT</metadata_license>
|
||||
<project_license>GPL-3.0-or-later</project_license>
|
||||
|
||||
<name>$APP_NAME</name>
|
||||
<summary>Chat Freely, Stay Private on Nostr</summary>
|
||||
|
||||
<developer id="su.reya">
|
||||
<name translate="no">Ren Amamiya</name>
|
||||
</developer>
|
||||
|
||||
<description>
|
||||
<p>
|
||||
Chat freely without sharing phone numbers or emails.
|
||||
</p>
|
||||
<p>
|
||||
Your messages are encrypted, and your privacy stays protected.
|
||||
</p>
|
||||
<p>
|
||||
Just privacy, made simple - with Nostr.
|
||||
</p>
|
||||
</description>
|
||||
|
||||
<launchable type="desktop-id">$APP_ID.desktop</launchable>
|
||||
|
||||
<branding>
|
||||
<color type="primary" scheme_preference="light">$BRANDING_LIGHT</color>
|
||||
<color type="primary" scheme_preference="dark">$BRANDING_DARK</color>
|
||||
</branding>
|
||||
|
||||
<content_rating type="oars-1.1">
|
||||
<content_attribute id="social-chat">intense</content_attribute>
|
||||
<content_attribute id="social-audio">intense</content_attribute>
|
||||
</content_rating>
|
||||
|
||||
<url type="homepage">https://reya.su/coop</url>
|
||||
<url type="bugtracker">https://github.com/lumehq/coop/issues</url>
|
||||
<url type="faq">https://github.com/lumehq/coop</url>
|
||||
<url type="help">https://github.com/lumehq/coop/issues</url>
|
||||
<url type="contact">https://reya.su/</url>
|
||||
<url type="vcs-browser">https://github.com/lumehq/coop</url>
|
||||
<url type="contribute">https://github.com/lumehq/coop/blob/main/CONTRIBUTING.md</url>
|
||||
|
||||
<supports>
|
||||
<internet>yes</internet>
|
||||
</supports>
|
||||
|
||||
<recommends>
|
||||
<control>pointing</control>
|
||||
<control>keyboard</control>
|
||||
<display_length compare="ge">768</display_length>
|
||||
</recommends>
|
||||
|
||||
<screenshots>
|
||||
<screenshot type="default">
|
||||
<caption>Coop with the default screen, showing current user's chat rooms</caption>
|
||||
<image>https://npub1zfss807aer0j26mwp2la0ume0jqde3823rmu97ra6sgyyg956e0s6xw445.blossom.band/07b03b8c269b67eedcd265d11ebe7384ba797364056a60105cd02cf34de4eff2.png</image>
|
||||
</screenshot>
|
||||
<screenshot>
|
||||
<caption>Example of chat room's message list</caption>
|
||||
<image>https://npub1zfss807aer0j26mwp2la0ume0jqde3823rmu97ra6sgyyg956e0s6xw445.blossom.band/4125cd78696274e92c53c09ac2fed0c8c7a74912dca6ab80bef21badd6ae4232.png</image>
|
||||
</screenshot>
|
||||
<screenshot>
|
||||
<caption>Coop in Dark Mode with split panels feature</caption>
|
||||
<image>https://npub1zfss807aer0j26mwp2la0ume0jqde3823rmu97ra6sgyyg956e0s6xw445.blossom.band/9cea2a2d5d18ec6472d357f7288f283dc43c672580956cef3242f0d07e214691.png</image>
|
||||
</screenshot>
|
||||
<screenshot>
|
||||
<caption>Example of screening chat request</caption>
|
||||
<image>https://npub1zfss807aer0j26mwp2la0ume0jqde3823rmu97ra6sgyyg956e0s6xw445.blossom.band/6f1c32b150788b706dd29a311bd7e342c63387013c0b084392b2e5a05c7908d5.png</image>
|
||||
</screenshot>
|
||||
<screenshot>
|
||||
<caption>Example of composing a new message</caption>
|
||||
<image>https://npub1zfss807aer0j26mwp2la0ume0jqde3823rmu97ra6sgyyg956e0s6xw445.blossom.band/9be26d1132de3feff0a518cb17afd8319e421ed2cfb0035cb47aceba928bf96d.png</image>
|
||||
</screenshot>
|
||||
</screenshots>
|
||||
|
||||
<releases>
|
||||
@release_info@
|
||||
<release version="0.0.0" date="1970-01-01">
|
||||
<description>
|
||||
<p>Dummy release to keep flatpak-builder AppStream metadata validation from complaining</p>
|
||||
</description>
|
||||
</release>
|
||||
</releases>
|
||||
</component>
|
||||
58
desktop/resources/flatpak/manifest-template.json
Normal file
58
desktop/resources/flatpak/manifest-template.json
Normal file
@@ -0,0 +1,58 @@
|
||||
{
|
||||
"id": "$APP_ID",
|
||||
"runtime": "org.freedesktop.Platform",
|
||||
"runtime-version": "24.08",
|
||||
"sdk": "org.freedesktop.Sdk",
|
||||
"sdk-extensions": ["org.freedesktop.Sdk.Extension.rust-stable"],
|
||||
"command": "coop",
|
||||
"finish-args": [
|
||||
"--talk-name=org.freedesktop.Flatpak",
|
||||
"--device=dri",
|
||||
"--share=ipc",
|
||||
"--share=network",
|
||||
"--socket=wayland",
|
||||
"--socket=fallback-x11",
|
||||
"--socket=pulseaudio",
|
||||
"--filesystem=host"
|
||||
],
|
||||
"build-options": {
|
||||
"append-path": "/usr/lib/sdk/rust-stable/bin"
|
||||
},
|
||||
"modules": [
|
||||
{
|
||||
"name": "coop",
|
||||
"buildsystem": "simple",
|
||||
"build-options": {
|
||||
"env": {
|
||||
"APP_ID": "$APP_ID",
|
||||
"APP_ICON": "$APP_ID",
|
||||
"APP_NAME": "$APP_NAME",
|
||||
"BRANDING_LIGHT": "$BRANDING_LIGHT",
|
||||
"BRANDING_DARK": "$BRANDING_DARK",
|
||||
"APP_CLI": "coop",
|
||||
"APP_ARGS": "--foreground %U",
|
||||
"DO_STARTUP_NOTIFY": "false"
|
||||
}
|
||||
},
|
||||
"build-commands": [
|
||||
"install -Dm644 $ICON_FILE.png /app/share/icons/hicolor/512x512/apps/$APP_ID.png",
|
||||
"envsubst < coop.desktop.in > coop.desktop && install -Dm644 coop.desktop /app/share/applications/$APP_ID.desktop",
|
||||
"envsubst < flatpak/coop.metainfo.xml.in > coop.metainfo.xml && install -Dm644 coop.metainfo.xml /app/share/metainfo/$APP_ID.metainfo.xml",
|
||||
"sed -i -e '/@release_info@/{r flatpak/release-info/$CHANNEL' -e 'd}' /app/share/metainfo/$APP_ID.metainfo.xml",
|
||||
"install -Dm755 bin/coop /app/bin/coop",
|
||||
"install -Dm755 libexec/coop /app/libexec/coop",
|
||||
"install -Dm755 lib/* -t /app/lib"
|
||||
],
|
||||
"sources": [
|
||||
{
|
||||
"type": "archive",
|
||||
"path": "./target/release/$ARCHIVE"
|
||||
},
|
||||
{
|
||||
"type": "dir",
|
||||
"path": "./desktop/resources"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
BIN
desktop/resources/icon.icns
Normal file
BIN
desktop/resources/icon.icns
Normal file
Binary file not shown.
BIN
desktop/resources/icon.ico
Normal file
BIN
desktop/resources/icon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 30 KiB |
BIN
desktop/resources/icon.png
Normal file
BIN
desktop/resources/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 70 KiB |
BIN
desktop/resources/icon@2x.png
Normal file
BIN
desktop/resources/icon@2x.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 120 KiB |
60
desktop/resources/snap/snapcraft.yaml.in
Normal file
60
desktop/resources/snap/snapcraft.yaml.in
Normal file
@@ -0,0 +1,60 @@
|
||||
name: coop
|
||||
title: Coop
|
||||
base: core24
|
||||
version: "$RELEASE_VERSION"
|
||||
summary: Chat Freely, Stay Private on Nostr
|
||||
description: |
|
||||
Chat freely without sharing phone numbers or emails.
|
||||
Your messages are encrypted, and your privacy stays protected.
|
||||
Just privacy, made simple - with Nostr.
|
||||
grade: stable
|
||||
confinement: classic
|
||||
compression: lzo
|
||||
website: https://reya.su/coop
|
||||
source-code: https://github.com/lumehq/coop
|
||||
issues: https://github.com/lumehq/coop/issues
|
||||
contact: https://reya.su
|
||||
|
||||
parts:
|
||||
coop:
|
||||
plugin: dump
|
||||
source: target/release/coop-linux-$ARCH_SUFFIX.tar.gz
|
||||
|
||||
organize:
|
||||
# These renames seem to not be necessary, but it's tidier.
|
||||
bin: usr/bin
|
||||
libexec: usr/libexec
|
||||
|
||||
stage-packages:
|
||||
- libasound2t64
|
||||
# snapcraft has a lint that this is unused, but without it Coop exits with
|
||||
# "Missing Vulkan entry points: LibraryLoadFailure" in blade_graphics.
|
||||
- libvulkan1
|
||||
# snapcraft has a lint that this is unused, but without it Coop exits with
|
||||
# "NoWaylandLib" when run with Wayland.
|
||||
- libwayland-client0
|
||||
- libxcb1
|
||||
- libxkbcommon-x11-0
|
||||
- libxkbcommon0
|
||||
|
||||
build-attributes:
|
||||
- enable-patchelf
|
||||
|
||||
prime:
|
||||
# Omit unneeded files from the tarball
|
||||
- -lib
|
||||
- -licenses.md
|
||||
- -share
|
||||
|
||||
# Omit unneeded files from stage-packages
|
||||
- -etc
|
||||
- -usr/share/doc
|
||||
- -usr/share/lintian
|
||||
- -usr/share/man
|
||||
|
||||
apps:
|
||||
coop:
|
||||
command: usr/bin/coop
|
||||
common-id: su.reya.coop
|
||||
environment:
|
||||
COOP_BUNDLE_TYPE: snap
|
||||
Reference in New Issue
Block a user