mirror of
https://github.com/coder/code-server.git
synced 2024-12-05 07:13:06 +08:00
eae5d8c807
These conflicts will be resolved in the following commits. We do it this way so that PR review is possible.
29 lines
713 B
Bash
Executable File
29 lines
713 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
# Publish DEB
|
|
case $VSCODE_ARCH in
|
|
x64) ASSET_ID="darwin" ;;
|
|
arm64) ASSET_ID="darwin-arm64" ;;
|
|
universal) ASSET_ID="darwin-universal" ;;
|
|
esac
|
|
|
|
# publish the build
|
|
node build/azure-pipelines/common/createAsset.js \
|
|
"$ASSET_ID" \
|
|
archive \
|
|
"VSCode-$ASSET_ID.zip" \
|
|
../VSCode-darwin-$VSCODE_ARCH.zip
|
|
|
|
if [ "$VSCODE_ARCH" == "x64" ]; then
|
|
# package Remote Extension Host
|
|
pushd .. && mv vscode-reh-darwin vscode-server-darwin && zip -Xry vscode-server-darwin.zip vscode-server-darwin && popd
|
|
|
|
# publish Remote Extension Host
|
|
node build/azure-pipelines/common/createAsset.js \
|
|
server-darwin \
|
|
archive-unsigned \
|
|
"vscode-server-darwin.zip" \
|
|
../vscode-server-darwin.zip
|
|
fi
|