Skip to content

Commit b908f9d

Browse files
committed
Update makefile and general fixies
1 parent 18dc084 commit b908f9d

File tree

10 files changed

+174
-50
lines changed

10 files changed

+174
-50
lines changed

.fpm

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
-C package
2+
-s dir
3+
--name pynocchio
4+
--license gpl3
5+
--version 4.0.0
6+
--architecture all
7+
--depends poppler-utils
8+
--description "Minimalis comic reader"
9+
--url "https://github/mstuttgart/pynocchio"
10+
--maintainer "Michell Stuttgart <michellstut@gmail.com>"
11+
--category "graphics"

Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,18 @@ rcc:
9090
deploy:
9191
$(MAKE) lrelease
9292
$(MAKE) rcc
93+
rm -rf build
9394
mkdir -p build
9495
pyside6-project deploy .
9596

97+
# build .deb packages
98+
packages:
99+
cp -f build/Pynocchio.bin package/usr/bin/pynocchio
100+
cp -f resources/logo.svg package/usr/share/icons/hicolor/scalable/apps/pynocchio.svg
101+
fpm -t deb -p pynocchio-v4.0.0-amd64.deb
102+
fpm -t rpm -p pynocchio-v4.0.0-amd64.rpm
103+
104+
96105
# Update and create translation files
97106
lupdate:
98107
pyside6-lupdate src/views/main_window_view.py -ts i18n/*.ts

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,9 @@ The current version is stable, and we aim to improve it further.
5151
* Support PDF comic files.
5252
* Minimalist design, free, and easy to use!
5353

54-
### Roadmap: https://github.com/mstuttgart/pynocchio/issues/103
55-
5654
## Installation
5755

56+
Download latest release [here](https://github.com/mstuttgart/pynocchio/releases).
5857

5958

6059
## Contributing

package/usr/bin/pynocchio

50.9 MB
Binary file not shown.

package/usr/share/applications/pynocchio.desktop

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Name=Pynocchio
33
GenericName=Comic Book Viewer
44
Comment=A minimalist comic reader
5-
Exec=Pynocchio.bin
5+
Exec=pynocchio
66
Terminal=false
77
Type=Application
88
MimeType=application/x-cbz;application/x-cbr;application/x-cbt;application/x-zip;application/x-rar;application/x-tar;

package/usr/share/control

Lines changed: 0 additions & 12 deletions
This file was deleted.

package/usr/share/icons/hicolor/scalable/apps/pynocchio.svg

Lines changed: 141 additions & 31 deletions
Loading

src/app.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ def main() -> None:
6464
mainController: MainController = MainController(mainModel)
6565

6666
mainWindowView: MainWindowView = MainWindowView(mainController)
67+
6768
mainWindowView.show()
6869

6970
sys.exit(app.exec())

src/app_rc.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2408,11 +2408,11 @@
24082408
\x00\x00\x00Z\x00\x02\x00\x00\x00\x03\x00\x00\x00\x06\
24092409
\x00\x00\x00\x00\x00\x00\x00\x00\
24102410
\x00\x00\x00h\x00\x00\x00\x00\x00\x01\x00\x007\x9a\
2411-
\x00\x00\x01\x96s\xc0\xacb\
2411+
\x00\x00\x01\x96|4zL\
24122412
\x00\x00\x00~\x00\x00\x00\x00\x00\x01\x00\x00Cd\
2413-
\x00\x00\x01\x96s\xc0\xadR\
2413+
\x00\x00\x01\x96|4{C\
24142414
\x00\x00\x00\x94\x00\x00\x00\x00\x00\x01\x00\x00PB\
2415-
\x00\x00\x01\x96s\xc0\xae8\
2415+
\x00\x00\x01\x96|4|7\
24162416
\x00\x00\x00\xaa\x00\x02\x00\x00\x00\x11\x00\x00\x00\x1c\
24172417
\x00\x00\x00\x00\x00\x00\x00\x00\
24182418
\x00\x00\x00\xb8\x00\x02\x00\x00\x00\x11\x00\x00\x00\x0b\

src/models/constants.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,13 @@
8383
".cbt",
8484
]
8585

86-
SUPPORTED_FILES: list[str] = IMAGE_FILE_FORMATS + COMPACT_FILE_FORMATS
86+
SUPPORTED_FILES: list[str] = (
87+
IMAGE_FILE_FORMATS
88+
+ COMPACT_FILE_FORMATS
89+
+ [
90+
".pdf",
91+
]
92+
)
8793

8894
CONFIG_FOLDER: str = (
8995
""

0 commit comments

Comments
 (0)