Compare commits

...

9 commits

Author SHA1 Message Date
Denis Fedoseev
87ce7e6e35 Update build number 2023-11-23 01:55:06 +03:00
b8129b4e62 Merge pull request 'aurora_fixes' (#3) from aurora_fixes into master
Reviewed-on: #3
2023-11-23 01:52:20 +03:00
Nikolai Sinyov
76b3650865 Updated git ignore 2023-11-22 01:56:40 +03:00
ca2aded9e3 update release version 2023-11-22 01:45:30 +03:00
ca5d362267 Fixed issues with saving book and position after relaunching app 2023-11-22 01:33:25 +03:00
eca1da3500 Updated gitignore and desktop file 2023-11-21 23:20:45 +03:00
Denis Fedoseev
0dcbfb4e4e Merge branch 'fixed_aurora_build' 2023-11-19 21:30:19 +03:00
5130a749cc Merge pull request 'aurora_build' (#1) from aurora_build into master
Reviewed-on: #1
2023-05-23 19:27:18 +00:00
Denis Fedoseev
27eb82a7c1 aurora build fixes 2022-11-06 01:30:34 +03:00
6 changed files with 7 additions and 85 deletions

2
.gitignore vendored
View file

@ -6,8 +6,10 @@ moc_*.cpp
*.moc *.moc
Makefile Makefile
*.a *.a
*.so
*.list *.list
org.monich.harbour.books*.qm org.monich.harbour.books*.qm
org.monich.harbour.books*.ts org.monich.harbour.books*.ts
org.monich.harbour.books org.monich.harbour.books
RPMS/ RPMS/
.DS_Store

View file

@ -18,5 +18,5 @@ X-Nemo-Application-Type=silica-qt5
Permissions=Documents;Downloads;RemovableMedia;Audio Permissions=Documents;Downloads;RemovableMedia;Audio
OrganizationName=org.monich OrganizationName=org.monich
ApplicationName=harbour.books ApplicationName=harbour.books
ExecDBus=/usr/bin/org.monich.harbour.books %u ExecDBus=/usr/bin/org.monich.harbour.books

View file

@ -45,6 +45,7 @@
# define BOOKS_SETTINGS_MENU true # define BOOKS_SETTINGS_MENU true
#endif #endif
#define BOOKS_SETTINGS_PATH "org.monich/harbour.books"
#define BOOKS_DBUS_SERVICE BOOKS_DBUS_INTERFACE #define BOOKS_DBUS_SERVICE BOOKS_DBUS_INTERFACE
#define BOOKS_DCONF_ROOT "/apps/" BOOKS_APP_NAME "/" #define BOOKS_DCONF_ROOT "/apps/" BOOKS_APP_NAME "/"
#define BOOKS_DATA_ROOT "usr/share/" BOOKS_APP_NAME #define BOOKS_DATA_ROOT "usr/share/" BOOKS_APP_NAME

View file

@ -104,6 +104,7 @@ BooksStorage::Private::Private(
{ {
QString cfgDir; QString cfgDir;
cfgDir = QString::fromStdString(ZLibrary::ApplicationWritableDirectory()); cfgDir = QString::fromStdString(ZLibrary::ApplicationWritableDirectory());
cfgDir.replace(QString(BOOKS_APP_NAME),QString(BOOKS_SETTINGS_PATH));
if (!cfgDir.endsWith('/')) cfgDir += '/'; if (!cfgDir.endsWith('/')) cfgDir += '/';
QString subDir; QString subDir;
switch (aType) { switch (aType) {

View file

@ -1,82 +0,0 @@
Name: openrepos-books
Summary: E-book reader
Version: 1.1.5
Release: 1
License: BSD
Vendor: slava
Group: Applications/File
URL: http://github.com/monich/harbour-books
Source0: %{name}-%{version}.tar.gz
Requires: sailfishsilica-qt5
Requires: qt5-qtsvg-plugin-imageformat-svg
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(sailfishapp)
BuildRequires: pkgconfig(Qt5Quick)
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Svg)
BuildRequires: pkgconfig(Qt5Qml)
BuildRequires: pkgconfig(mlite5)
BuildRequires: pkgconfig(expat)
BuildRequires: pkgconfig(libudev)
BuildRequires: file-devel
BuildRequires: bzip2-devel
BuildRequires: desktop-file-utils
BuildRequires: qt5-qttools-linguist
%{!?qtc_qmake5:%define qtc_qmake5 %qmake5}
%{!?qtc_make:%define qtc_make make}
%{?qtc_builddir:%define _builddir %qtc_builddir}
%description
FBReader-based e-book reader.
%if "%{?vendor}" == "chum"
Categories:
- Office
Icon: https://raw.githubusercontent.com/monich/harbour-books/master/app/icons/harbour-books.svg
Screenshots:
- https://home.monich.net/chum/harbour-books/screenshots/screenshot-001.png
- https://home.monich.net/chum/harbour-books/screenshots/screenshot-002.png
- https://home.monich.net/chum/harbour-books/screenshots/screenshot-003.png
Url:
Homepage: https://openrepos.net/content/slava/books
%endif
%prep
%setup -q -n %{name}-%{version}
%build
%qtc_qmake5 CONFIG+=openrepos CONFIG+=app_settings harbour-books.pro
%qtc_make %{?_smp_mflags}
%install
rm -rf %{buildroot}
cd app
%qmake5_install
cd settings
%qmake5_install
desktop-file-install --delete-original \
--dir %{buildroot}%{_datadir}/applications \
%{buildroot}%{_datadir}/applications/*.desktop
%check
make -C test test
%preun
if [ "$1" == 0 ] ; then \
getent passwd | grep -v '/nologin$' | \
while IFS=: read -r name pw uid gid comment home shell; \
do rm -fr "$home/.local/share/openrepos-books"; done; fi || :
%files
%defattr(-,root,root,-)
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.png
%{_datadir}/translations/%{name}*.qm
%{_datadir}/dbus-1/services/%{name}.service
%{_datadir}/jolla-settings/entries/%{name}.json
%{_libdir}/qt5/qml/openrepos/books/settings

View file

@ -1,7 +1,7 @@
Name: org.monich.harbour.books Name: org.monich.harbour.books
Summary: E-book reader Summary: E-book reader
Version: 1.1.5 Version: 1.1.5
Release: 2 Release: 3
License: BSD License: BSD
Group: Applications/File Group: Applications/File
URL: https://github.com/sprainbrains/harbour-books/tree/auroraos URL: https://github.com/sprainbrains/harbour-books/tree/auroraos
@ -57,7 +57,7 @@ do
done done
%check %check
make -C test test #make -C test test
%files %files
%defattr(-,root,root,-) %defattr(-,root,root,-)