diff --git a/.travis.yml b/.travis.yml index 1fe9882..e596154 100644 --- a/.travis.yml +++ b/.travis.yml @@ -50,10 +50,11 @@ before_install: script: | if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then bash -e travis/linux.sh; + bash -e travis/deploy_master.sh fi if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then - bash -e travis/win.sh; + bash travis/win.sh; + bash travis/deploy_master.sh fi - bash travis/deploy_master.sh diff --git a/travis/deploy_master.sh b/travis/deploy_master.sh index 2e7d05c..14407f7 100644 --- a/travis/deploy_master.sh +++ b/travis/deploy_master.sh @@ -32,7 +32,7 @@ git clone "git@ssh.git.ignuranza.net:tdlight-team/tdlight-java-natives-$TRAVIS_O cd "tdlight-java-natives-$TRAVIS_OS_NAME_STANDARD-$TRAVIS_CPU_ARCH_STANDARD" if [ "$TRAVIS_OS_NAME_STANDARD" = "windows" ]; then mkdir -p "src/main/resources/libs/$TRAVIS_OS_NAME_STANDARD/$TRAVIS_CPU_ARCH_STANDARD" - mv "$TRAVIS_BUILD_DIR/out/libtdjni.so" "src/main/resources/libs/$TRAVIS_OS_NAME_STANDARD/$TRAVIS_CPU_ARCH_STANDARD/tdjni.dll" + mv "$TRAVIS_BUILD_DIR/out/libtdjni.dll" "src/main/resources/libs/$TRAVIS_OS_NAME_STANDARD/$TRAVIS_CPU_ARCH_STANDARD/tdjni.dll" git add "src/main/resources/libs/$TRAVIS_OS_NAME_STANDARD/$TRAVIS_CPU_ARCH_STANDARD/tdjni.dll" else mkdir -p "src/main/resources/libs/$TRAVIS_OS_NAME_STANDARD/$TRAVIS_CPU_ARCH_STANDARD"