Skip to content

Commit

Permalink
dev: set EC dirs in run-fw
Browse files Browse the repository at this point in the history
Change-Id: Id5a019fa373d1ef4080e09473d8f3e38e9ef72f9
  • Loading branch information
marksvc committed Apr 11, 2022
1 parent 4553fc9 commit 49feeea
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Build/run-fw
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ fw_registry_utils_dir="${repo_root}/Bin"
dist_files_dir="${repo_root}/DistFiles"
CONFIGURATION="${CONFIGURATION-Debug}"
output_configuration_dir="${repo_root}/Output/${CONFIGURATION}"
ec_plugin_dir="/usr/lib/fieldworks/EC/Plugins"
ec_root_dir="/usr/lib/fieldworks"
cd "${repo_root}/"

FLEXBRIDGE_CONFIGURATION="${FLEXBRIDGE_CONFIGURATION-Debug}"
Expand All @@ -34,10 +36,20 @@ ReadKey() {

for registry in LM CU; do
WriteKey ${registry} "Software/SIL/FieldWorks/9" "RootCodeDir" "${dist_files_dir}"
WriteKey ${registry} "Software/SIL/SilEncConverters40" "PluginDir" "${ec_plugin_dir}"
WriteKey ${registry} "Software/SIL/SilEncConverters40" "RootDir" "${ec_root_dir}"
# It's not clear if "Primary Interop Assemblies" is being used by anything
# other than NMock.
WriteKey ${registry} "Software/Microsoft/.NETFramework/AssemblyFolders" \
"Primary Interop Assemblies" "${output_configuration_dir}"
devPluginDir="$(ReadKey ${registry} "Software/SIL/SilEncConverters40" "DeveloperPluginDir" 2>/dev/null || true)"
if [[ ${devPluginDir} != "" ]]; then
newValue="${ec_plugin_dir}"
echo "Warning: Registry setting ${registry} SilEncConverters40" \
"DeveloperPluginDir is set. Its value is \'${devPluginDir}\'." \
"Changing it to \'${newValue}\'."
WriteKey ${registry} "Software/SIL/SilEncConverters40" "DeveloperPluginDir" "${newValue}"
fi
done

FW_EXE="${output_configuration_dir}/FieldWorks.exe"
Expand Down

0 comments on commit 49feeea

Please sign in to comment.