GithubHelp home page GithubHelp logo

hl-mac-bundler's Introduction

HashLink OSX bundler

Since the HashLink VM is not very portable in OSX systems. The HL executalbe is looking for the libraries in the instalation paths even if the library is in the same folder. For example, HL will look for libSDL2-2.0.0.dylib in the /usr/local/opt/sdl2/lib/ folder, where it is installed.

What does this script?

  • Read the libraries needed by the hdll files that are close to the executable
  • Copy to that folder all the dylib files needed.
  • Update the hdll file to look for the libraries in the current folder.

Limitations

This version only works if all the files are in the same folder, the executable and the hdll. It's working fine for me but I understand someone may want to get the libraries in another folder.

Usage

I've used it in this way.

  • Compile `main.hl``
  • Copy (manually) the needed hdll files in the same folder.
  • Run this command haxe --run Main /path/to/main/file.
  • (Optional) Package the application
    • Create a shell script to execute the application (e.g. ./hl main.hl)
    • Package the folder with Platypus

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.