From cac337cc7674f50f57f8cfefccd8fc7a629c1eb3 Mon Sep 17 00:00:00 2001 From: Ralf Habacker Date: Sat, 22 Mar 2025 10:44:14 +0100 Subject: [PATCH] tools/ci-build.sh: use WINEPATH environment variable to setup wine path --- tools/ci-build.sh | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/tools/ci-build.sh b/tools/ci-build.sh index b258c951..372dd1e1 100755 --- a/tools/ci-build.sh +++ b/tools/ci-build.sh @@ -59,25 +59,8 @@ init_wine() { addpath="$addpath$d$wb" d=";" done - - # create registry file from template - local wineaddpath=$(echo "$addpath" | sed 's,\\,\\\\\\\\,g') - sed "s,@PATH@,$wineaddpath,g" ../tools/user-path.reg.in > user-path.reg - - # add path to registry - wine regedit /C user-path.reg - - # check if path(s) has been set and break if not - local o=$(wine cmd /C "echo %PATH%") - case "$o" in - (*z:* | *Z:*) - # OK - ;; - (*) - echo "Failed to add Unix paths '$*' to path: Wine %PATH% = $o" >&2 - exit 1 - ;; - esac + # setup paths for wine + export WINEPATH=$addpath } # ci_buildsys: