makeself-maven-plugin for Makeself (Make self-extractable archives on Unix)
Shell Java
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.mvn/wrapper
src
travis
.gitattributes
.gitignore
.travis.yml
LICENSE
LICENSE_HEADER
README.md
format.xml
mvnw
mvnw.cmd
pom.xml

README.md

Makeself Maven Plugin

Build Status Maven central License

hazendaz

Makeself Maven Plugin provides maven integration for megastep makeself script.

Makeself is a self-extracting archiving tool for Unix systems, in 100% shell script.

With help of Cygwin, git for windows or other tools supplying bash for windows, this tool is fully functional with windows.

To use in windows, configure Bash or Add git for windows '/usr/bin' to environment 'Path' variable to execute this plugin.

See makeself

Example Usage

            <plugin>
                <groupId>com.github.hazendaz.maven</groupId>
                <artifactId>makeself-maven-plugin</artifactId>
                <version>1.0.0-SNAPSHOT</version>
                <configuration>
                    <archiveDir>distro</archiveDir>
                    <fileName>installDistro.sh</fileName>
                    <label>Distro Self Extraction</label>
                    <startupScript>./runDistroScript.sh</startupScript>
                </configuration>
                <executions>
                    <execution>
                        <id>makeself</id>
                        <goals>
                            <goal>makeself</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

*** Special note: *** Use version 1.0.0.beta3 or better for *nix support. Earlier versions only worked in windows.

Executable Permissions on Shell Scripts

When makeself is updated, performed the following commands after the update commit. This will ensure executable only from this location. While it might not provide any benefit, it doesn't hurt.

    git update-index --chmod=+x makeself.sh
    git update-index --chmod=+x makeself-header.sh
    git commit -m "Force makeself to be executable"

To check the files are of right permissions

    stat -c "%a %n" *

*** Note: *** It seems no matter the change makself-header.sh wants to stay 644. Regardless, with all other protections this is handled on *nix now and line endings are addressed.