- 
                Notifications
    You must be signed in to change notification settings 
- Fork 2
Home
        Vladimir Zhilin edited this page Nov 18, 2019 
        ·
        5 revisions
      
    Requirements:
- Maven
- Java FX: https://gluonhq.com/products/javafx/
- openjdk 13: https://jdk.java.net/13/
- Early access jpackage https://jdk.java.net/jpackage/
Unpack tools somewhere (~/opt folder for example).
Setup environment variables:
export MVN=~/opt/apache-maven-3.6.2/bin/mvn
export JAVA_HOME=~/opt/jdk-13.0.1/
export JPACKAGE_HOME=~/opt/jdk-14
export JAVAFX_JMODS=~/opt/javafx-jmods-13.0.1Setup git tags:
export DB_ROW_TAG=v0.0.1
export DB_TREE_FX_VERSION=0.0.2
export DB_TREE_FX_TAG=v$DB_TREE_FX_VERSIONBuild jar artifcats
# checkout db-row sources
$ git clone https://github.com/db-tree/db-row.git
$ git checkout $DB_ROW_TAG
# build db-row
cd db-row
$MVN clean install -Dmaven.test.skip=true
cd ..
# checkout db-tree-fx sources
$ git clone https://github.com/db-tree/db-tree-fx.git
$ git checkout $DB_TREE_FX_TAG
# build db-tree-fx
cd db-tree-fx
$MVN clean packagePrepare java runtime image
$JAVA_HOME/bin/jlink \
  --module-path $JAVAFX_JMODS \
  --add-modules javafx.base,javafx.controls,javafx.fxml,javafx.graphics,\ 
    java.sql,java.management,java.security.jgss,jdk.security.auth \
  --output target/jreBuild RPM package
$JPACKAGE_HOME/bin/jpackage \
        --copyright DBTree \
        --runtime-image target/jre \
        --icon src/main/resources/icons/icon.png \
        --vendor "Vladimir Zhilin" \
        --app-version $DB_TREE_FX_VERSION \
        --type rpm \
        --linux-package-name db-tree \
        --linux-app-category Database \
        --linux-shortcut \
        -d installer -i target/shade -n db-tree --main-class me.vzhilin.dbtree.MainWindowApp \
        --main-jar db-tree-view-fx.jar