refactor: move artifacts building and signing into prepare_artifacts.sh [skip ci] (#1221)

This commit is contained in:
Baptiste Augrain
2022-08-29 17:53:29 +02:00
committed by GitHub
parent 430d4e3888
commit 697bd5ef83
10 changed files with 85 additions and 83 deletions

View File

@@ -4,10 +4,13 @@
# to run with Bash: "C:\Program Files\Git\bin\bash.exe" ./build/build.sh
###
export CI_BUILD=no
export SHOULD_BUILD=yes
export SKIP_PACKAGES="yes"
export VSCODE_LATEST="no"
export VSCODE_QUALITY="stable"
while getopts ":il" opt; do
while getopts ":ilp" opt; do
case "$opt" in
i)
export VSCODE_QUALITY="insider"
@@ -15,6 +18,9 @@ while getopts ":il" opt; do
l)
export VSCODE_LATEST="yes"
;;
p)
export SKIP_PACKAGES="no"
;;
esac
done
@@ -39,16 +45,20 @@ else
fi
echo "OS_NAME: ${OS_NAME}"
echo "SKIP_PACKAGES: ${SKIP_PACKAGES}"
echo "VSCODE_ARCH: ${VSCODE_ARCH}"
echo "VSCODE_LATEST: ${VSCODE_LATEST}"
echo "VSCODE_QUALITY: ${VSCODE_QUALITY}"
rm -rf vscode* VSCode*
if [[ "${OS_NAME}" == "windows" ]]; then
rm -rf build/windows/msi/releasedir
fi
. get_repo.sh
. build.sh
SHOULD_BUILD=yes CI_BUILD=no . build.sh
if [[ "${SKIP_PACKAGES}" == "no" ]]; then
if [[ "${OS_NAME}" == "windows" ]]; then
rm -rf build/windows/msi/releasedir
fi
. prepare_artifacts.sh
fi