summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.ci/scripts/common/post-upload.sh3
-rw-r--r--.ci/scripts/windows/upload.ps110
2 files changed, 5 insertions, 8 deletions
diff --git a/.ci/scripts/common/post-upload.sh b/.ci/scripts/common/post-upload.sh
index 7f910b2b3..576f1ffaa 100644
--- a/.ci/scripts/common/post-upload.sh
+++ b/.ci/scripts/common/post-upload.sh
@@ -8,7 +8,8 @@ cp LICENSE.txt "$DIR_NAME"
8cp README.md "$DIR_NAME" 8cp README.md "$DIR_NAME"
9 9
10if [[ -z "${NO_SOURCE_PACK}" ]]; then 10if [[ -z "${NO_SOURCE_PACK}" ]]; then
11 tar -cJvf "${REV_NAME}-source.tar.xz" src externals CMakeLists.txt README.md LICENSE.txt 11 git clone --depth 1 file://$(readlink -e .) ${REV_NAME}-source
12 tar -cJvf "${REV_NAME}-source.tar.xz" ${REV_NAME}-source
12 cp -v "${REV_NAME}-source.tar.xz" "$DIR_NAME" 13 cp -v "${REV_NAME}-source.tar.xz" "$DIR_NAME"
13fi 14fi
14 15
diff --git a/.ci/scripts/windows/upload.ps1 b/.ci/scripts/windows/upload.ps1
index f2368be6f..d463281de 100644
--- a/.ci/scripts/windows/upload.ps1
+++ b/.ci/scripts/windows/upload.ps1
@@ -42,14 +42,10 @@ mkdir $RELEASE_DIST
42mkdir $MSVC_SOURCE 42mkdir $MSVC_SOURCE
43mkdir "artifacts" 43mkdir "artifacts"
44 44
45$CURRENT_DIR = Convert-Path .
46
45# Build a tar.xz for the source of the release 47# Build a tar.xz for the source of the release
46Copy-Item .\LICENSE.txt -Destination $MSVC_SOURCE 48git clone --depth 1 file://$CURRENT_DIR $MSVC_SOURCE
47Copy-Item .\README.md -Destination $MSVC_SOURCE
48Copy-Item .\CMakeLists.txt -Destination $MSVC_SOURCE
49Copy-Item .\src -Recurse -Destination $MSVC_SOURCE
50Copy-Item .\externals -Recurse -Destination $MSVC_SOURCE
51Copy-Item .\dist -Recurse -Destination $MSVC_SOURCE
52Copy-Item .\CMakeModules -Recurse -Destination $MSVC_SOURCE
537z a -r -ttar $MSVC_SOURCE_TAR $MSVC_SOURCE 497z a -r -ttar $MSVC_SOURCE_TAR $MSVC_SOURCE
547z a -r -txz $MSVC_SOURCE_TARXZ $MSVC_SOURCE_TAR 507z a -r -txz $MSVC_SOURCE_TARXZ $MSVC_SOURCE_TAR
55 51