File tree Expand file tree Collapse file tree 4 files changed +10
-1
lines changed Expand file tree Collapse file tree 4 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,12 @@ main() {
1818 chmod +x out/node/entry.js
1919 fi
2020
21+ if ! [ -f ./lib/coder-cloud-agent ]; then
22+ OS=" $( uname | tr ' [:upper:]' ' [:lower:]' ) "
23+ curl -fsSL " https://storage.googleapis.com/coder-cloud-releases/agent/latest/$OS /cloud-agent" -o ./lib/coder-cloud-agent
24+ chmod +x ./lib/coder-cloud-agent
25+ fi
26+
2127 parcel build \
2228 --public-url " ." \
2329 --out-dir dist \
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ main() {
2525 rsync README.md " $RELEASE_PATH "
2626 rsync LICENSE.txt " $RELEASE_PATH "
2727 rsync ./lib/vscode/ThirdPartyNotices.txt " $RELEASE_PATH "
28+ rsync ./lib/coder-cloud-agent " $RELEASE_PATH /lib"
2829
2930 # code-server exports types which can be imported and used by plugins. Those
3031 # types import ipc.d.ts but it isn't included in the final vscode build so
Original file line number Diff line number Diff line change @@ -15,7 +15,8 @@ main() {
1515 dist \
1616 .cache \
1717 node-* \
18- .home
18+ .home \
19+ lib/coder-cloud-agent
1920
2021 pushd lib/vscode
2122 git clean -xffd
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ main() {
1212 -v " $PWD :/src" \
1313 -e HOME=" /src/.home" \
1414 -e USER=" coder" \
15+ -e GITHUB_TOKEN \
1516 -w /src \
1617 -p 127.0.0.1:8080:8080 \
1718 -u " $( id -u) :$( id -g) " \
You can’t perform that action at this time.
0 commit comments