Commit graph

29 commits

Author SHA1 Message Date
Jan Beich
c18572a92e
util: add missing header for libc++ (#71)
hyprcursor-util/src/main.cpp:260:19: error: implicit instantiation of undefined template 'std::basic_ofstream<char>'
  260 |     std::ofstream manifest(out + "/manifest.hl", std::ios::trunc);
      |                   ^
/usr/include/c++/v1/__fwd/fstream.h:26:28: note: template is declared here
   26 | class _LIBCPP_TEMPLATE_VIS basic_ofstream;
      |                            ^
hyprcursor-util/src/main.cpp:292:41: error: implicit instantiation of undefined template 'std::basic_ifstream<char>'
  292 |         std::ifstream                   xconfig("/tmp/hyprcursor-util/" + xcursor.path().stem().string() + ".conf");
      |                                         ^
/usr/include/c++/v1/__fwd/fstream.h:24:28: note: template is declared here
   24 | class _LIBCPP_TEMPLATE_VIS basic_ifstream;
      |                            ^
hyprcursor-util/src/main.cpp:370:23: error: implicit instantiation of undefined template 'std::basic_ofstream<char>'
  370 |         std::ofstream meta(CURSORDIR + "/meta.hl", std::ios::trunc);
      |                       ^
/usr/include/c++/v1/__fwd/fstream.h:26:28: note: template is declared here
   26 | class _LIBCPP_TEMPLATE_VIS basic_ofstream;
      |                            ^
2024-12-14 14:05:23 +01:00
Eric Leblond
cab4746180
zip: fix build for some distros (#37) (#38)
libzip 1.10.1 is not available on some distributions. This patch
introduces a workaround to fix the build instead of jumping to
1.10.1 release.
2024-04-20 12:23:33 +01:00
c38dcf160d util: fix printing overrides
ref #36
2024-04-15 14:21:28 +01:00
SoSeDiK
92af141a01
util: Minor cleanup (#34)
Avoid double // in paths
Replace magic 0 value with libzip's ZIP_LENGTH_TO_END
Correct png to image (can be svg as well)
2024-04-12 11:55:59 +01:00
SoSeDiK
d41e8ac8d1
zip: Properly report error on zip_close (#33) 2024-04-12 11:54:39 +01:00
SoSeDiK
178717746d
lib: Add validation for cursor file names and propagate the error from parsing HL cursor (#32)
* Validate cursor file names

* Propagate errors from parsing HL cursor

* Validate cursor directory names
2024-04-12 01:01:33 +01:00
033416cedc util: pack meta with the correct extension
fixes #25
2024-04-08 10:23:45 +01:00
Vaxry
7561459770
lib: Added a raw data API (#23)
* raw data API

* add missing type arg

* tests: better stuff
2024-04-06 21:16:55 +01:00
d780013ffa CMake: move hyprcursor-util to parent 2024-04-04 17:40:42 +01:00
f4ea0297a0 core: Add support for toml manifests and metas
ref #20
2024-04-04 16:21:38 +01:00
4b9efbed7a util: wrap paths in quotes in shell invocations
ref #10
2024-03-17 00:29:10 +00:00
f1547443a0 cmake: add version define 2024-03-11 22:01:46 +00:00
ea1c1ff897 util: err out on invalid manifest/meta 2024-03-11 20:28:34 +00:00
96a015fc20 util: fix xcur2png check 2024-03-10 03:07:16 +00:00
03d38a4232 util: use canonical first on paths passed via args 2024-03-10 03:06:39 +00:00
b2cd693956 util: check for xcur2png before extract 2024-03-10 02:58:14 +00:00
4daa132c00 util: update readme 2024-03-09 23:18:06 +00:00
ad64299e37 util: use a subdir from the output directory 2024-03-09 23:11:17 +00:00
31aff6642a util: refuse deleting directories that do not look like themes 2024-03-09 23:03:28 +00:00
2e42262ac5 util: prompt before nuking out directory 2024-03-09 21:44:47 +00:00
170dbb09ec util: add xcur2png to deps 2024-03-08 17:20:05 +00:00
06d1028025 util: add --resize 2024-03-08 02:01:45 +00:00
74ae8a1847 core: support svg cursors 2024-03-07 20:46:36 +00:00
4c789d1300 util: Add readme 2024-03-07 18:01:12 +00:00
3dc5ca4e11 all: add support for animated cursors 2024-03-07 16:21:04 +00:00
a1df22903a lib: add resampling 2024-03-07 14:50:48 +00:00
fcfa979979 core: add helper for resize algo 2024-03-07 14:16:22 +00:00
10516e0451 util: add extracting xcursor themes 2024-03-07 14:14:39 +00:00
5227dcc787 Initial commit: very basics 2024-03-07 03:19:38 +00:00