mirror of
https://github.com/VSCodium/vscodium.git
synced 2026-04-23 11:30:14 +10:00
feat: generate source archives
This commit is contained in:
@@ -54,6 +54,14 @@ contains() {
|
|||||||
if [ "${VSCODIUM_ASSETS}" != "null" ]; then
|
if [ "${VSCODIUM_ASSETS}" != "null" ]; then
|
||||||
# macos
|
# macos
|
||||||
if [[ "${OS_NAME}" == "osx" ]]; then
|
if [[ "${OS_NAME}" == "osx" ]]; then
|
||||||
|
if [[ "${VSCODE_QUALITY}" == "insider" && "${VSCODE_ARCH}" == "arm64" ]]; then
|
||||||
|
if [[ -z $( contains "VSCodium-${RELEASE_VERSION}-src.tar.gz" ) || -z $( contains "VSCodium-${RELEASE_VERSION}-src.zip" ) ]]; then
|
||||||
|
echo "Building on MacOS because we have no SRC"
|
||||||
|
export SHOULD_BUILD="yes"
|
||||||
|
export SHOULD_BUILD_SRC="yes"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ -z $( contains "VSCodium-darwin-${VSCODE_ARCH}-${RELEASE_VERSION}.zip" ) ]]; then
|
if [[ -z $( contains "VSCodium-darwin-${VSCODE_ARCH}-${RELEASE_VERSION}.zip" ) ]]; then
|
||||||
echo "Building on MacOS because we have no ZIP"
|
echo "Building on MacOS because we have no ZIP"
|
||||||
export SHOULD_BUILD="yes"
|
export SHOULD_BUILD="yes"
|
||||||
@@ -348,3 +356,4 @@ echo "SHOULD_BUILD_REH=${SHOULD_BUILD_REH}" >> "${GITHUB_ENV}"
|
|||||||
echo "SHOULD_BUILD_RPM=${SHOULD_BUILD_RPM}" >> "${GITHUB_ENV}"
|
echo "SHOULD_BUILD_RPM=${SHOULD_BUILD_RPM}" >> "${GITHUB_ENV}"
|
||||||
echo "SHOULD_BUILD_TAR=${SHOULD_BUILD_TAR}" >> "${GITHUB_ENV}"
|
echo "SHOULD_BUILD_TAR=${SHOULD_BUILD_TAR}" >> "${GITHUB_ENV}"
|
||||||
echo "SHOULD_BUILD_ZIP=${SHOULD_BUILD_ZIP}" >> "${GITHUB_ENV}"
|
echo "SHOULD_BUILD_ZIP=${SHOULD_BUILD_ZIP}" >> "${GITHUB_ENV}"
|
||||||
|
echo "SHOULD_BUILD_SRC=${SHOULD_BUILD_SRC}" >> "${GITHUB_ENV}"
|
||||||
|
|||||||
@@ -61,6 +61,11 @@ if [[ "${OS_NAME}" == "osx" ]]; then
|
|||||||
popd
|
popd
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ "${SHOULD_BUILD_SRC}" == "yes" ]]; then
|
||||||
|
git archive --format tar.gz --output="./artifacts/VSCodium-${RELEASE_VERSION}-src.tar.gz" HEAD
|
||||||
|
git archive --format zip --output="./artifacts/VSCodium-${RELEASE_VERSION}-src.zip" HEAD
|
||||||
|
fi
|
||||||
|
|
||||||
VSCODE_PLATFORM="darwin"
|
VSCODE_PLATFORM="darwin"
|
||||||
elif [[ "${OS_NAME}" == "windows" ]]; then
|
elif [[ "${OS_NAME}" == "windows" ]]; then
|
||||||
cd vscode || { echo "'vscode' dir not found"; exit 1; }
|
cd vscode || { echo "'vscode' dir not found"; exit 1; }
|
||||||
|
|||||||
Reference in New Issue
Block a user