Skip to content

Commit

Permalink
Cleanup packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
dhadka committed Dec 24, 2023
1 parent 873b663 commit b144d28
Show file tree
Hide file tree
Showing 12 changed files with 15 additions and 65 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ jobs:
cp target/j3-*.jar staging/J3/lib
cp -r data/ staging/J3/data
cp -r animations staging/J3/animations
cp package/README.md staging/J3
cp package/win/j3.bat staging/J3
cp package/* staging/J3
- name: Upload
uses: actions/upload-artifact@v4
Expand Down
8 changes: 4 additions & 4 deletions package/README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# J3 - 3D Interactive Visualization in Java

## Usage

### Prerequisites
## Prerequisites

1. Download and install Java 17+
2. Download and install JavaFX SDK - https://gluonhq.com/products/javafx/
3. Set the environment variables `JAVA_HOME` and `JAVAFX_HOME`

### Launch App
## Usage

Either use the provided `j3` command to run the application or launch from the terminals with:

```bash

Expand Down
10 changes: 0 additions & 10 deletions package/debian/DEBIAN/control

This file was deleted.

3 changes: 0 additions & 3 deletions package/debian/usr/local/bin/J3

This file was deleted.

Binary file removed package/debian/usr/local/src/J3/appicon.png
Binary file not shown.
3 changes: 0 additions & 3 deletions package/debian/usr/local/src/J3/bin/J3.sh

This file was deleted.

8 changes: 0 additions & 8 deletions package/debian/usr/share/applications/J3.desktop

This file was deleted.

8 changes: 8 additions & 0 deletions package/j3
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

if [ -z "${JAVAFX_HOME}" ]; then
echo "JAVAFX_HOME environment variable must be set!"
exit -1
fi

java --module-path ${JAVAFX_HOME}\lib --add-modules javafx.controls --class-path "lib/*" j3.GUI
2 changes: 2 additions & 0 deletions package/win/j3.bat → package/j3.bat
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@echo off

if not defined JAVAFX_HOME echo JAVAFX_HOME environment variable must be set!

java --module-path %JAVAFX_HOME%\lib --add-modules javafx.controls --class-path "lib/*" j3.GUI
Binary file removed package/mac/appicon.icns
Binary file not shown.
35 changes: 0 additions & 35 deletions package/mac/build.xml

This file was deleted.

Binary file removed package/mac/lib/appbundler-1.0.jar
Binary file not shown.

0 comments on commit b144d28

Please sign in to comment.