asticode / go-astilectron-bundler

Bundle your Astilectron app with ease

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to bundle extrafiles?

tpoxa opened this issue · comments

Thanks for the great project you did. I think I need to bundle extra binaries into my project. Like git client. What is the proper way to do it?

@tpoxa you can use this attribute to copy all your extra binaries to the resources dir so that they get bind to your final binary.

Let's imagine you want to bind 2 extra binaries located at /path/to/binary/1 and /path/to/binary/2, you'd have to add the following JSON to the resources_adapters attribute :

[
  {
    "args": ["/path/to/binary/1", "/path/to/binary/2", "."],
    "name": "cp"
  }
]

As this command will be executed in the resources dir about to be bind, your binaries will get bind to your final binary.

Let me know if you're experiencing any problem.