Skip to content

Commit d3646b3

Browse files
committed
fixup! fixup! fixup! fixup! Add NPM package, debs, rpms and refactor CI/build process
1 parent e3cbc67 commit d3646b3

File tree

6 files changed

+21
-16
lines changed

6 files changed

+21
-16
lines changed

.travis.yml

+15-7
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ jobs:
99
deploy: null
1010
install: null
1111
- name: Linux Release #if: tag IS present
12-
script: |
13-
./ci/steps/linux-release.sh || exit 1
14-
./ci/steps/publish-npm.sh || exit 1
12+
script: ./ci/steps/linux-release.sh
1513
install: null
1614
- name: Linux Release #if: tag IS present
1715
arch: arm64
@@ -21,9 +19,11 @@ jobs:
2119
install: null
2220
- name: MacOS Release #if: tag IS present
2321
os: osx
22+
# node 13/14 crashes in the build process for some reason.
23+
node_js: 12
2424
script: |
25-
HOMEBREW_NO_AUTO_UPDATE=1 brew install jq || exit 1
26-
travis_wait 30 ./ci/steps/static-release.sh || exit 1
25+
HOMEBREW_NO_INSTALL_CLEANUP=1 HOMEBREW_NO_AUTO_UPDATE=1 brew install jq || exit 1
26+
travis_wait 60 ./ci/steps/static-release.sh || exit 1
2727
install: null
2828

2929
before_deploy:
@@ -43,7 +43,7 @@ deploy:
4343
- release-github/*.deb
4444
- release-github/*.rpm
4545
on: #tags: true
46-
all_branches: true
46+
all_branches: true
4747
- provider: gcs
4848
edge: true
4949
bucket: "codesrv-ci.cdr.sh"
@@ -53,7 +53,15 @@ deploy:
5353
on:
5454
tags: true
5555
# TODO: The gcs provider fails to install on arm64.
56-
condition: $TRAVIS_CPU_ARCH = amd64
56+
condition: $TRAVIS_CPU_ARCH == amd64
57+
- provider: script
58+
edge: true
59+
# We do not use the travis npm deploy integration as it does not allow us to
60+
# deploy a subpath and and v2 which should, just errors out that the src does not exist
61+
script: ./ci/steps/publish-npm.sh
62+
on: #tags: true
63+
all_branches: true
64+
condition: $TRAVIS_CPU_ARCH == amd64 && $TRAVIS_OS_NAME == linux
5765

5866
cache:
5967
timeout: 600

ci/build/build-release.sh

+1-2
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,8 @@ bundle_code_server() {
5252
rsync out dist "$RELEASE_PATH"
5353

5454
# For source maps and images.
55-
mkdir -p "$RELEASE_PATH/src/browser/media"
55+
rsync src/browser/media/ "$RELEASE_PATH/src/browser/media"
5656
mkdir -p "$RELEASE_PATH/src/browser/pages"
57-
rsync src/browser/media "$RELEASE_PATH/src/browser/media"
5857
rsync src/browser/pages/*.html "$RELEASE_PATH/src/browser/pages"
5958

6059
rsync yarn.lock "$RELEASE_PATH"

ci/build/build-static-pkgs.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ main() {
1717
local nfpm_config
1818
nfpm_config=$(envsubst < ./ci/build/nfpm.yaml)
1919

20-
nfpm pkg -f <(echo "$nfpm_config") --target release-github/code-server-"$VERSION.deb"
21-
nfpm pkg -f <(echo "$nfpm_config") --target release-github/code-server-"$VERSION.rpm"
20+
nfpm pkg -f <(echo "$nfpm_config") --target release-github/code-server-"$VERSION-$ARCH.deb"
21+
nfpm pkg -f <(echo "$nfpm_config") --target release-github/code-server-"$VERSION-$ARCH.rpm"
2222
}
2323

2424
main "$@"

ci/dev/vscode.patch

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ index 7a2320d828..5768890636 100644
5050
yarnInstallBuildDependencies(); // node modules for watching, specific to host node version, not electron
5151
diff --git a/coder.js b/coder.js
5252
new file mode 100644
53-
index 0000000000..d0a8f37714
53+
index 0000000000..0170b47241
5454
--- /dev/null
5555
+++ b/coder.js
5656
@@ -0,0 +1,69 @@
@@ -83,7 +83,7 @@ index 0000000000..d0a8f37714
8383
+ "out-build/bootstrap-fork.js",
8484
+ "out-build/bootstrap-amd.js",
8585
+ "out-build/paths.js",
86-
+ 'out-build/vs/**/*.{svg,png,html}',
86+
+ 'out-build/vs/**/*.{svg,png,html,ttf}',
8787
+ "!out-build/vs/code/browser/workbench/*.html",
8888
+ '!out-build/vs/code/electron-browser/**',
8989
+ "out-build/vs/base/common/performance.js",

ci/steps/publish-npm.sh

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#!/usr/bin/env bash
22
set -euo pipefail
33

4-
# We do not use the travis npm deploy integration as it does not allow us to
5-
# deploy a subpath and and v2 which should, just errors out that the src does not exist
64
main() {
75
cd "$(dirname "$0")/../.."
86

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "code-server",
33
"license": "MIT",
4-
"version": "3.3.0-rc.4",
4+
"version": "3.3.0-rc.7",
55
"description": "Run VS Code on a remote server.",
66
"homepage": "https://github.com/cdr/code-server",
77
"bugs": {

0 commit comments

Comments
 (0)