-
-
Notifications
You must be signed in to change notification settings - Fork 444
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
feature request: One liner installation in Windows #1607
Comments
Assign issue to self (@jackm9367) |
Looks like this is more than just re-writing install.js |
thank you @jackm9367 - I didn't test developing on Windows, and it looks like the issue is straightforward. we can give it a try to see the effort. this issue can keep open, no worries. |
Would you like to try it in git bash env? |
Will give it a go now |
Was able to download and extract the file using the one-liner in
At this stage it's just an issue of rebuilding the argon2 package then we should be good. Will keep investigating best way forward. |
Thank you, Jack. I'll also take a look at it this weekend. |
I agree! But I also think that |
Hi Jack, how are you doing lately? It seems it's been awhile since we talked about this last time. And due to the inactivity of more than 3 weeks, we are going to take it back from you and see if there's anyone else who is also interested in. And btw, we are now promoting a "Logto bounty hunter" event, in which you can complete bounties and claim rewards (real money 💰💰💰). And I think this ticket can be put on the bounty board as well. More details about this event can be found from here. Let me know if you want to claim it back and I can assign it back to you. Cheers! |
Hi 👋 I would like to be assigned to this issue if possible please 😄 |
Hey @charIeszhao and @Olyno
|
No problem. @jackm9367 Sorry to hear that, but I hope you are OK now. |
quick update: thanks to @Olyno we're going to launch a cross-platform CLI soon. but I cloud not figure out the permission issue that happened in GitHub Actions Windows, you can see this workflow runs down from #4640 - fought with Windows for the whole day but no luck. I decided to move on as I'm a noob to Windows stuff meanwhile it is in CI which is hard to debug. I'll test on a real Windows laptop after launch tough. It'll be great if any of you guys would like to test the new CLI and help with the CI issue afterwards. cheers. |
guys, i'm wondering with the new CLI can Logto properly download and work in Windows? |
As long as the code is a JS code or a |
It actually makes sense. The For example, |
Yes, but the same command |
From what I see, it is mostly a bug on Mac and Linux. The package managers should not find the package in question according to their description:
With Yarn and Npm, they specify in their docs that the package name must start with the prefix "create-". What I would suggest on my side is to rename the package to be conventional. This could fix the problem. |
Actually we do have a "@logto/create" package otherwise the command won't work in macOS and Linux. @charIeszhao are you using an old version of npm? |
The "@" is for scoped package which follows another convention "@org/create". Actually I registered "create-logto" but didn't published anything yet (just a package.json). Since I'd like to publish it automatically instead of manually creating another package with the same content of "@logto/create". |
Nevermind. As Gao said, it is possible to use the organization as a prefix for the "npm init" command. However, this would make the package exclusive to npm, and other package managers would be excluded (Yarn, Pnpm, Deno and potentially Bun). Even if I understand that creating a package with another name is annoying, this seems to me to be the best thing to do (and therefore deprecated "@logto/create"). You can take the example of Redwood to see how they manage their packages. |
thanks @Olyno, I'll take a look |
for the traditional how does it sound? |
The main problem is that the CLI does not work on Window. Creating a package under the organization ( I understand your concern about creating a package that doesn't contain the organization in the name, but I still think that this is the best way to fix the problem on Window, and make the package compatible under any manager package. |
@Olyno thanks for the feedback and sorry for the delayed response. since i don't have a Windows dev environment, @charIeszhao would you like to have a try on this? |
What problem did you meet?
The one-liner script outlined in README.md does not function on Windows due to the script utilising curl, printf, and other Linux/Bash commands. When run, the script immediately errors and halts.
Describe what you'd like Logto to have
A separate install script for Windows, including a separate Windows-oriented one liner that downloads and runs a wnidows-installer.js file in node, allowing for a one-line windows install.
The text was updated successfully, but these errors were encountered: