mirror of
https://github.com/gitpod-io/gitpod.git
synced 2025-12-08 17:36:30 +00:00
* [gitpod-cli] change `gp rebuild` to `gp validate`
* fix `await-port` and `forward-port` command backward compatible
* Change the reference to `gp rebuild`
* update `gitpod-web` extension ref 3b076b9103
31 lines
1.1 KiB
Bash
Executable File
31 lines
1.1 KiB
Bash
Executable File
#!/bin/bash
|
|
# Copyright (c) 2023 Gitpod GmbH. All rights reserved.
|
|
# Licensed under the GNU Affero General Public License (AGPL).
|
|
# See License.AGPL.txt in the project root for license information.
|
|
|
|
set -Eeuo pipefail
|
|
|
|
ROOT_DIR="$(realpath "$(dirname "$0")/../..")"
|
|
bash "$ROOT_DIR/components/gitpod-cli/rebuild.sh"
|
|
bash "$ROOT_DIR/components/ide/code/codehelper/rebuild.sh"
|
|
|
|
DIR="$(dirname "$(realpath "$0")")"
|
|
COMPONENT="$(basename "$DIR")"
|
|
cd "$DIR"
|
|
|
|
# build
|
|
go build -gcflags=all="-N -l" .
|
|
echo "$COMPONENT built"
|
|
|
|
sudo rm -rf "/.supervisor/$COMPONENT" && true
|
|
sudo mv ./"$COMPONENT" /.supervisor
|
|
echo "$COMPONENT in /.supervisor replaced"
|
|
|
|
yarn --cwd "$DIR/frontend" run build
|
|
|
|
sudo rm -rf /.supervisor/frontend && true
|
|
sudo ln -s "$DIR/frontend/dist" /.supervisor/frontend
|
|
echo "$DIR/frontend/dist linked in /.supervisor/frontend"
|
|
|
|
gp validate --workspace-folder="$ROOT_DIR/dev/ide/example/workspace" --gitpod-env "GITPOD_ANALYTICS_SEGMENT_KEY=YErmvd89wPsrCuGcVnF2XAl846W9WIGl" --gitpod-env "GP_OPEN_EDITOR=" --gitpod-env "GP_PREVIEW_BROWSER=" --gitpod-env "GP_EXTERNAL_BROWSER=" "$@"
|