https://github.com/rafael-santiago/snail
A shell script that helps the distribution of static-compiled software.
https://github.com/rafael-santiago/snail
Last synced: 7 months ago
JSON representation
A shell script that helps the distribution of static-compiled software.
- Host: GitHub
- URL: https://github.com/rafael-santiago/snail
- Owner: rafael-santiago
- Created: 2015-04-06T10:08:45.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2019-05-10T14:45:47.000Z (over 6 years ago)
- Last Synced: 2025-02-14T23:47:58.044Z (9 months ago)
- Language: Shell
- Homepage:
- Size: 7.81 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Snail
Sometimes you need to carry your house on your shoulders in order to call any place home. Deploying
a binary package instead of the code to be built. Talking about ``Unix``, be aware: it can be painful
in some cases.
There are a bunch of reasons for not doing it but even with all disadvantages if this snail attitude
is profitable to you... You should use this ``script``.
Firstly is necessary adapt your ``build``:
- Adjusting the ``-rpath`` from your binaries to some specific path that you need to create in target machine;
- Adjusting ``INTERP`` (dynamic loader path) to some specific path that you need to create in target machine;
A good choice is let ``-rpath`` and ``INTERP`` path as the same.
After in your **build environment**, place all binaries which compose your binary package in some specific place ``X``, and
run ``snail.sh`` in this way:
>``./snail.sh --directory X --output MyDependencies.zip``
At this point, ``snail.sh`` will scan the current environment in order to find and collect all dependency that
your package has. Producing at the end a ``zip`` file which gathers these dependencies.
Now, all you need to do is ``unzip`` these dependencies inside the directory that the ``-rpath`` and ``INTERP`` configuration from your binaries expects on **target machine**.
That's all folks, now you may say *"home sweet home"* there.