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

fix: windows CLI is installed in wrong location #420

Merged

Conversation

benjaminSchilling33
Copy link
Contributor

@benjaminSchilling33 benjaminSchilling33 commented Apr 4, 2022

Before this commit, when installing the CLI using this script, it would move the downloaded CLI executable
as a file to %LOCALAPPDATA%/Appwrite while it is intended to move it to %LOCALAPPDATA%/Appwrite/appwrite.exe.

This commit fixes this problem by creating the directory explicitly and moving the file into it.

closes: appwrite/appwrite#3007

Before this commit, when installing the CLI using this script, it would move the downloaded CLI executable
as a file to `%LOCALAPPDATA%/Appwrite` while it is inteded to move it to `%LOCALAPPDATA%/Appwrite/appwrite.exe`.
This commit fixes this problem by creating the directory explicitly and moving the file into it.
@benjaminSchilling33
Copy link
Contributor Author

@christyjacob4

@christyjacob4
Copy link
Member

@TorstenDittmann Can you give this a review ?

Copy link
Member

@christyjacob4 christyjacob4 left a comment

Choose a reason for hiding this comment

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

Template looks good to me.
I'm not well versed into windows shell, so Im going to let @TorstenDittmann help me there

Awesome work @benjaminSchilling33

@benjaminSchilling33
Copy link
Contributor Author

Thanks @christyjacob4

In the meanwhile this seems to bei redundant to #397

@TorstenDittmann
Copy link
Contributor

#397 actually also fixes different bugs, that are not covered in this PR.

For example running the installation twice will actually have an impact. So I think we might wanna merge #397 - which I think also comes wit the same fix from here.

@TorstenDittmann TorstenDittmann merged commit 2a17c89 into appwrite:master May 9, 2022
@TorstenDittmann
Copy link
Contributor

Thanks for the PR 🥳

It will be part of the next release 🙂

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.

🐛 Bug Report: Windows CLI install powershell script installs in wrong location
3 participants