Skip to content

Commit

Permalink
remove ds store
Browse files Browse the repository at this point in the history
add gitignore

try to fix issue with sonoma

try with jdk 21

update pomxml

fix pom.xml

try to fix jdk

fix jdk

test

test

try with two mac architecture

specify name

fix name

try with javafx 21.04

remove unuseful version of javafs

update github actions before deprecation of nodejs

test
  • Loading branch information
elfunesto committed Aug 27, 2024
1 parent 93163ea commit 15297b5
Show file tree
Hide file tree
Showing 30 changed files with 118 additions and 86 deletions.
Binary file removed .DS_Store
Binary file not shown.
1 change: 1 addition & 0 deletions .github/workflows/check-standard.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
fail-fast: false
matrix:
config:
- {os: macos-12, r: 'release'}
- {os: macos-latest, r: 'release'}
- {os: windows-latest, r: 'release'}
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
Expand Down
17 changes: 9 additions & 8 deletions .github/workflows/maven-build-installer-macos.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven

name: Build macOS Installer
name: Build macOS x64 Installer

on:
workflow_dispatch:
Expand All @@ -14,15 +14,16 @@ on:
jobs:
build:

runs-on: macos-latest
runs-on: macos-12

steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v2
- uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: 17.0.1
distribution: 'temurin'
java-version: 21.0.3
distribution: 'liberica'
java-package: jdk+fx
cache: 'maven'

- name: Import signing certificate into keychain
Expand Down Expand Up @@ -51,5 +52,5 @@ jobs:
repo_token: "${{ secrets.GITHUB_TOKEN}}"
automatic_release_tag: "macOS-latest"
prerelease: true
title: "macOS Development Build"
title: "macOS x64 Development Build"
files: ./RCaNconstructor/target/*.dmg
56 changes: 56 additions & 0 deletions .github/workflows/maven-build-installer-macosaarch64.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven

name: Build macOS aarch64 Installer

on:
workflow_dispatch:
branches: [ master ]
push:
branches: [ master ]
paths:
- RCaNconstructor/**

jobs:
build:

runs-on: macos-latest

steps:
- uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: 21.0.3
distribution: 'liberica'
java-package: jdk+fx
cache: 'maven'

- name: Import signing certificate into keychain
run: |
KEYCHAIN_FILE=default.keychain
KEYCHAIN_PASSWORD=myvoiceismypassport
security create-keychain -p $KEYCHAIN_PASSWORD $KEYCHAIN_FILE
security default-keychain -s $KEYCHAIN_FILE
security unlock-keychain -p $KEYCHAIN_PASSWORD $KEYCHAIN_FILE
security import <(echo $SIGNING_CERTIFICATE_P12_DATA | base64 --decode) \
-f pkcs12 \
-k $KEYCHAIN_FILE \
-P $SIGNING_CERTIFICATE_PASSWORD \
-T /usr/bin/codesign
security set-key-partition-list -S apple-tool:,apple: -s -k $KEYCHAIN_PASSWORD $KEYCHAIN_FILE
env:
SIGNING_CERTIFICATE_P12_DATA: ${{ secrets.SIGNING_CERTIFICATE_P12_DATA }}
SIGNING_CERTIFICATE_PASSWORD: ${{ secrets.SIGNING_CERTIFICATE_PASSWORD }}


- name: Build with Maven
run: mvn -B clean install --file RCaNconstructor/pom.xml
- name: Update Automatic Release
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: "${{ secrets.GITHUB_TOKEN}}"
automatic_release_tag: "macOSaarch64-latest"
prerelease: true
title: "macOS aarch64 Development Build"
files: ./RCaNconstructor/target/*.dmg
11 changes: 6 additions & 5 deletions .github/workflows/maven-build-installer-unix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,13 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v2
- uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: 17.0.1
distribution: 'temurin'
java-version: 21.0.3
distribution: 'liberica'
java-package: jdk+fx
cache: 'maven'
- name: Build with Maven
run: mvn -B clean install --file RCaNconstructor/pom.xml
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/maven-build-installer-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,13 @@ jobs:
pathTarget: ./target/wix
- name: Add Wix to Path
run: echo "$HOME/target/wix" >> $GITHUB_PATH
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v2
- uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: 17.0.1
distribution: 'temurin'
java-version: 21.0.3
distribution: 'liberica'
java-package: jdk+fx
cache: 'maven'
- name: Build with Maven
run: mvn -B clean install --file RCaNconstructor/pom.xml
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/maven-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
- name: Set up JDK 21
uses: actions/setup-java@v2
with:
java-version: 17.0.1
java-version: 21.0.3
distribution: 'temurin'
cache: 'maven'
- name: Build with Maven
Expand Down
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.Rproj.user
.Rhistory
.RData
.Ruserdata
*.DS_Store
RCaNconstructor/target
12 changes: 0 additions & 12 deletions RCaNconstructor/linux-javafx/README.txt

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
12 changes: 0 additions & 12 deletions RCaNconstructor/mac-javafx/README.txt

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
62 changes: 32 additions & 30 deletions RCaNconstructor/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,12 @@
<!-- Set the project to UTF-8, avoiding warnings in the build logs -->
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>

<!-- Used to set both the path to find the JavaFX modules and also the versions for Maven dependencies -->
<javafx.version>16</javafx.version>
<!-- needs to be consistent with github actions -->
<maven.compiler.source>21</maven.compiler.source>
<maven.compiler.target>21</maven.compiler.target>



<!-- Replace this UUID with a custom one for your project. This ID is used by the Windows installer system
to know that an installer is intended to replace/upgrade an earlier version. The easiest thing to do is
Expand All @@ -57,33 +58,18 @@
<artifactId>javafaker</artifactId>
<version>1.0.2</version>
</dependency>
<!-- Modern JavaFX Look and Feel -->
<!-- https://github.com/mkpaz/atlantafx -->
<dependency>
<groupId>io.github.mkpaz</groupId>
<artifactId>atlantafx-base</artifactId>
<version>1.1.0</version>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.4</version>
</dependency>
<!-- Javafx -->
<!-- This downloads the platform specific JavaFX libraries used by the project. -->
<!-- For the final installable, the JavaFX dependencies are provided via modules, but by including these here
they work nicely with with IDEs and other Maven plugins (e.g. the javafx:run). -->
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-controls</artifactId>
<version>${javafx.version}</version>
<classifier>${platform}</classifier>
</dependency>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-graphics</artifactId>
<version>${javafx.version}</version>
<classifier>${platform}</classifier>
</dependency>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-fxml</artifactId>
<version>${javafx.version}</version>
<classifier>${platform}</classifier>
</dependency>
<!-- excel java -->
<dependency>
<groupId>org.apache.poi</groupId>
Expand Down Expand Up @@ -194,8 +180,6 @@
<configuration>
<toolName>jlink</toolName>
<removeDirectories>${project.build.directory}/jvm-image/</removeDirectories>
<modulePath>${project.basedir}/${platform}-javafx/javafx-jmods-${javafx.version}/
</modulePath>
<addModules>${jvm.modules}</addModules>
<output>${project.build.directory}/jvm-image</output>
<args>
Expand Down Expand Up @@ -250,7 +234,12 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<version>3.13.0</version>
<configuration>
<source>21</source> <!-- JDK source version -->
<target>21</target> <!-- JDK target version -->
<release>21</release> <!-- Use this for JDK 9+ to ensure API compatibility -->
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down Expand Up @@ -375,16 +364,29 @@
</build>
</profile>
<profile>
<id>mac-active</id>
<id>macx64-active</id>
<activation>
<os>
<family>mac</family>
<arch>x64</arch>
</os>
</activation>
<properties>
<platform>mac</platform>
</properties>
</profile>
<profile>
<id>macaarch64-active</id>
<activation>
<os>
<family>mac</family>
<arch>aarch64</arch>
</os>
</activation>
<properties>
<platform>macaarch64</platform>
</properties>
</profile>
</profiles>
</project>

12 changes: 0 additions & 12 deletions RCaNconstructor/win-javafx/README.txt

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 15297b5

Please sign in to comment.