Commit Graph

1023 Commits

Author SHA1 Message Date
Martchus 59217e9985 Fix typo 2022-10-30 21:36:43 +01:00
Martchus 7f782cdb28 Add CMake presets 2022-10-30 21:36:08 +01:00
Martchus 913b6e7d65 Apply CMake format 2022-10-16 15:04:52 +02:00
Martchus e502269d50 Run cmake-format on tests specified via `QT_TESTS` variable 2022-10-16 15:04:38 +02:00
Martchus 3f072549a6 Detect whether GPL license version is "-or-later" automatically 2022-10-13 00:03:04 +02:00
Martchus aa31d441d7 Avoid guessing release data for AppStream file, rely on explicit meta-data 2022-10-12 22:55:56 +02:00
Martchus 804852b95e Do not exclude appstream validation from checks as errors should be handled 2022-10-11 21:03:17 +02:00
Martchus d05677e3b5 Prevent AppStream validation error `asv-release-time-missing`
* Avoid hard-coding and additional steps in the release workflow by simply
  considering the day of the last modification the release date
* See https://github.com/Martchus/syncthingtray/issues/158
2022-10-11 21:00:16 +02:00
Martchus da431580d4 Prevent AppStream validation error `asv-cid-desktopapp-is-not-rdns`
See https://github.com/Martchus/syncthingtray/issues/158
2022-10-11 20:58:21 +02:00
Martchus fdd6af1b2c Document appstreamcli dependency 2022-10-11 19:29:23 +02:00
Martchus 4a7a9ec32d Add build system check to validate appstream files
* Exclude new tests from `check` target for now as they are currently
  failing
* See https://github.com/Martchus/syncthingtray/issues/158
2022-10-11 19:25:17 +02:00
Martchus 0cf59b654b Make `isEnvVariableSet()` public API 2022-10-08 22:29:32 +02:00
Martchus faaa40100c Allow using functions for adding desktop/appstream file independently 2022-10-08 21:55:24 +02:00
Martchus 6962729037 Bump minor version 2022-10-08 21:54:03 +02:00
Martchus e2c38fd65b Update Gentoo overlay links 2022-10-03 13:41:46 +02:00
Martchus 353a74fa96 Avoid separating version parts with dots in DLL name
It looks better to not use dots here as a dot already separates the
extension.
2022-09-11 13:45:07 +02:00
Martchus 24e070fd15 Bump patch version 2022-09-11 13:41:57 +02:00
Martchus 3a9a9c6f36 Apply cmake-format 2022-08-22 21:47:19 +02:00
Martchus 70e6ef4b7b Avoid redundant definition of appstream file path 2022-08-22 21:47:08 +02:00
Martchus 9141fcdfd8 Skip creation of desktop/appstream files if not building with GUI support 2022-08-20 18:13:08 +02:00
Martchus 42db96705e Add formatting for `DateTimeExpression` 2022-08-13 14:41:24 +02:00
Martchus 5acf422f71 Add useful operators to `DateTimeExpression`
* Add serialization back to string, useful for implementing
  `TagValue::toString()`
* Add equality comparition
2022-08-13 14:10:40 +02:00
Martchus 4911d16129 Add useful shorthands to `DateTimeParts` 2022-08-13 14:08:46 +02:00
Martchus 3a06641bb9 Improve docs for `DateTimeExpression` 2022-08-13 14:07:57 +02:00
Martchus 5fe03c23a2 Rename `DateTimeParts::Millisecond` to `…::SubSecond`
We're currently just tracking whether the second has a fraction so this is
more fitting.
2022-08-13 14:07:37 +02:00
Martchus f20d596785 Add `DateTimeExpression` to keep track of parsed timestamp parts
The existing timestamp parsers already internally keep track what parts
have been parsed via an index variable. This change exposes this
information as it can sometimes be useful to know what parts were actually
present in the timestamp.
2022-08-12 20:45:06 +02:00
Martchus fea69428d1 Apply cmake-format 2022-08-11 23:29:37 +02:00
Martchus aa4be0ef70 Fix build errors with CMake 3.24.0
See note in comment; concrete example of build error (when building
syncthingtray against qtforkawesome built with CMake 3.24.0):

```
CMake Error at plasmoid/lib/CMakeLists.txt:15 (find_package):
  Found package configuration file:

    /usr/share/qtquickforkawesome-git/cmake/qtquickforkawesome-gitConfig.cmake

  but it set qtquickforkawesome-git_FOUND to FALSE so package
  "qtquickforkawesome-git" is considered to be NOT FOUND.  Reason given by
  package:

  The following imported targets are referenced, but are missing:
  qtforkawesome-git
```
2022-08-09 20:51:42 +02:00
Martchus 0c6fa07b53 Add `Argument::addSubArguments()` and improve related documentation 2022-08-06 19:14:02 +02:00
Martchus d2873e451d Bump minor version 2022-08-06 19:05:02 +02:00
Martchus a1aef36c83 Add `checkFlagEnum()` and tests for `flagenumclass.h` 2022-07-29 22:01:51 +02:00
Martchus 82f835546e Bump minor version 2022-07-29 22:01:16 +02:00
Martchus fe6ad81340 Fix copy helper for large data sizes on 32-bit platforms
On 32-bit platforms `std::size_t` is just 4 bytes big which is not enough
to handle large data sizes. Using `std::streamsize` would likely be most
appropriate but switching signdness is likely not the best idea for
compatibility and it would mean a comparison with different signdness
because the buffer size is still `std::size_t`. So using `std::uint64_t`
now.
2022-07-14 00:30:40 +02:00
Martchus 7db3cfc274 Bump patch version 2022-07-14 00:25:59 +02:00
Martchus 639018285d Fix typos 2022-06-26 11:48:44 +02:00
Martchus 8f4ca38c69 Update documentation of argument parser 2022-06-26 11:45:13 +02:00
Martchus 3c769fa242 Add greedy-flag for argument parser
This is useful if one needs to pass subsequent arguments as-is to another
nested argument parser.
2022-06-26 11:24:36 +02:00
Martchus 08194f5d32 Bump minor version 2022-06-26 11:19:03 +02:00
Martchus 3444e4bbb1 Improve argument parser tests
* Use auto
* Use `CPPUNIT_ASSERT_EQUAL` with `std::string_view` instead of `strcmp`
  for better error messages in case of a failure
* Avoid instantiating an `std::string` in checks using `std::string_view`
  instead
2022-06-26 11:18:36 +02:00
Martchus b1b811c57f Apply clang-format 2022-06-26 11:04:23 +02:00
Martchus 9e036a3f72 Allow enabling virtual terminal processing under Windows
* or disable use of ANSI-escape codes if not possible
* See https://github.com/Martchus/syncthingtray/issues/132
2022-06-07 16:46:54 +02:00
Martchus cf510f0397 Use macros from cstdlib instead of hard-coding exit codes 2022-05-21 12:37:36 +02:00
Martchus c931e2d928 Fix missing `#pragma GCC diagnostic push` 2022-05-21 12:13:01 +02:00
Martchus 7555e6854b Add test helper to use std::optional via CPPUNIT_ASSERT_EQUAL 2022-05-15 02:18:07 +02:00
Martchus c1152ca062 Ignore warning about possible null pointer dereferences appearing with GCC 12
Not sure why this warning is occurring but it is likely incorrect
2022-05-12 20:31:05 +02:00
Martchus f46855b130 Bump patch version 2022-05-12 20:09:06 +02:00
Martchus 24709861e2 Add stalebot config 2022-04-12 01:02:00 +02:00
Martchus c1e93738b6 Fix condition for avoiding `-static` flag
There's no `LINUX`; I suppose `UNIX` is specific enough as well.
2022-04-05 22:10:16 +02:00
Martchus 910432df4c Add copyright notice 2022-04-05 20:09:16 +02:00
Martchus 58c3506ca0 Add opt-out for enforcing static linkage (when generally aiming for static linkage) 2022-04-03 00:51:33 +02:00