-
-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
257 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
*.provisionprofile | ||
node_gyp_bins | ||
node_gyp_bins | ||
|
||
# OSX | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
build | ||
.flatpak-builder |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[Desktop Entry] | ||
Name=OpenComic | ||
Exec=/app/bin/run.sh %U | ||
Terminal=false | ||
Type=Application | ||
Icon=org.opencomic.app | ||
StartupWMClass=OpenComic | ||
Comment=Comic and manga reader | ||
MimeType=application/x-cbz;application/x-cbr;application/x-cb7;application/x-cbt;application/pdf;application/x-bzpdf;application/x-gzpdf;application/epub+zip; | ||
Categories=Graphics; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<component type="desktop-application"> | ||
<id>org.opencomic.app</id> | ||
<launchable type="desktop-id">org.opencomic.app.desktop</launchable> | ||
<name>OpenComic</name> | ||
<summary>Comic and Manga reader</summary> | ||
<metadata_license>CC0-1.0</metadata_license> | ||
<project_license>GPL-3.0-only</project_license> | ||
<developer id="dev.ollm"> | ||
<name>Oleguer Llopart</name> | ||
</developer> | ||
<description> | ||
<p>OpenComic is a comic/manga reader, can also open PDF files and ebooks (epub) among other features.</p> | ||
</description> | ||
<url type="homepage">https://github.com/ollm/OpenComic</url> | ||
<url type="bugtracker">https://github.com/ollm/OpenComic/issues</url> | ||
<url type="help">https://github.com/ollm/OpenComic/issues</url> | ||
<url type="translate">https://github.com/ollm/OpenComic/blob/master/TRANSLATE.md/</url> | ||
<url type="donation">https://github.com/ollm/OpenComic/blob/master/FUNDING.md</url> | ||
<url type="vcs-browser">https://github.com/ollm/OpenComic</url> | ||
<icon type="remote">https://raw.githubusercontent.com/ollm/OpenComic/master/images/icon-border-transparent.png</icon> | ||
<screenshots> | ||
<screenshot type="default"> | ||
<caption>OpenComic</caption> | ||
<image>https://raw.githubusercontent.com/ollm/OpenComic/master/images/screenshots/main.png</image> | ||
</screenshot> | ||
<screenshot> | ||
<caption>Colorize</caption> | ||
<image>https://raw.githubusercontent.com/ollm/OpenComic/master/images/screenshots/colorize.png</image> | ||
</screenshot> | ||
<screenshot> | ||
<caption>Colorize menu</caption> | ||
<image>https://raw.githubusercontent.com/ollm/OpenComic/master/images/screenshots/colorize-menu.png</image> | ||
</screenshot> | ||
<screenshot> | ||
<caption>eBook</caption> | ||
<image>https://raw.githubusercontent.com/ollm/OpenComic/master/images/screenshots/ebook.png</image> | ||
</screenshot> | ||
<screenshot> | ||
<caption>eBook menu</caption> | ||
<image>https://raw.githubusercontent.com/ollm/OpenComic/master/images/screenshots/ebook-menu.png</image> | ||
</screenshot> | ||
<screenshot> | ||
<caption>Master folders</caption> | ||
<image>https://raw.githubusercontent.com/ollm/OpenComic/master/images/screenshots/master-folders.png</image> | ||
</screenshot> | ||
<screenshot> | ||
<caption>Shortcuts (Keyboard and Gamepad)</caption> | ||
<image>https://raw.githubusercontent.com/ollm/OpenComic/master/images/screenshots/shortcuts.png</image> | ||
</screenshot> | ||
</screenshots> | ||
<content_rating type="oars-1.1"/> | ||
<categories> | ||
<category>Graphics</category> | ||
</categories> | ||
<branding> | ||
<color type="primary" scheme_preference="light">#fde4e5</color> | ||
<color type="primary" scheme_preference="dark">#fde4e5</color> | ||
</branding> | ||
<releases> | ||
<release version="1.3.1" date="2024-10-05"> | ||
<description> | ||
<p>Release to Flathub.</p> | ||
</description> | ||
</release> | ||
</releases> | ||
</component> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
app-id: org.opencomic.app | ||
runtime: org.freedesktop.Platform | ||
runtime-version: '22.08' | ||
sdk: org.freedesktop.Sdk | ||
base: org.electronjs.Electron2.BaseApp | ||
base-version: '22.08' | ||
command: run.sh | ||
separate-locales: false | ||
finish-args: | ||
- --device=dri | ||
- --share=ipc | ||
- --socket=x11 | ||
- --socket=pulseaudio | ||
- --share=network | ||
modules: | ||
- name: opencomic | ||
buildsystem: simple | ||
build-commands: | ||
- mkdir -p /app/main/ | ||
- cp -r * /app/main/ | ||
- install -D 16x16.png --target-directory=/app/share/icons/hicolor/16x16/apps/org.opencomic.app.png | ||
- install -D 32x32.png --target-directory=/app/share/icons/hicolor/32x32/apps/org.opencomic.app.png | ||
- install -D 48x48.png --target-directory=/app/share/icons/hicolor/48x48/apps/org.opencomic.app.png | ||
- install -D 64x64.png --target-directory=/app/share/icons/hicolor/64x64/apps/org.opencomic.app.png | ||
- install -D 128x128.png --target-directory=/app/share/icons/hicolor/128x128/apps/org.opencomic.app.png | ||
- install -D 256x256.png --target-directory=/app/share/icons/hicolor/256x256/apps/org.opencomic.app.png | ||
- install -D org.opencomic.app.metainfo.xml --target-directory=/app/share/metainfo/ | ||
- install -D org.opencomic.app.desktop --target-directory=/app/share/applications/ | ||
- install -D run.sh --target-directory=/app/bin/ | ||
sources: | ||
- type: archive | ||
url: https://github.com/ollm/OpenComic/releases/download/v1.3.1/opencomic-1.3.1.tar.gz | ||
sha256: 6bb0e222783cbf529ead024c7bcf30cdc0e83bdb074db38ed0ff9c21547e3a33 | ||
only-arches: | ||
- x86_64 | ||
- type: archive | ||
url: https://github.com/ollm/OpenComic/releases/download/v1.3.1/opencomic-1.3.1-arm64.tar.gz | ||
sha256: c4bbbb8dbabc7ca4af0417dedb3dc6c7eb2888a4c55b78974555725101db4412 | ||
only-arches: | ||
- aarch64 | ||
- type: file | ||
path: org.opencomic.app.desktop | ||
- type: file | ||
path: org.opencomic.app.metainfo.xml | ||
- type: file | ||
path: 16x16.png | ||
- type: file | ||
path: 32x32.png | ||
- type: file | ||
path: 48x48.png | ||
- type: file | ||
path: 64x64.png | ||
- type: file | ||
path: 128x128.png | ||
- type: file | ||
path: 256x256.png | ||
- type: script | ||
dest-filename: run.sh | ||
commands: | ||
- zypak-wrapper /app/main/opencomic "$@" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
const fs = require('fs'); | ||
|
||
function exists(path, permissions = false, fix = false) | ||
{ | ||
if(!fs.existsSync(path)) | ||
throw new Error('Not exists! '+path+(fix ? '\nTry "'+fix+'"' : '')+'\n'); | ||
|
||
if(permissions !== false) | ||
{ | ||
try | ||
{ | ||
fs.accessSync(path, permissions); | ||
} | ||
catch (err) | ||
{ | ||
throw new Error('No access! '+path); | ||
} | ||
} | ||
} | ||
|
||
const linux = './dist/linux-unpacked/resources/app.asar.unpacked/node_modules'; | ||
const linuxArm = './dist/linux-arm64-unpacked/resources/app.asar.unpacked/node_modules'; | ||
|
||
if(process.platform == 'darwin') | ||
{ | ||
|
||
|
||
} | ||
else if(process.platform == 'linux') | ||
{ | ||
if(fs.existsSync('./dist/linux-unpacked/')) | ||
{ | ||
// Node ZSTD All | ||
exists(linux+'/@toondepauw/node-zstd/index.js', fs.constants.R_OK); | ||
exists(linux+'/@toondepauw/node-zstd/node_modules/@toondepauw/node-zstd-linux-x64-gnu/node-zstd.linux-x64-gnu.node', fs.constants.R_OK); | ||
|
||
// Sharp x64 | ||
exists(linux+'/@img/sharp-libvips-linux-x64/lib/libvips-cpp.so.42', fs.constants.R_OK); | ||
exists(linux+'/@img/sharp-linux-x64/lib/sharp-linux-x64.node', fs.constants.X_OK | fs.constants.R_OK); | ||
|
||
// 7zip | ||
exists(linux+'/7zip-bin/linux/x64/7za', fs.constants.X_OK | fs.constants.R_OK); | ||
} | ||
|
||
if(fs.existsSync('./dist/linux-arm64-unpacked/')) | ||
{ | ||
// Node ZSTD All | ||
exists(linuxArm+'/@toondepauw/node-zstd/index.js', fs.constants.R_OK); | ||
exists(linuxArm+'/@toondepauw/node-zstd/node_modules/@toondepauw/node-zstd-linux-arm64-gnu/node-zstd.linux-arm64-gnu.node', fs.constants.R_OK); | ||
|
||
// Sharp arm64 | ||
exists(linuxArm+'/@img/sharp-libvips-linux-arm64/lib/libvips-cpp.so.42', fs.constants.R_OK); | ||
exists(linuxArm+'/@img/sharp-linux-arm64/lib/sharp-linux-arm64.node', fs.constants.X_OK | fs.constants.R_OK); | ||
|
||
// 7zip | ||
exists(linuxArm+'/7zip-bin/linux/arm64/7za', fs.constants.X_OK | fs.constants.R_OK); | ||
} | ||
} | ||
else if(process.platform == 'win32') | ||
{ | ||
|
||
} | ||
|
||
console.log('Runed postbuild tests: Ok'); |
Oops, something went wrong.