summaryrefslogtreecommitdiffstats
path: root/admin/Sources/Clients/ogagent/windows/build-windows.sh
diff options
context:
space:
mode:
Diffstat (limited to 'admin/Sources/Clients/ogagent/windows/build-windows.sh')
-rwxr-xr-xadmin/Sources/Clients/ogagent/windows/build-windows.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/admin/Sources/Clients/ogagent/windows/build-windows.sh b/admin/Sources/Clients/ogagent/windows/build-windows.sh
index d7248ab7..88a3c4ed 100755
--- a/admin/Sources/Clients/ogagent/windows/build-windows.sh
+++ b/admin/Sources/Clients/ogagent/windows/build-windows.sh
@@ -1,5 +1,7 @@
#!/bin/bash
+cd "$(dirname "$0")"
export WINEARCH=win32
-export WINEPREFIX=$(realpath $(dirname $0)/wine)
+export WINEPREFIX=$PWD/wine
+grep -o "[0-9]*\.[0-9]*\.[0-9]*" ../src/VERSION > VERSION
wine cmd /c c:\\ogagent\\build.bat
-chmod -x $(dirname $0)/../OGAgentSetup*.exe
+chmod -x ../OGAgentSetup*.exe