Skip to content

Commit

Permalink
🐛 install espeak-ng-data files into vendor directory
Browse files Browse the repository at this point in the history
Give up on using the programdata directory with local installs
  • Loading branch information
H0R5E committed Nov 27, 2024
1 parent a3a54e1 commit d2fb481
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion cmake/icons.iss
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
Name: "{group}\Louis Work"; Filename: "{app}\bin\louis.exe"; IconFilename: "{app}\l-key.ico";

[Registry]
Root: HKLM; Subkey: "SYSTEM\CurrentControlSet\Control\Session Manager\Environment"; ValueType:string; ValueName:"ESPEAK_DATA_PATH"; ValueData:"{app}\espeak-ng-data"; Flags: preservestringtype
Root: HKLM; Subkey: "SYSTEM\CurrentControlSet\Control\Session Manager\Environment"; ValueType:string; ValueName:"ESPEAK_DATA_PATH"; ValueData:"{app}\vendor\espeak-ng-data"; Flags: preservestringtype
Root: HKLM; Subkey: "SYSTEM\CurrentControlSet\Control\Session Manager\Environment"; ValueType:string; ValueName:"LOUIS_DATA_PATH"; ValueData:"{app}"; Flags: preservestringtype
6 changes: 1 addition & 5 deletions vendor/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,7 @@ if (ESPEAKNG_BUILD)
set_property(TARGET libespeak-ng PROPERTY
IMPORTED_IMPLIB ${VENDOR_PREFIX}/src/espeak-ng/src/windows/x64/Release/libespeak-ng.lib)

if (INNO)
cmake_path(SET PROGRAMDATA ".")
else()
cmake_path(SET PROGRAMDATA $ENV{PROGRAMDATA})
endif()
install(DIRECTORY ${VENDOR_PREFIX}/src/espeak-ng/espeak-ng-data DESTINATION vendor)
else(UNIX)
ExternalProject_Add(
libespeak-ng-nix
Expand Down

0 comments on commit d2fb481

Please sign in to comment.