Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish Windows releases (cloud-agent) #17

Open
bpmct opened this issue Aug 22, 2021 · 2 comments
Open

Publish Windows releases (cloud-agent) #17

bpmct opened this issue Aug 22, 2021 · 2 comments

Comments

@bpmct
Copy link
Member

bpmct commented Aug 22, 2021

Related to coder/code-server#1397.

This will make it possible to run --link with Windows out of the box.

A current workaround (for --link on Windows) is to build it manually:

  1. Install go

  2. Install code-server via yarn/npm (if you haven't already)

  3. Clone this repo:

    git clone https://github.com/cdr/cloud-agent.git
    cd cloud-agent
  4. Build cloud-agent and move to the global module.

    Replace v0.2.3 with the latest cloud-agent release tag:

    # if you installed via yarn
    go build -v -o $(yarn global dir)/node_modules/code-server/lib/coder-cloud-agent.exe -ldflags "-X go.coder.com/cloud-agent/internal/version.Version=v0.2.3"
    # if you installed via npm
    go build -v -o $(npm config get prefix)/node_modules/code-server/lib/coder-cloud-agent.exe -ldflags "-X go.coder.com/cloud-agent/internal/version.Version=v0.2.3"
@joemoulton
Copy link

How about FreeBSD?

root@TaipanBSD:~/Git/cloud-agent # code-server --link
[2022-06-25T22:08:59.219Z] info  code-server 4.4.0 b088ec7adf9e17bc75215f79e21498eb40da03ed
[2022-06-25T22:08:59.221Z] info  Using user-data-dir ~/.local/share/code-server
[2022-06-25T22:08:59.228Z] info  Using config file ~/.config/code-server/config.yaml
[2022-06-25T22:08:59.229Z] info  HTTP server listening on http://127.0.0.1:12098/ (randomized by --link)
[2022-06-25T22:08:59.229Z] info    - Authentication is disabled (disabled by --link)
[2022-06-25T22:08:59.229Z] info    - Not serving HTTPS (disabled by --link)
[2022-06-25T22:08:59.756Z] info  Detected an acceptable latency of 66ms
[2022-06-25T22:08:59.867Z] info  Failed to login: unable to login: Agent version () is incompatible. Version v0.2.1 or later is required. Try updating to the latest release at https://github.com/cdr/code-server/releases

@jsjoeio
Copy link
Contributor

jsjoeio commented Jun 27, 2022

This project is no longer being actively worked unfortunately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants