mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-21 00:59:03 +01:00
* Bump electron@4.0.0-beta.9 * electron 4 - temporarily warn about exploration change * update to Electron 4.0.0 stable * remove electron 4 notification * bump to electron@4.0.1 * electron 4: adopt format change of "version" file * build - set to use exploration image * Revert "build - set to use exploration image" This reverts commit1bb280fc5e. * electron@4.0.2 * fix electron.d.ts * update distro * bump electron@4.0.4 * debt - adopt new process.getProcessMemoryInfo() * update electron@4.0.5 * electron@4.0.6 * electron 4.0.x - remove Linux 32bit build * electron@4.0.7 * electron - update to 4.1.2 * bump electron@4.1.4 * update build (remove Linux32) * electron@4.1.5 * electron 4 - remove linux 32bit warning * Remove more 32-bit Linux build stuff Fixes #66271 * electron@4.2.0 * electron@4.2.1 * electron@4.2.2 * electron@4.2.3 * Revert "electron@4.2.3" This reverts commitae375ef764. * Revert "Revert "electron@4.2.3"" This reverts commit513581ebc5.
63 lines
2.5 KiB
Bash
Executable File
63 lines
2.5 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
REPO="$(pwd)"
|
|
ROOT="$REPO/.."
|
|
|
|
# Publish tarball
|
|
PLATFORM_LINUX="linux-$VSCODE_ARCH"
|
|
BUILDNAME="VSCode-$PLATFORM_LINUX"
|
|
BUILD="$ROOT/$BUILDNAME"
|
|
BUILD_VERSION="$(date +%s)"
|
|
[ -z "$VSCODE_QUALITY" ] && TARBALL_FILENAME="code-$BUILD_VERSION.tar.gz" || TARBALL_FILENAME="code-$VSCODE_QUALITY-$BUILD_VERSION.tar.gz"
|
|
TARBALL_PATH="$ROOT/$TARBALL_FILENAME"
|
|
PACKAGEJSON="$BUILD/resources/app/package.json"
|
|
VERSION=$(node -p "require(\"$PACKAGEJSON\").version")
|
|
|
|
rm -rf $ROOT/code-*.tar.*
|
|
(cd $ROOT && tar -czf $TARBALL_PATH $BUILDNAME)
|
|
|
|
node build/azure-pipelines/common/publish.js "$VSCODE_QUALITY" "$PLATFORM_LINUX" archive-unsigned "$TARBALL_FILENAME" "$VERSION" true "$TARBALL_PATH"
|
|
|
|
# Publish Remote Extension Host
|
|
if [[ "$VSCODE_ARCH" != "ia32" ]]; then
|
|
LEGACY_SERVER_BUILD_NAME="vscode-reh-$PLATFORM_LINUX"
|
|
SERVER_BUILD_NAME="vscode-server-$PLATFORM_LINUX"
|
|
SERVER_TARBALL_FILENAME="vscode-server-$PLATFORM_LINUX.tar.gz"
|
|
SERVER_TARBALL_PATH="$ROOT/$SERVER_TARBALL_FILENAME"
|
|
|
|
rm -rf $ROOT/vscode-server-*.tar.*
|
|
(cd $ROOT && mv $LEGACY_SERVER_BUILD_NAME $SERVER_BUILD_NAME && tar -czf $SERVER_TARBALL_PATH $SERVER_BUILD_NAME)
|
|
|
|
node build/azure-pipelines/common/publish.js "$VSCODE_QUALITY" "server-$PLATFORM_LINUX" archive-unsigned "$SERVER_TARBALL_FILENAME" "$VERSION" true "$SERVER_TARBALL_PATH"
|
|
fi
|
|
|
|
# Publish hockeyapp symbols
|
|
node build/azure-pipelines/common/symbols.js "$VSCODE_MIXIN_PASSWORD" "$VSCODE_HOCKEYAPP_TOKEN" "$VSCODE_ARCH" "$VSCODE_HOCKEYAPP_ID_LINUX64"
|
|
|
|
# Publish DEB
|
|
yarn gulp "vscode-linux-$VSCODE_ARCH-build-deb"
|
|
PLATFORM_DEB="linux-deb-$VSCODE_ARCH"
|
|
DEB_ARCH="amd64"
|
|
DEB_FILENAME="$(ls $REPO/.build/linux/deb/$DEB_ARCH/deb/)"
|
|
DEB_PATH="$REPO/.build/linux/deb/$DEB_ARCH/deb/$DEB_FILENAME"
|
|
|
|
node build/azure-pipelines/common/publish.js "$VSCODE_QUALITY" "$PLATFORM_DEB" package "$DEB_FILENAME" "$VERSION" true "$DEB_PATH"
|
|
|
|
# Publish RPM
|
|
yarn gulp "vscode-linux-$VSCODE_ARCH-build-rpm"
|
|
PLATFORM_RPM="linux-rpm-$VSCODE_ARCH"
|
|
RPM_ARCH="x86_64"
|
|
RPM_FILENAME="$(ls $REPO/.build/linux/rpm/$RPM_ARCH/ | grep .rpm)"
|
|
RPM_PATH="$REPO/.build/linux/rpm/$RPM_ARCH/$RPM_FILENAME"
|
|
|
|
node build/azure-pipelines/common/publish.js "$VSCODE_QUALITY" "$PLATFORM_RPM" package "$RPM_FILENAME" "$VERSION" true "$RPM_PATH"
|
|
|
|
# Publish Snap
|
|
yarn gulp "vscode-linux-$VSCODE_ARCH-prepare-snap"
|
|
|
|
# Pack snap tarball artifact, in order to preserve file perms
|
|
mkdir -p $REPO/.build/linux/snap-tarball
|
|
SNAP_TARBALL_PATH="$REPO/.build/linux/snap-tarball/snap-$VSCODE_ARCH.tar.gz"
|
|
rm -rf $SNAP_TARBALL_PATH
|
|
(cd .build/linux && tar -czf $SNAP_TARBALL_PATH snap)
|