Page 2 of 2

Re: Wrapper / abstraction layer mechanism that download needed files on demand

Posted: Tue Jan 24, 2023 9:01 am
by ivan
If you think it is that easy to add HTTPS to love2d go right ahead. Please send us the binaries for all supported platforms so that somebody can update the love2d.org homepage. And do not forget to test each platform individually and make sure that the same Lua source code works across all platforms. Makes sure to include documentation too.
Also love.filesystem.write is meant for storing data in the save directory. The AppData directory is not a good place to keep your source code or install applications.

Re: Wrapper / abstraction layer mechanism that download needed files on demand

Posted: Tue Jan 24, 2023 9:24 am
by Andlac028
As this is the library, that will be added in love 12.0, it aims to support all platforms that love supports (Linux, Windows, macOS, Android, iOS)

Binaries can be either compiled or if you are signed in the github, you can download prebuild versions for macOS, Linux and Windows for latest commit via github actions. Read lua-https on wiki for more info.

Re: Wrapper / abstraction layer mechanism that download needed files on demand

Posted: Fri Jan 27, 2023 6:55 am
by glitchapp
It is nice that the library will be added on the next version and that it can be used to download from secure addresses. I wonder if I can then request from an https site like this:

Code: Select all

 filename = https.request(filename)
or do I need to add any other api request to accomplish that.
Thanks!