1. Anders Ruud
  2. love
  3. Issues

Issues

Issue #284 invalid

Make .love files executable via traditional mechanisms ./foobar.love

markhobley
created an issue

It would be useful, if the resultant .love files could be treated as a normal executable file that worked via the ./foobar.love mechanism. At the moment, attempting to run the file gives an error:

../foobar.love: ./test.love: cannot execute binary file

I created a test application from my package source directory as follows:

zip -r ../test.love cd .. chmod u+x text.love

I now run the file:

../test.love ../test.love: ./test.love: cannot execute binary file

Comments (3)

  1. markhobley reporter

    Maybe we need a tool for this, or possibly a different format. We definitely need these files to be executable on Unix.

    I am not very happy about this being tagged as invalid. It is still a bug. Maybe we need a better format for the files.

  2. Bart van Strien

    They are no executable files. They simply are not. I marked this invalid because they aren't meant to be, so a bug it is certainly not.

    As for a tool, you can just make a script that does this:

    (echo '#!/usr/bin/env love'; cat input.love) > output.love && chmod +x output.love
    
  3. Log in to comment