File tree Expand file tree Collapse file tree 4 files changed +22
-18
lines changed
packages/databricks-vscode Expand file tree Collapse file tree 4 files changed +22
-18
lines changed Original file line number Diff line number Diff line change 22// for the documentation about the tasks.json format
33{
44 "version" : " 2.0.0" ,
5- "options" : {
6- "env" : {
7- "BRICKS_ARCH" : " darwin_arm64"
8- }
9- },
105 "tasks" : [
116 {
127 "label" : " Fetch bricks cli" ,
Original file line number Diff line number Diff line change 272272 "scripts" : {
273273 "vscode:prepublish" : " rm -rf out && yarn run package:compile && yarn run package:copy-webview-toolkit" ,
274274 "package" : " vsce package" ,
275- "package:cli:fetch" : " bash ./scripts/fetch-latest- bricks-cli.sh $ BRICKS_ARCH" ,
276- "package:cli:release " : " bash ./scripts/fetch-latest- bricks-cli.sh $BRICKS_ARCH " ,
275+ "package:cli:fetch" : " bash ./scripts/fetch-bricks-cli.sh v0.0.1 ${ BRICKS_ARCH:-} " ,
276+ "package:cli:link " : " rm -f ./bin/ bricks && ln -s ../../../../bricks/bricks bin " ,
277277 "package:compile" : " yarn run esbuild:base --minify" ,
278278 "package:copy-webview-toolkit" : " cp ./node_modules/@vscode/webview-ui-toolkit/dist/toolkit.js ./out/toolkit.js" ,
279279 "esbuild:base" : " esbuild ./src/extension.ts --bundle --outfile=out/extension.js --external:vscode --format=cjs --platform=node" ,
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ set -ex
3+
4+ BRICKS_VERSION=${1:- }
5+
6+ BRICKS_ARCH=$2
7+ if [ -z " $BRICKS_ARCH " ]; then
8+ BRICKS_ARCH=" $( uname -s | awk ' {print tolower($0)}' ) _$( uname -m) "
9+ fi
10+
11+ pushd /tmp
12+ rm -rf bricks_*
13+ gh release download $BRICKS_VERSION -R databricks/bricks -p " *$BRICKS_ARCH .tar.gz"
14+ tar -xvf bricks_* _$BRICKS_ARCH .tar.gz
15+
16+ popd
17+ mkdir -p bin
18+ cd ./bin
19+ rm -rf bricks
20+ mv /tmp/bricks ./
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments