Is luasec a thing?

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
User avatar
SelfDotX
Prole
Posts: 25
Joined: Sun Oct 02, 2022 5:06 pm

Re: Is luasec a thing?

Post 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!
User avatar
Bigfoot71
Party member
Posts: 287
Joined: Fri Mar 11, 2022 11:07 am

Re: Is luasec a thing?

Post 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!
My avatar code for the curious :D V1, V2, V3.
User avatar
pgimeno
Party member
Posts: 3656
Joined: Sun Oct 18, 2015 2:58 pm

Re: Is luasec a thing?

Post 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.
User avatar
slime
Solid Snayke
Posts: 3162
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: Is luasec a thing?

Post 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.
User avatar
SelfDotX
Prole
Posts: 25
Joined: Sun Oct 02, 2022 5:06 pm

Re: Is luasec a thing?

Post 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.
JayKyburzNew
Prole
Posts: 3
Joined: Fri Oct 21, 2022 1:17 am

Re: Is luasec a thing?

Post 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?
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 2 guests