From ed68a0851bdbeb5556b516b51971d03f1236f830 Mon Sep 17 00:00:00 2001 From: Andrea Cavalli Date: Sat, 11 Nov 2023 16:23:23 +0100 Subject: [PATCH] Fix windows build output path --- .github/workflows/scripts/build_windows_amd64.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/scripts/build_windows_amd64.sh b/.github/workflows/scripts/build_windows_amd64.sh index a1b6d34..b86c025 100755 --- a/.github/workflows/scripts/build_windows_amd64.sh +++ b/.github/workflows/scripts/build_windows_amd64.sh @@ -1,7 +1,8 @@ #!/bin/bash -ex +# Change working directory +DEPLOY_DIR="$(pwd)" cp -r . /c/tmp_tdlight - cd /c/tmp_tdlight # Windows 2019 @@ -90,3 +91,7 @@ cd .. mkdir -p src/main/resources/META-INF/tdlightjni/ mv tdjni_bin/tdjni.dll src/main/resources/META-INF/tdlightjni/tdjni.windows_amd64.dll mvn -B -f pom.xml -Drevision="$REVISION" -Dnative.type.classifier=windows_amd64 package + +# Restore original working directory +cp -r "./target/" "$DEPLOY_DIR/" +cd "$DEPLOY_DIR"