Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
61 changes: 0 additions & 61 deletions .classpath

This file was deleted.

105 changes: 105 additions & 0 deletions .github/workflows/jpackage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
name: Package JGAAP

on:
push:
branches: [ "gradle" ]
pull_request:
types:
- closed

jobs:
build-windows-installer:
name: Build Installer on Windows
runs-on: windows-latest
steps:

# SETUP BUILD ENVIRONMENT
- id: checkout-code
name: Checkout code
uses: actions/checkout@v4
- id: setup-jdk
name: Setup JDK
uses: actions/setup-java@v4
with:
java-package: jdk+fx
architecture: x64
distribution: 'zulu'
java-version: '21'

# BUILD FOR DISTRIBUTION
- id: build
name: Build distribution
run: ./gradlew jpackage

# SAVE INSTALLER
- id: upload-installer
name: Upload installer
uses: actions/upload-artifact@v4
with:
path: ./jgaap/build/jpackage/JGAAP-9.0.0.msi
name: windows-installer
retention-days: 1

build-macos-intel-installer:
name: Build Installer on macOS intel
runs-on: macos-13
steps:

# SETUP BUILD ENVIRONMENT
- id: checkout-code
name: Checkout code
uses: actions/checkout@v4
- id: setup-jdk
name: Setup JDK
uses: actions/setup-java@v4
with:
java-package: jdk+fx
architecture: x64
distribution: 'zulu'
java-version: '21'

# BUILD FOR DISTRIBUTION
- id: build
name: Build distribution
run: ./gradlew jpackage

# SAVE INSTALLER
- id: upload-installer
name: Upload installer
uses: actions/upload-artifact@v4
with:
path: ./jgaap/build/jpackage/JGAAP-x86_64-9.0.0.dmg
name: macOS-dmg-Intel
retention-days: 1

build-macos-AS-installer:
name: Build Installer on macOS ARM
runs-on: macos-latest
steps:

# SETUP BUILD ENVIRONMENT
- id: checkout-code
name: Checkout code
uses: actions/checkout@v4
- id: setup-jdk
name: Setup JDK
uses: actions/setup-java@v4
with:
java-package: jdk+fx
architecture: aarch64
distribution: 'zulu'
java-version: '21'

# BUILD FOR DISTRIBUTION
- id: build
name: Build distribution
run: ./gradlew jpackage

# SAVE INSTALLER
- id: upload-installer
name: Upload installer
uses: actions/upload-artifact@v4
with:
path: ./jgaap/build/jpackage/JGAAP-aarch64-9.0.0.dmg
name: macOS-dmg-AS
retention-days: 1
10 changes: 4 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
bin/*
.DS_Store
/bin/
src/unittest_logs
.vscode
.project
JGGAP.jar
/build
/bin
/jgaap/build
/.gradle
17 changes: 11 additions & 6 deletions .project
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,18 @@
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
<filteredResources>
<filter>
<id>1720217961295</id>
<name></name>
<type>30</type>
<matcher>
<id>org.eclipse.core.resources.regexFilterMatcher</id>
<arguments>node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments>
</matcher>
</filter>
</filteredResources>
</projectDescription>
117 changes: 0 additions & 117 deletions .settings/org.eclipse.jdt.core.prefs

This file was deleted.

3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"java.configuration.updateBuildConfiguration": "automatic"
}
12 changes: 12 additions & 0 deletions Documentation/App Information.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Application information

## Known Bugs

- none

---

## Future features

- JGAAP log window.
- Save Results as a file.
23 changes: 23 additions & 0 deletions Documentation/Building_and_Running.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Building

## Jar file

Export a JAR file however you wish. Include the JavaFX .Jar files in the build of the JAR and export the JAR to `JGAAP_JAVAFX/build`.

## MacOS

Build a .jar first. Place in `JGAAP_JAVAFX/build`.

Use the `build_app.sh` to generate a distributable runtime.

Check and Adjust the parameters in the script to suit your enviornment.

## Windows

Build a .jar first. Place in `JGAAP_JAVAFX/build`.

Use the `build_app.bat` to generate a distributable runtime.

Check and Adjust the parameters in the script to suit your enviornment.

a `.msi` should appear on your desktop after successful builds.
Loading