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

Windows installation issues #440

Closed
int-2147483647 opened this issue Jan 19, 2022 · 6 comments
Closed

Windows installation issues #440

int-2147483647 opened this issue Jan 19, 2022 · 6 comments

Comments

@int-2147483647
Copy link
Contributor

Hi,
First of all, great project. Excited to see where it goes.

My issues with the Windows installation:

  1. Running curl -LO https://release.ariga.io/atlas/atlas-windows-amd64-v0.3.0.exe on Windows 10 and higher does not work because curl is an alias to PowerShell's Invoke-WebRequest cmdlet and it doesn't have the -L flag.
  2. Downloading https://release.ariga.io/atlas/atlas-windows-amd64-v0.3.0.exe directly causes multiple Defender warnings. Attached screenshot of the last warning.

Capture

Thanks,

@rotemtam
Copy link
Member

Hi @int-2147483647,

Thanks so much for trying Atlas and reaching out!

We are actively working on fixing code signing so the onboarding process doesn't have this kind of friction.
I don't want to make promises but I hope that the next patch release (v0.3.1) that should be out tomorrow will have this.

@yonidavidson
Copy link
Contributor

@int-2147483647 Hi, do you have any recommendations for the distribution of the CLI in windows? I looked at https://scoop.sh/, and some CLI's are distributed as MSI.

Do you have some experience with creating such releases? I would like to hear your thoughts.

@int-2147483647
Copy link
Contributor Author

Hi, @yonidavidson
TBH I don't have personal experience with distributing a CLI but for comparison, I would follow Azures steps on how to install Terraform (https://tinyurl.com/57mtbxej)

  1. Download Terraform - A zip file containing the executable. It is important to call the executable atlas.
  2. Extract the executable to a specific folder that will be added to PATH.
  3. Update the PATH environment variable to include this folder (https://stackoverflow.com/questions/1618280/where-can-i-set-path-to-make-exe-on-windows)
  4. Open a new terminal window and run atlas (this is why its important that the executable is called atlas)

If a "Publisher Registration" is still necessary to avoid the Defender warnings, then I suppose these steps are required: https://docs.microsoft.com/en-us/azure/active-directory/develop/mark-app-as-publisher-verified

@yonidavidson
Copy link
Contributor

Thanks, @int-2147483647 for your great insights.
I will also handle the publisher registration process soon.

@int-2147483647
Copy link
Contributor Author

@yonidavidson I just realized that you can also use Powershell.
Invoke-WebRequest -Uri https://release.ariga.io/atlas/atlas-windows-amd64-v0.3.0.exe -OutFile atlas.exe

But it is important that the OutFile will be in directory that is in %path%

@masseelch
Copy link
Member

Hey, closing this as you found a solution.

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

4 participants