Commit Graph

148 Commits

Author SHA1 Message Date
Akash Satheesan 3a49299f84
dev(ci): complete refactor
Nearly completely replace the original GitHub actions workflow.
Changes:

- Move from `.sh` files in `ci/steps` to steps in the workflow.
- Move from using docker images for environment to manual setup.
- Upgrade nfpm to v2.3.1

BREAKING CHANGE: official arm64 builds no longer support CentOS 7.
If you need to use CentOS 7 on arm64, build `code-server` locally.
For docs, see the yarn/npm section in `docs/install.md`.
2021-04-08 23:42:01 +05:30
Asher cbcad39a4f
Remove ipc.d.ts from final build
Now that the plugin API has its own separate types this is no longer
necessary.
2021-04-01 10:56:25 -05:00
Joe Previte 024a3110be
refactor: reorganize release notes draft format 2021-03-26 16:33:22 -07:00
Joe Previte 299e17e6d9
refactor: update script command to get git branch 2021-03-25 09:46:54 -07:00
Joe Previte a1dca6da29
feat: add dry run option to release-prep.sh 2021-03-24 17:51:07 -07:00
Joe Previte a8858ea9fc
docs(ci): update step 1 of publish release 2021-03-24 17:51:06 -07:00
Joe Previte fa19f8cac8
feat: add release-prep script 2021-03-24 17:51:06 -07:00
Joe Previte d05389880a
chore: update formatting w/new prettier sh plugin 2021-03-15 15:36:31 -07:00
Joe Previte e0203f2a36
feat: add new section to release notes draft 2021-03-05 14:05:33 -07:00
Joe Previte 90807e19e7
fix(ci): replace extension in test standalone 2021-03-02 10:58:38 -07:00
Joe Previte fc6d123da5
feat: update release template w/doc and dev 2021-02-12 16:22:32 -07:00
Anmol Sethi 41ad0c0c4c
release-github-draft.sh: Remove incorrect assets reference
I think at some point this script created the release and attached
assets but that's not the case anymore.

For some reason this would error with undefined variable reference for
joe but bash doesn't complain for me or Asher.

Not sure what the difference is.
2021-02-05 15:11:16 -07:00
Joe Previte 4756257207
refactor: rename doc to docs 2021-02-03 09:46:35 -07:00
Asher 39faceeee4
Merge pull request #2539 from cdr/callback-html 2021-01-11 16:19:08 -06:00
Asher cb11e1f750
Fix typings rsync 2021-01-08 10:37:47 -06:00
Sean Smith 9e4206aa41
Add typings to release bundle (#2544) 2021-01-06 14:25:58 -06:00
Asher aa05993cf0
Bundle callback.html into final build 2021-01-05 15:26:11 -06:00
Asher c7baf5d04a
Merge pull request #2482 from cdr/asar
Symlink node_modules.asar to node_modules in lib/vscode
2020-12-18 10:54:36 -08:00
Asher 3aa4ae4539
Clarify why we need node_modules.asar 2020-12-18 10:59:15 -06:00
Anmol Sethi de112b15ed
clean.sh: Do not reset lib/vscode
Now that we've moved to the submodule, there is no need to reset changes
in there :)

cc @jsjoeio
2020-12-18 11:52:08 -05:00
Anmol Sethi 65ce3996ac
build: Do not let agent install fail the build
We don't have an agent for FreeBSD right now.
2020-12-18 11:52:08 -05:00
Asher 121a520447
Symlink node_modules.asar to node_modules in lib/vscode
Closes #2197.
2020-12-17 15:48:19 -06:00
Anmol Sethi f74f1721e6
doc: Add note on upgrading into release notes and install.md
Closes #1652
Closes #2221
2020-11-24 12:42:26 -05:00
Anmol Sethi 2e2d03371f
ci: Fix typo in release template 2020-11-19 18:03:12 -05:00
Anmol Sethi 40e1f066ff
ci: Improve release template (#2311) 2020-11-16 16:56:53 -05:00
Anmol Sethi f64599b94d
ci: Update standalone build test
ms-toolsai.jupyter is now a dependency of ms-python and is installed
along with it.
2020-11-16 14:40:06 -05:00
Asher 6fbbb1047f
fmt 2020-11-02 17:17:09 -06:00
Asher e07a591745
Catch cloud agent download failure
- See #2251 and #2229.
2020-11-02 16:48:25 -06:00
Asher c63dc3a1ea
Add more logging around connections 2020-10-30 16:16:44 -05:00
Asher ec564091f1
Fix agent copy during release
If there isn't a lib dir yet it'll copy as lib instead of getting put
inside the directory.
2020-10-12 17:29:39 -05:00
Anmol Sethi a4a03c1492
Fix CI 2020-10-12 03:08:24 -04:00
Asher d7e3112625
Update standalone test 2020-10-09 18:01:43 -05:00
Anmol Sethi 64a6a460c8
Adjust npm package postinstall to install extension dependencies (#2180)
Closes #1961
2020-10-09 15:00:49 -04:00
Anmol Sethi 9002f118c3
Remove the extra releases for autoupdating purposes 2020-10-09 07:50:58 -04:00
Anmol Sethi febf4ead96
Fix the clean script
🤦
2020-10-07 17:40:19 -04:00
Anmol Sethi 85b0804be5
Remove cliArgs from main
No purpose when all the args are in the args parameter.

We only need configArgs for bindAddrFromAllSources.
2020-10-07 17:40:19 -04:00
Anmol Sethi 6e8248cf0c
Fix zip release creation 2020-10-07 15:58:30 -04:00
Anmol Sethi 9035bfa871
Add coder cloud agent binary to build process 2020-10-07 15:58:30 -04:00
Anmol Sethi b22f3cb72f
Add $HOME to ./ci/dev/image/run.sh 2020-10-07 15:58:30 -04:00
Anmol Sethi b3811a67e0
Add $KEEP_MODULES argument to build-release.sh (#2167) 2020-10-07 13:24:31 -04:00
Asher 9d87c5328c
Add robots.txt (#2080)
Closes #1886.
2020-09-14 17:34:48 -05:00
Anmol Sethi de41646fc4
Fix path of systemd system service in nfpm 2020-08-31 05:22:52 -04:00
Anmol Sethi 4b7c2ea322
Use static version of node for all builds, not just darwin
This way, building a standalone release locally and putting it in the
release contianer for testing is less likely to break.
2020-08-27 14:20:56 -04:00
Anmol Sethi 255fa37e1d
Bundle systemd system unit
systemd's user units are buggy on certain versions
and do not linger by default.

Closes #1771
Closes #1673
Closes #1882
Closes #1861
2020-08-27 13:20:21 -04:00
Anmol Sethi 5c6cd11836
Fix clean.sh
tsc doesn't check if the output exists when incremental is true.

i.e if I delete the out directory, but keep the tsbuildinfo and
try to rebuild, nothing happens cause it thinks everything is
up to date I guess...

With this change, yarn clean will now remove the tsbuildinfo correctly
so things work as expected.
2020-08-26 10:33:59 -04:00
Asher 8590f80c31
Remove unnecessary tsc settings 2020-08-13 17:11:33 -05:00
Asher d6d24966be
Move vscode JS to a separate file
Mostly to match everything else.
2020-08-13 17:10:59 -05:00
Asher 751a5ea3ad
Move login JS to a separate file
Mostly so the base URL resolution code can be shared.
2020-08-13 17:10:54 -05:00
Asher 934c8d4eb6
Clarify exported types and ipc.d.ts 2020-08-05 13:00:37 -05:00
Asher 361e7103ea
Enable loading external plugins 2020-07-31 17:42:48 -05:00
Asher 1c8eede1aa
Add missing types to release
code-server exports its types but they weren't complete since it imports
ipc.d.ts and that wasn't being included.
2020-07-31 14:08:00 -05:00
Asher 486652abaf
Update standalone test to account for timestamp
The updated logger outputs timestamps now.
2020-07-31 14:06:49 -05:00
Asher 5370f7876d
Merge pull request #1927 from cdr/dead-code
Remove dead code
2020-07-31 12:25:56 -05:00
Asher 50ed29e0f0
Move rimraf to prod deps in extensions
The postinstall uses rimraf so it needs to exist in the final build.
2020-07-31 10:49:40 -05:00
Asher 2819fd51e2
Remove unused endpoints
- dashboard
- app api
2020-07-27 12:00:42 -05:00
Anmol Sethi 638ab7c557
Fix CI 2020-07-22 18:31:24 -04:00
Anmol Sethi bd2e55dcf3
Make README more clear 2020-06-04 16:47:27 -04:00
Anmol Sethi c00f931500
Remove zip library dependency 2020-06-03 18:24:59 -04:00
Anmol Sethi fd5c5960c2
Fixes for release 2020-06-03 16:22:59 -04:00
Anmol Sethi ab081cd522
Add warning when using outdated code-server script 2020-06-03 15:45:17 -04:00
Anmol Sethi e2789608b2
Fix autoupdates for Darwin 2020-06-03 15:45:17 -04:00
Anmol Sethi bdb670e852
Rename container and release-container to images and release-image 2020-06-03 15:45:16 -04:00
Anmol Sethi 11d7932968
Stop bundling libraries in release
- Instead we now use CentOS 7 for the static build to guarantee
  that we only depend on libc v2.17

- For macOS we now pull in a static node binary and bundle that instead.
2020-06-03 15:45:16 -04:00
Anmol Sethi 02a77b528b
Support recursive symlinks in release script
See
https://github.com/cdr/code-server/issues/1746#issuecomment-637830396
2020-06-03 15:45:16 -04:00
Anmol Sethi 7ab47b3d83
Trim LD_LIBRARY_PATH on startup 2020-06-03 15:45:16 -04:00
Anmol Sethi c7cad402b4
Cleanup FAQ
Prominently explain how code-server is different from VS Code

Closes #1718
2020-05-27 21:39:19 -04:00
Anmol Sethi 90caca3336
Minor fixes 2020-05-27 20:38:29 -04:00
Anmol Sethi 69ad52907e
v3.4.0 2020-05-27 19:21:15 -04:00
Anmol Sethi f71d8875d0
Rename binary release to standalone 2020-05-27 16:39:17 -04:00
Anmol Sethi fa45fd0e31
Rename static releases to binary releases
More clear as discussed in PR.
2020-05-27 15:57:18 -04:00
Anmol Sethi 33bca2d141
Adjust nfpm config for bindir removal
See https://github.com/goreleaser/nfpm/pull/142#issuecomment-634427333
2020-05-27 15:48:22 -04:00
Anmol Sethi 7ef82d8422
Improved install.sh flags 2020-05-27 15:48:22 -04:00
Anmol Sethi 7dcfde7329
Documentation fixes 2020-05-27 15:48:22 -04:00
Anmol Sethi e55d3e49e1
Bundle in libicu on macOS
Closes #1710

Also reported in #1640
2020-05-27 15:48:22 -04:00
Anmol Sethi ac9b57c07e
Properly bundle in libstdc++ 2020-05-27 15:48:22 -04:00
Anmol Sethi e0172d0953
Minor fixes for install.sh and bundle in libstdc++
Closes #1706
2020-05-27 15:48:22 -04:00
Anmol Sethi 3ddf242c65
Make automatic updates on v3.2.0 work again
Only for linux amd64 users which is the majority of our userbase.
2020-05-20 10:37:31 -04:00
Sandro Jäckel 5ec8a6efbd
Fix typos 2020-05-19 12:19:09 +02:00
Anmol Sethi 6f1309795e
Rebuild all node_modules on npm install
Stuff like ripgrep needs to be refetched so we cannot bundle
node_modules at all.
2020-05-18 21:37:16 -04:00
Anmol Sethi b9f43c3542
Fix grammar in FAQ 2020-05-17 20:29:00 -04:00
Anmol Sethi ec1c74c146
Add release-images to clean.sh 2020-05-17 19:52:59 -04:00
Anmol Sethi 3a1e3bc596
Final revisions for the docs before release
🚀
2020-05-17 17:55:28 -04:00
Anmol Sethi aee2599904
Push docker manifest in CI for multi arch image 2020-05-16 16:59:26 -04:00
Anmol Sethi d56381666a
Use .tar.gz for macOS releases
No good reason to use .zip, was just confusion on my part.
2020-05-16 10:01:26 -04:00
Anmol Sethi 89c5a4dfea
Set --frozen-lockfile with yarn when necessary 2020-05-14 22:33:12 -04:00
Anmol Sethi d4b3d21dce
Require minimum node 12 2020-05-14 22:33:12 -04:00
Anmol Sethi 40778b15ca
Add code-server version into VS Code about
Closes #1506
2020-05-14 22:33:12 -04:00
Anmol Sethi 10b06cae10
Minor typo fixes 2020-05-14 20:08:08 -04:00
Anmol Sethi f4a78587b0
Make npm-postinstall.sh more robust 2020-05-13 22:44:43 -04:00
Anmol Sethi b3ae4d67d3
Hide bundled node_modules to prevent them from being ignored 2020-05-13 04:17:34 -04:00
Anmol Sethi 1739b21600
Bundle VS Code node_modules to avoid yarn dependency
Many random bizarre issues otherwise.

Also includes misc improvements to docs and scripts.
2020-05-13 02:35:11 -04:00
Anmol Sethi 4aae5eaeca
CI fixes
- Splits up test into fmt, lint and test
- Fixes bug in build-packages.sh
- Minor README.md fixes
2020-05-12 21:26:36 -04:00
Anmol Sethi 41d625abb6
Revamp README.md with new installation options 2020-05-12 21:26:36 -04:00
Anmol Sethi 28edf4af2e
Add systemd user service to .deb and .rpm 2020-05-12 19:59:54 -04:00
Anmol Sethi 169f8c67fe
Automate draft release 2020-05-11 20:59:56 -04:00
Anmol Sethi 6282cd7e7b
Simplify packaging and improve scripts
Much better test now as well.
2020-05-08 01:04:24 -04:00
Anmol Sethi bc453b5f0d
Switch to a single job to build the npm package
The architecture specific jobs pull it in and then build releases.

Much faster!
2020-05-08 00:09:24 -04:00
Anmol Sethi be032cf735
Add NPM package, debs, rpms and refactor CI/build process
Closes many issues that I'll prune after adding more docs
for users.
2020-05-06 20:25:52 -04:00