Page 4 of 4

Re: Is luasec a thing?

Posted: Wed Mar 15, 2023 1:53 am
by SelfDotX
Funny enough, this whole adventure started off trying to figure out how to install luarocks... The all-in-one installer (who's install options make my head spin) makes mention of MinGW, I can't tell if it comes bundled with luarocks or if I need to install it separately, which led me to the MinGW Download page, which suggested MSYS2 as a source for MinGW... you have to understand how lost I am at this point lol.

The truth is I *would* like to get to the point where I can compile things from source on windows, but the pieces just haven't come together in my head to fully understand what tools I need and how to use those tools once I have them.

So, at this point I guess I try to install luarocks, and hope all those install settings default to something that works.

Thanks for your patience and help!

Re: Is luasec a thing?

Posted: Wed Mar 15, 2023 3:17 am
by Bigfoot71
SelfDotX wrote: Wed Mar 15, 2023 1:53 am Funny enough, this whole adventure started off trying to figure out how to install luarocks... The all-in-one installer (who's install options make my head spin) makes mention of MinGW, I can't tell if it comes bundled with luarocks or if I need to install it separately, which led me to the MinGW Download page, which suggested MSYS2 as a source for MinGW... you have to understand how lost I am at this point lol.

The truth is I *would* like to get to the point where I can compile things from source on windows, but the pieces just haven't come together in my head to fully understand what tools I need and how to use those tools once I have them.

So, at this point I guess I try to install luarocks, and hope all those install settings default to something that works.

Thanks for your patience and help!
Ah yes I see that, since the subject has already been diverted previously (:3) I will allow myself to give you some information.

MSYS is in fact roughly a Unix-Like environment for Windows which offers among other things a semblance of Bash and a package manager which is pacman (which is also used in Arch Linux).

You can with MSYS get MinGW which is in fact the GNU tools for Windows (GCC, GDB, Make, etc).

But it's true that I had forgotten the fact that you might need a compiler with LuaRocks but luckily as MSYS has a package manager you can also get LuaRocks on Windows with MSYS!

Here is the page to install MSYS and MinGW, everything is directly explained there:
https://www.msys2.org/

And the pages of Lua 5.1 and LuaRocks compiled with MinGW, usable on Windows and which can be obtained on MSYS thanks to Pacman (the sentence is long, it's to be sure that you understood ^^):
https://packages.msys2.org/package/ming ... 6_64-lua51
https://packages.msys2.org/package/ming ... po=mingw64

You can also recover the libraries installed via LuaRocks in their directory and copy them into your Love project if that is the goal, nothing prevents you from doing so ^^

And really if you need help do not hesitate to open another topic, good luck!

Re: Is luasec a thing?

Posted: Wed Mar 15, 2023 1:00 pm
by pgimeno
I thought this was a question of downloading the binaries from the Löve build (you need a GitHub account for that AFAIK) and loading them from the Lua side without needing to compile anything yourself.

Re: Is luasec a thing?

Posted: Wed Mar 15, 2023 1:46 pm
by slime
Yeah... if you want a standalone dll of lua-https which works with love 11.x, you can get one here: https://github.com/love2d/lua-https/act ... nch%3Amain (click on the latest build and scroll down for downloads).
if you want a recent love 12 build you can get one here: https://github.com/love2d/love/actions? ... evelopment

In both cases you don't need to compile anything yourself, as long as you're using one of the platforms builds are created for.

There's some brief usage documentation for lua-https on the wiki: lua-https.

Re: Is luasec a thing?

Posted: Wed Mar 15, 2023 4:11 pm
by SelfDotX
slime wrote: Wed Mar 15, 2023 1:46 pm Yeah... if you want a standalone dll of lua-https which works with love 11.x...
Thankyou. I really appreciate that, especially after spending hours unsuccessfully trying to install luarocks... seriously what a nightmare.

Re: Is luasec a thing?

Posted: Wed Mar 29, 2023 6:56 am
by JayKyburzNew
Hi folks, Apologies if this was covered in the previous conversation, I didn't read it all, there is a lot,

I realize nothing is exposed at the moment, but is there enough code in the new https module to encrypt a file on disk?