mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-25 04:36:23 +00:00
ci: use sysroots for stripping binaries in rpmbuild (#227397)
This commit is contained in:
@@ -8,7 +8,12 @@ if [ "$SYSROOT_ARCH" == "x64" ]; then
|
||||
fi
|
||||
|
||||
export VSCODE_SYSROOT_DIR=$PWD/.build/sysroots
|
||||
SYSROOT_ARCH="$SYSROOT_ARCH" node -e '(async () => { const { getVSCodeSysroot } = require("./build/linux/debian/install-sysroot.js"); await getVSCodeSysroot(process.env["SYSROOT_ARCH"]); })()'
|
||||
if [ -d "$VSCODE_SYSROOT_DIR" ]; then
|
||||
echo "Using cached sysroot"
|
||||
else
|
||||
echo "Downloading sysroot"
|
||||
SYSROOT_ARCH="$SYSROOT_ARCH" node -e '(async () => { const { getVSCodeSysroot } = require("./build/linux/debian/install-sysroot.js"); await getVSCodeSysroot(process.env["SYSROOT_ARCH"]); })()'
|
||||
fi
|
||||
|
||||
if [ "$npm_config_arch" == "x64" ]; then
|
||||
if [ "$(echo "$@" | grep -c -- "--only-remote")" -eq 0 ]; then
|
||||
|
||||
Reference in New Issue
Block a user