mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 11:08:51 +01:00
42 lines
871 B
Bash
Executable File
42 lines
871 B
Bash
Executable File
#!/bin/sh
|
|
|
|
. ./build/tfs/common/node.sh
|
|
. ./scripts/env.sh
|
|
. ./build/tfs/common/common.sh
|
|
|
|
export VSCODE_MIXIN_PASSWORD="$1"
|
|
export AZURE_STORAGE_ACCESS_KEY="$2"
|
|
export AZURE_STORAGE_ACCESS_KEY_2="$3"
|
|
export MOONCAKE_STORAGE_ACCESS_KEY="$4"
|
|
export AZURE_DOCUMENTDB_MASTERKEY="$5"
|
|
VSO_PAT="$6"
|
|
|
|
echo "machine monacotools.visualstudio.com password $VSO_PAT" > ~/.netrc
|
|
|
|
step "Install dependencies" \
|
|
npm install
|
|
|
|
step "Hygiene" \
|
|
npm run gulp -- hygiene
|
|
|
|
step "Mix in repository from vscode-distro" \
|
|
npm run gulp -- mixin
|
|
|
|
step "Install distro dependencies" \
|
|
node build/tfs/common/installDistro.js
|
|
|
|
step "Build minified & upload source maps" \
|
|
npm run gulp -- vscode-darwin-min
|
|
|
|
REPO=`pwd`
|
|
ZIP=$REPO/../VSCode-darwin.zip
|
|
BUILD=$REPO/../VSCode-darwin
|
|
|
|
function createZip {
|
|
rm -rf $ZIP
|
|
cd $BUILD && zip -r -X -y $ZIP *
|
|
}
|
|
|
|
step "Create unsigned archive" \
|
|
createZip
|