Fix windows build output path

This commit is contained in:
Andrea Cavalli 2023-11-11 16:23:23 +01:00
parent 434fd1cc79
commit ed68a0851b
1 changed files with 6 additions and 1 deletions

View File

@ -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"