Skip to content

Commit

Permalink
fix(flatpak): correction the flatpak files
Browse files Browse the repository at this point in the history
  • Loading branch information
Nytuo committed Jan 17, 2024
1 parent 8cbc288 commit 380af70
Show file tree
Hide file tree
Showing 4 changed files with 80 additions and 6 deletions.
6 changes: 6 additions & 0 deletions flatpak/flathub.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"only-arches": [
"x86_64",
"aarch64"
]
}
8 changes: 8 additions & 0 deletions flatpak/fr.nytuo.cosmiccomics.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[Desktop Entry]
Name=Cosmic-Comics
Icon=fr.nytuo.cosmiccomics
Encoding=UTF-8
Type=Application
Terminal=false
Categories=Utility;Literature;Viewer
Exec=start-cosmiccomics.sh %U
55 changes: 55 additions & 0 deletions flatpak/fr.nytuo.cosmiccomics.metainfo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop-application">
<id>fr.nytuo.cosmiccomics</id>

<name>Cosmic Comics</name>
<summary>Cosmic Comics is a Comics and Mangas reader and collectionner.</summary>

<metadata_license>CC0-1.0</metadata_license>
<project_license>GNU GPLv3</project_license>

<content_rating type="oars-1.0" />
<developer_name>Nytuo (Arnaud BEUX)</developer_name>
<url type="homepage">https://nytuo.fr</url>
<url type="source-code">https://github.com/Nytuo/CosmicComics</url>

<recommends>
<control>pointing</control>
<control>keyboard</control>
<control>touch</control>
</recommends>

<description>
<p>
The information about the series and books are provided by some API or manually set. This is all you can do with this software and more:

Read CBR, CBZ, CB7, CBT, ZIP, RAR, 7z, TAR, PDF, EPUB, Folder which contains PNG, JPG, JPEG, BMP.
Display your books and navigate your folders with custom covers (automaticatly by extraction or manually set)
Set your books as Read, Unread, Reading or favorite and note them.
Many Customizable parameters
Zoom, Auto Background Color, Double page Mode, Blank first page, No double page for Horizontal, Manga Mode, Webtoon Mode, fullscreen, rotations, Bookmarks, Slideshow, SideBar, Hide Menu Bar.
Display information about Comics/ Manga
Libraries information provided by APIs (Marvel API, Google Books API, Anilist,...)
Continue reading where you stopped and more...
</p>
</description>
<url type="homepage">https://github.com/Nytuo/CosmicComics</url>
<launchable type="desktop-id">fr.nytuo.cosmiccomics.desktop</launchable>
<screenshots>
<screenshot type="default">
<image>https://pocket.nytuo.fr/api/files/gpmjfgb6ve1gr0u/coxm84pd6nvqn4y/ccbanner_CuzE0qK1NK.png?token=</image>
</screenshot>
<screenshot>
<image>https://pocket.nytuo.fr/api/files/gpmjfgb6ve1gr0u/coxm84pd6nvqn4y/cc_img1_C4Y8jwH5mS.png?token=</image>
</screenshot>
<screenshot>
<image>https://pocket.nytuo.fr/api/files/gpmjfgb6ve1gr0u/coxm84pd6nvqn4y/cc_img3_xdvpB1Elvy.png?token=</image>
</screenshot>
</screenshots>
<categories>
<category>Utilities</category>
</categories>
<releases>
<release version="v2.1.0" date="2023-10-19"/>
</releases>
</component>
17 changes: 11 additions & 6 deletions flatpak/fr.nytuo.cosmiccomics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,20 +37,25 @@ modules:
# Build the app; in this example the `dist` script
# in package.json runs electron-builder
- |
. ../flatpak-node/electron-builder-arch-args.sh
. ./flatpak-node/electron-builder-arch-args.sh
npm run dist -- $ELECTRON_BUILDER_ARCH_ARGS --linux --dir
# Bundle app and dependencies
- cp -a dist/linux*unpacked /app/main
# Install app wrapper
- install -Dm755 -t /app/bin/ ../run.sh
subdir: main
- install -Dm755 -t /app/bin/ ./run.sh
sources:
#- type: archive
# url: https://github.com/flathub/electron-sample-app/archive/1.0.1.tar.gz
# sha256: a2feb3f1cf002a2e4e8900f718cc5c54db4ad174e48bfcfbddcd588c7b716d5b
- type: dir
path: ..
dest: main
# - type: dir
# path: ..
# dest: main
- type: git
url: https://github.com/Nytuo/CosmicComics.git
- type: file
path: fr.nytuo.cosmiccomics.desktop
- type: file
path: fr.nytuo.cosmiccomics.metainfo.xml
- generated-sources.json
# Wrapper to launch the app
- type: script
Expand Down

0 comments on commit 380af70

Please sign in to comment.