Skip to content

[Installation] - Improve Installation for Windows Users - #762

Merged
samalba merged 2 commits into
dagger:mainfrom
alefesta:powershell-installer
Jul 1, 2021
Merged

samalba merged 2 commits into
dagger:mainfrom
alefesta:powershell-installer

Conversation

@alefesta

Copy link
Copy Markdown
Contributor
  • What this feature does:
    Windows users should be able to use the dagger binary getting a similar experience to the one proposed for Linux in the docs.
  • What has been changed: the feature implements a PowerShell script similar to install.sh logic. More specifically I've updated install.md and added install.ps1

I'm not sure if the URL releases.dagger.io is currently pointing at the content of GH repo or something else so the documented steps may need a review.


NOTE
As a better alternative, a single script that works for both Windows and Linux may be implemented similar to https://github.com/kf5i/k3ai/blob/master/install-core.ps1. Through this approach, users would have the same experience on both Windows and Posix systems.

- **What this feature does**:
Windows user should be able to use the dagger binary getting a similar experience to the one proposed for Linux in the docs.
- **What has been changed**: the feature implement a powershell script similar to `install.sh` logic. More specifically I've updated `install.md` and added `install.ps1`

I'm not sure if the  URL `releases.dagger.io` is currently pointing at the content of GH repo or something else so the documented steps may need a review.

Signed-off-by: alefesta <[email protected]>
@netlify

netlify Bot commented Jun 30, 2021 •

Copy link
Copy Markdown

@alefesta
alefesta force-pushed the powershell-installer branch from 82e0c76 to 4004220 Compare June 30, 2021 14:36
@aluzzardi

Copy link
Copy Markdown
Contributor

Thank you for the contribution, @alefesta!

Rather than requesting a GitHub Personal Access Token, you can fetch the latest version here:
http://releases.dagger.io/dagger/latest_version

Both the install script and the HomeBrew formula use that URL to grab the latest version.

@aluzzardi
aluzzardi requested a review from samalba June 30, 2021 15:05
@aluzzardi

Copy link
Copy Markdown
Contributor

releases.dagger.io will have to be updated manually once we merge this

@alefesta

Copy link
Copy Markdown
Contributor Author

Thank you for the contribution, @alefesta!

Rather than requesting a GitHub Personal Access Token, you can fetch the latest version here:
http://releases.dagger.io/dagger/latest_version

Both the install script and the HomeBrew formula use that URL to grab the latest version.

Cool! I'll update the script accordingly

Updated Installer script and Docs accordingly to comments.
Now it does not request anymore the personal token to be produced.

Signed-off-by: alefesta <[email protected]>
@alefesta
alefesta force-pushed the powershell-installer branch from a589d18 to 189fb71 Compare June 30, 2021 15:54

@aluzzardi aluzzardi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

We'll need to publish install.ps1 to releases.dagger.io right after merging, before we deploy the new docs website.

Awaiting @samalba's review

@samalba

samalba commented Jul 1, 2021

Copy link
Copy Markdown
Contributor

LGTM, I'll update releases.dagger.io

@samalba
samalba merged commit 66afb32 into dagger:main Jul 1, 2021
@samalba
samalba deleted the powershell-installer branch July 1, 2021 09:25
@samalba

samalba commented Jul 1, 2021

Copy link
Copy Markdown
Contributor

the script is now available at: https://releases.dagger.io/dagger/install.ps1

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

Successfully merging this pull request may close these issues.

4 participants