Index: .travis/prepare-prebuilt-v8.sh |
diff --git a/.travis/prepare-prebuilt-v8.sh b/.travis/prepare-prebuilt-v8.sh |
index 9c5a3d8df0f248af579201d81655f501b2129d68..cf8e5ae90bcf6c1123bf2a104d31cb3951a4616b 100644 |
--- a/.travis/prepare-prebuilt-v8.sh |
+++ b/.travis/prepare-prebuilt-v8.sh |
@@ -3,8 +3,10 @@ |
set -x |
set -e |
-wget ${URL_PREFIX}include.7z -O third_party/v8-include.7z |
-7z x third_party/v8-include.7z -othird_party/prebuilt-v8 |
+if [[ ! -d "third_party/prebuilt-v8/include" ]]; then |
+ wget ${URL_PREFIX}include.7z -O third_party/v8-include.7z |
+ 7z x third_party/v8-include.7z -othird_party/prebuilt-v8 |
+fi |
PREBUILT_V8_ARCHIVE=${TARGET_OS}-${TARGET_ARCH}-${Configuration}.tar.xz |
@@ -17,4 +19,5 @@ fi |
fi |
wget ${URL_PREFIX}/${PREBUILT_V8_ARCHIVE} -O third_party/v8-prebuilt.tar.xz |
-tar -xJf third_party/v8-prebuilt.tar.xz -C third_party/prebuilt-v8 |
+mkdir -p third_party/prebuilt-v8/${TARGET_OS}-${TARGET_ARCH}-${Configuration} |
+tar -xJf third_party/v8-prebuilt.tar.xz -C third_party/prebuilt-v8/${TARGET_OS}-${TARGET_ARCH}-${Configuration} |