diff --git a/scripts/all-in-one/utils/all_in_one_packaging.bat b/scripts/all-in-one/utils/all_in_one_packaging.bat index aa7205a..1afa523 100644 --- a/scripts/all-in-one/utils/all_in_one_packaging.bat +++ b/scripts/all-in-one/utils/all_in_one_packaging.bat @@ -23,6 +23,7 @@ git clone https://github.com/wit-ai/voicesdk-unreal echo ">> 3. add WITH_VOICESDK macro for 'create preset' feature, this can be removed if 2 repos merged." node ../../utils/update_WITH_VOICESDK_flag.js +node ../../utils/update_WITH_VOICESDK_MARKETPLACE_flag.js node ../../update_WITH_VOICESDK_USERAGENT_flag.js echo ">> 4. Copy code and content from wit to voicesdk" diff --git a/scripts/all-in-one/utils/update_WITH_VOICESDK_MARKETPLACE_flag.js b/scripts/all-in-one/utils/update_WITH_VOICESDK_MARKETPLACE_flag.js new file mode 100644 index 0000000..6592ea9 --- /dev/null +++ b/scripts/all-in-one/utils/update_WITH_VOICESDK_MARKETPLACE_flag.js @@ -0,0 +1,16 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +var fs = require('fs'); +const updateFileAsync = require("../../helper"); + +const FILE_PATH = 'wit-unreal\\Source\\WitEditor\\WitEditor.Build.cs'; +const KEY_STRING_START = 'PrivateDefinitions.Add("WITH_VOICESDK_MARKETPLACE='; +const KEY_STRING_END = '"'; +const replacement = '1' + +updateFileAsync(FILE_PATH, KEY_STRING_START, replacement, KEY_STRING_END);