Git Product home page Git Product logo

setup-install4j's Introduction

setup-install4j

CI

This action provides the following functionality for GitHub Actions runners:

  • Downloading and setting up a requested version of install4j
  • Caching downloaded JRE bundles

After setting up install4j, its bin directory will be added to PATH, so you can run commands like createbundle or install4jc directly.

Note that by default the install4j is installed to a major-version-dependent directy like /opt/install4j10, but this action installs the install4j to a major-version-independent directory so that your build script doesn’t need to worry about which install4j version is installed to what directory. Specifically, the installation directory for each platform is as follows:

  • Linux: /opt/install4j
  • macOS: /Applications/install4j.app
  • Windows: C:\Program Files\install4j

Usage

steps:
  - uses: luangong/setup-install4j@v1
    with:
      version: 10.0.4
      license: ${{ secrets.INSTALL4J_LICENSE }}

Currently, install4j v9 and newer are supported.

Also note that you need to specify the exact version number of install4j. Semantic version numbers such as 10.x will be supported in a future release. For the list of all available versions please refer to this page.

If you’re using Maven and the install4j Maven plugin to build your project, you can specify the installation directory of install4j in pom.xml like this:

<pluginRepositories>
  <pluginRepository>
    <id>ej-technologies</id>
    <url>https://maven.ej-technologies/repository</url>
  </pluginRepository>
</pluginRepositories>

<build>
  <plugins>
    <plugin>
      <groupId>com.install4j</groupId>
      <artifactId>install4j-maven</artifactId>
      <version>10.0.4</version>
      <executions>
        <execution>
          <id>generate-installer(s)</id>
          <phase>package</phase>
          <goals>
            <goal>compile</goal>
          </goals>
          <configuration>
            <installDir>/opt/install4j</installDir>
            <!-- Other configuration options go here -->
          </configuration>
        </execution>
      </executions>
    </plugin>
  </plugins>
</build>

You can also specify the install4j installation directory on the command line:

mvn -Dinstall4j.home=/opt/install4j package

TODOs

  • Handle semantic version specifications
  • Implement caching of downloaded JREs
  • Take advantage of tool cache
  • Cleaning up

setup-install4j's People

Contributors

luangong avatar renovate[bot] avatar torrescd avatar

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.