Skip to content

Commit a4a03c1

Browse files
committed
Fix CI
1 parent d7ba9ae commit a4a03c1

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

ci/build/build-release.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ 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"
2928

3029
# code-server exports types which can be imported and used by plugins. Those
3130
# types import ipc.d.ts but it isn't included in the final vscode build so
@@ -60,6 +59,7 @@ EOF
6059

6160
if [ "$KEEP_MODULES" = 1 ]; then
6261
rsync node_modules/ "$RELEASE_PATH/node_modules"
62+
rsync ./lib/coder-cloud-agent "$RELEASE_PATH/lib"
6363
fi
6464
}
6565

ci/build/npm-postinstall.sh

+4
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ main() {
2424
;;
2525
esac
2626

27+
OS="$(uname | tr '[:upper:]' '[:lower:]')"
28+
curl -fsSL "https://storage.googleapis.com/coder-cloud-releases/agent/latest/$OS/cloud-agent" -o ./lib/coder-cloud-agent
29+
chmod +x ./lib/coder-cloud-agent
30+
2731
if ! vscode_yarn; then
2832
echo "You may not have the required dependencies to build the native modules."
2933
echo "Please see https://github.com/cdr/code-server/blob/master/doc/npm.md"

ci/build/release-github-assets.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ main() {
1111
source ./ci/lib.sh
1212

1313
download_artifact release-packages ./release-packages
14-
local assets=(./release-packages/code-server*"$VERSION"*{.tar.gz,.zip,.deb,.rpm})
14+
local assets=(./release-packages/code-server*"$VERSION"*{.tar.gz,.deb,.rpm})
1515
for i in "${!assets[@]}"; do
1616
assets[$i]="--attach=${assets[$i]}"
1717
done

0 commit comments

Comments
 (0)