Commit graph

57 commits

Author SHA1 Message Date
shenleban tongying 9006c50b5e
rename macOS app 2024-05-05 03:54:59 -04:00
shenleban tongying 4e1bfb3055 fix macOS CI 2024-05-05 03:47:31 -04:00
shenleban tongying f05998da36 feat: switch macOS CI builds to CMake 2024-05-05 02:17:50 -04:00
shenleban tongying a7eaef5469 feat: utilize CMake for macOS bundle creation 2024-05-05 00:42:17 -04:00
atauzki 75497e2597
CMake: let cpack generate package.
revert ffmpeg player changes.
2024-04-05 10:35:16 -04:00
Boyuan Yang e62dded0f6 CMakeLists.txt: Enforce UTC in timestamp generation
As discussed in the Debian bug report [2], the current timestamp
generation may not be reproducible due to not enforcing the time zone.
This patch enforces UTC as time zone information, which will satisfy
the reproducible-builds[1] requirement.

[1] https://reproducible-builds.org/
[2] https://bugs.debian.org/1068176

Signed-off-by: Boyuan Yang <byang@debian.org>
2024-04-01 18:40:01 -04:00
shenleban tongying b9e14f806c
fix: CMake problems found by the openBSD package (#1422)
* fix: CMake problems found by openBSD package

* remove unused WITH_XAPIAN option
* don't link Qt TTS if not requested

* fix: address CMake problems found by openBSD package

* remove unused WITH_XAPIAN option
* don't link Qt TTS if not requested
* Disable some code when TTS is not requested

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-03-20 11:08:17 +08:00
YiFang Xiao 1bb81c8fc1 upgrade to qt6.6.2 2024-02-16 09:10:07 +08:00
Canvis-Me a7e07ea51c Fix cmake complains no <QPrinter> 2024-02-01 00:56:41 -05:00
YiFang Xiao e2120a6d41 bump alpha version 2024-01-27 13:07:29 +08:00
YiFang Xiao 6491bc474c bump alpha version 2023-12-08 09:36:35 +08:00
YiFang Xiao 23f6ce1550 bump alpha version 2023-11-07 21:26:20 +08:00
atauzki 991e0b7cb9 cleanup libs and fix cmake project version. 2023-10-12 16:40:05 +08:00
xiaoyifang ec2856336c
opt: add option to disable tts component (#1169)
* opt: add tts config option

* opt:[macos] disable tts by default

* [autofix.ci] apply automated fixes

* opt: add build flags to about dialog

---------

Co-authored-by: YiFang Xiao <yifang.xiao@noreply.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-09-26 11:09:05 +08:00
shenleban tongying 76142f2b0b
update CMake project VERSION 2023-09-07 18:00:38 -04:00
atauzki ffa0187298 fix windeployqt path. 2023-08-08 16:14:33 +08:00
atauzki c36c16dee3 let cmake find windeployqt.exe 2023-08-08 15:35:47 +08:00
shenlebantongying ff8aa2ae42 feat: add windeploy CMake target 2023-08-06 08:31:19 -04:00
atauzki d6abfcd6aa
Make CMake icon work on Windows 2023-08-06 10:28:01 +08:00
shenleban tongying 2ff7e7613d
feat: add a flag to parallel install with the original GD
(by install files differently)
2023-08-05 01:25:17 -04:00
shenleban tongying 67f5b1333b
fix: cmake version.txt generation in non-git environments
This was not well defined.
2023-07-30 01:42:41 -04:00
shenleban tongying f9b1d3fa92
fix typo of app id 2023-07-25 08:04:49 -04:00
YiFang Xiao ca92abbe9c action:bump alpha version to 23.07.25 2023-07-25 13:36:42 +08:00
shenleban tongying 53d82f97ca
Another various changes required by Flatpak 2023-07-24 06:58:56 -04:00
shenleban tongying 60d9854240
Various changes required by Flatpak packaging 2023-07-24 05:14:49 -04:00
shenleban tongying 65ebdf0e4c
doc: updates
* use repology.org to replace manually created linux package list [0]
* update debian/ubuntu dependencies (delete outdated fedora one)
* update all build doc to qt6
* add cmake flags info
* merge all build instructions into one
* add more ocr examples
* add links and fix dictionary formats info
* misc
2023-07-06 01:23:51 -04:00
shenleban tongying 849b1345e1
fix: define PROGRAM_DATA_DIR for cmake
* the PROGRAM_DATA_DIR is hardcoded path to /usr/share/goldendict
* Without it, resources cannot be loaded
2023-06-03 09:50:13 -04:00
shenleban tongying f68fca5a45
cmake: duplicated tomlplusplus include 2023-06-01 03:15:07 -04:00
shenleban tongying 0c75d4f399
cmake: updates
* add USE_SYSTEM_FMT & USE_SYSTEM_TOML
* switch back to libeb
2023-06-01 01:28:45 -04:00
YiFang Xiao 536da5e5fc bump alpha version 2023-05-31 20:56:28 +08:00
YiFang Xiao d00ea8ea20 release bump version to 2023.06.01 2023-05-31 20:44:48 +08:00
YiFang Xiao ba24e57913 fix: cmake install will install extra header files
fix #755
2023-05-28 15:49:07 +08:00
xiaoyifang 3858932ec4
feat!: add libzim dependency (#725)
* feat!: add libzim dependency

* 🎨 apply clang-format changes

* action: add libzim dependency to action

* feat!: change dependency folder

* action: add zim support

* feat!: add libzim support

* action: fix sonarcloud check

* doc: add libzim readme

* action: cmake build

* action: cmake check

* fix: code smell

* action: cmake check

* action: cmake on Macos

* action: cmake on Macos

* feat: use libzim to read title and description

* 🎨 apply clang-format changes

* feat: split zim file support

* feat: loadArticle refactor

* 🎨 apply clang-format changes

* 🎨 apply clang-format changes

* feat: update library and goldendict.pro

* 🎨 apply clang-format changes

* fix:word count

* 🎨 apply clang-format changes

* fix: video src url subsititue

* 🎨 apply clang-format changes

* zim: headword is not usually a valid

it is from title and url.

* fix: remove nested try catch

* zim: fix resource loading issue.

* 🎨 apply clang-format changes

* action: remove libao

* zim: process url

some old zim dictionary url does not contain namespace such as
/C/url

make the old and new zim dictionary's url consistent without the leading
../C/  etc.

* 🎨 apply clang-format changes

* zim: process url

remove leading dot and slash
such as ../-/assets  ,remove ../

* 🎨 apply clang-format changes

* zim: remove resourceIndex creation

use libzim to read the resource directly.

* zim: only iterate all the articles

* 🎨 apply clang-format changes

* fix: code smell

* 🎨 apply clang-format changes

* zim: refactor method to convert url to wstring

* 🎨 apply clang-format changes

* fix:code smell

* 🎨 apply clang-format changes

* zim: update windows dependencies

* zim: add mutex lock

* 🎨 apply clang-format changes

* fix: code smell

* 🎨 apply clang-format changes

---------

Co-authored-by: xiaoyifang <xiaoyifang@users.noreply.github.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-05-27 12:12:16 +08:00
shenleban tongying 416d70891d add {fmt} 10 to qmake & cmake 2023-05-20 11:46:29 +08:00
shenleban tongying d0b2349156 update .desktop and appstream xml 2023-05-18 10:27:40 +08:00
shenlebantongying 4ead97637e cmake: split windows & unix library finding & linking
* they have nothing in common
2023-05-06 07:07:09 +08:00
xiaoyifang 94759ffb58 opt: add group by metadata
close #612
2023-04-29 20:43:27 +08:00
shenleban tongying fcbb5ae8a2 feat(singleApp): remove private QLockFile implementation
* QLockFile is part of Qt since 5.1
2023-04-20 16:21:05 +08:00
shenleban tongying 747ebf3a82 feat(cmake): various updates
* recursive file including
* with xapian
* use iconv
* feature summary
2023-04-18 17:38:48 +08:00
Xiao YiFang e6cd18e1b3 clean: remove gdappstyle file
fix #516
2023-04-18 10:31:39 +08:00
shenleban tongying 20230542d6
refactor: move none c++ source files into src/ 2023-04-17 13:40:05 -04:00
shenleban tongying 3ff6b6a8ee feat(help): replace QtHelp with website
* Nobody wants to update .qch files
2023-04-17 14:40:29 +08:00
Xiao YiFang 9d3c76cf48 fix: remove unused files
#502
remove sapi.hh
remove processwrapper.cc(hh)
2023-04-16 18:09:12 +08:00
shenleban tongying 948e76d132 fix: add __WIN32 to cmake definitions 2023-04-13 15:54:48 +08:00
Xiao YiFang e32a7a2c94 fix:remove custom treeview class 2023-04-12 22:48:31 +08:00
Xiao YiFang 2407cf2a88 use QTextToSpeech module to play tts.
fix code smells
2023-03-29 23:16:01 +08:00
shenleban tongying fac1247c10 refactor: properly modularize articleview's ui 2023-03-18 11:00:06 +08:00
shenleban tongying a75867f82b refactor: convert articleview into plain code 2023-03-18 11:00:06 +08:00
shenleban tongying 4f2c8d55aa refactor: port away from extlineedit
* the main feature of extlineedit.cc was having icons on left and right side which is already provided by QLineEdit::addAction after Qt5.2
2023-03-06 09:46:32 +08:00
shenleban tongying 38956589a2 refactor: convert scanflag.ui to plain code 2023-02-21 19:56:12 -05:00