From 0b5193f3bd84df957337e703445a6dadd30e4f55 Mon Sep 17 00:00:00 2001 From: cyBerta Date: Sun, 31 Jan 2021 21:51:29 +0100 Subject: move more scripts to scripts folder, adapt gitlab ci and prepare_for_distribution script --- build_deps.sh | 38 -------------------------------------- 1 file changed, 38 deletions(-) delete mode 100755 build_deps.sh (limited to 'build_deps.sh') diff --git a/build_deps.sh b/build_deps.sh deleted file mode 100755 index beb5e13e..00000000 --- a/build_deps.sh +++ /dev/null @@ -1,38 +0,0 @@ -#!/bin/bash - -function quit { - echo "Task failed. $1." - exit 1 -} - - -DIR_OVPNASSETS=./ics-openvpn/main/build/ovpnassets -DIR_OVPNLIBS=./ics-openvpn/main/build/intermediates/cmake/noovpn3/release/obj -DIR_GOLIBS=./go/lib/ -FILE_X86=./go/out/x86/piedispatcherlib -FILE_ARM=./go/out/armeabi-v7a/piedispatcherlib - -# init -# look for empty dir - -if [[ $(ls -A ${DIR_OVPNASSETS}) && $(ls -A ${DIR_OVPNLIBS}) ]] -then - echo "Dirty build: skipped externalNativeBuild - reusing existing libs" -else - echo "Clean build: starting externalNativeBuild" - cd ./ics-openvpn || quit "Directory ics-opevpn not found" - ./gradlew clean main:externalNativeBuildCleanSkeletonRelease main:externalNativeBuildSkeletonRelease --debug --stacktrace || quit "Build ics-openvpn native libraries failed" - cd .. -fi - -if [[ $(ls -A ${DIR_GOLIBS}) ]] -then - echo "Dirty build: Reusing go libraries" -else - echo "Clean build: compiling Go libraries" - cd ./go || quit "Directory go not found" - ./install_go.sh || quit "install_go.sh failed" - ./android_build_web_core.sh || quit "android_build_web_core.sh (shapeshifter + pgpverify) failed" - ./android_build_core.sh || quit "android build core (shapeshifter) failed" - cd .. -fi -- cgit v1.2.3