Giter Site home page Giter Site logo

Comments (2)

yancouto avatar yancouto commented on June 4, 2024

Well, this is weird.

I downloaded the code in my mac, and tried the simplest possible program

main.lua:

local steam = require "luasteam"

I tried running (love .) and got exactly the same error (file system relative paths not allowed in hardened programs).
Notice that it first didn't let me use the .so (unsafe to open file) and I had to go in Security and Settings and Allow anyway so I didn't get this error anymore.

Then I tried to isolate the error:
Ran also in my friends older mac, but it also didn't work, so it wasn't the Mac version.

Tried to rebuild the .so with latest sdk but still got the same issue.

Then I downloaded an older version of LOVE, 0.10.2, and it worked.

I was about to come back here saying that it is about LOVE version, but I kept testing with different versions and now even the latest version (11.3) works without error.

So I think it's some security thing inside Mac that eventually allowed me to use the .so and stopped complaining. No idea why it didn't just work after I "Allowed anyway", but still took a while after that. Sorry about the lack of a better answer.

That said, I believe when packaging the game this problem won't show up, because the .so goes inside the .app folder and Mac probably allows everything to run at once.

Also, the cpath hack is for packaging, so you can place the .so next to the .love file.

from luasteam.

globalcitizen avatar globalcitizen commented on June 4, 2024

So I think it's some security thing inside Mac

Yes, that is also my impression.

when packaging the game this problem won't show up

That's great but doesn't help with just using / potentially hacking on a codebase someone has shared, which was my intent.

In any event, the instructions don't work. Perhaps it would be a good idea to update them to prevent other people wasting time on this.

from luasteam.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.