aboutsummaryrefslogtreecommitdiff
path: root/tools/windows/JsonSchemaBuilder.bat
diff options
context:
space:
mode:
Diffstat (limited to 'tools/windows/JsonSchemaBuilder.bat')
-rw-r--r--tools/windows/JsonSchemaBuilder.bat5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/windows/JsonSchemaBuilder.bat b/tools/windows/JsonSchemaBuilder.bat
index 3e0b52e253..ad9f8b4c51 100644
--- a/tools/windows/JsonSchemaBuilder.bat
+++ b/tools/windows/JsonSchemaBuilder.bat
@@ -5,7 +5,8 @@ SET cur_dir=%CD%
SET base_dir=%cur_dir%\..\..
SET builddeps_dir=%cur_dir%\..\BuildDependencies
SET bin_dir=%builddeps_dir%\bin
-SET msys_bin_dir=%builddeps_dir%\msys\bin
+SET msys_bin_dir=%builddeps_dir%\msys64
+IF NOT EXIST %msys_bin_dir% SET msys_bin_dir=%builddeps_dir%\msys32
SET jsonrpc_path=%base_dir%\xbmc\interfaces\json-rpc
SET jsonrpc_schema_path=%jsonrpc_path%\schema
SET jsonrpc_output=ServiceDescription.h
@@ -14,7 +15,7 @@ SET xbmc_json_path=%base_Dir%\addons\xbmc.json
SET xbmc_json_output=addon.xml
SET /p version=<"%jsonrpc_schema_path%\version.txt"
-"%msys_bin_dir%\sed.exe" s/@jsonrpc_version@/%version%/g "%xbmc_json_path%\%xbmc_json_output%.in" > "%xbmc_json_path%\%xbmc_json_output%"
+"%msys_bin_dir%\usr\bin\sed.exe" s/@jsonrpc_version@/%version%/g "%xbmc_json_path%\%xbmc_json_output%.in" > "%xbmc_json_path%\%xbmc_json_output%"
"%bin_dir%\json-rpc\JsonSchemaBuilder.exe" "%jsonrpc_schema_path%\version.txt" "%jsonrpc_schema_path%\license.txt" "%jsonrpc_schema_path%\methods.json" "%jsonrpc_schema_path%\types.json" "%jsonrpc_schema_path%\notifications.json"
MOVE /Y %jsonrpc_output% "%jsonrpc_path%\%jsonrpc_output%" \ No newline at end of file