Skip to content

Commit

Permalink
Update configuration for Apache NetBeans 22.
Browse files Browse the repository at this point in the history
  • Loading branch information
neilcsmith-net committed May 30, 2024
1 parent fa293b8 commit 568987f
Show file tree
Hide file tree
Showing 21 changed files with 144 additions and 174 deletions.
29 changes: 18 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ For more information see [https://www.codelerity.com/netbeans/](https://www.code
This repository contains configuration files for building an Inno Setup Windows
installer, Linux Deb packages (x64 / all), and Linux AppImages (x64 / Arm).

Before starting, download and unzip [nbpackage-1.0-beta4-bin](https://archive.apache.org/dist/netbeans/netbeans-nbpackage/1.0-beta4/nbpackage-1.0-beta4-bin.zip)
Before starting, download and unzip [nbpackage-1.0-beta5-bin](https://archive.apache.org/dist/netbeans/netbeans-nbpackage/1.0-beta5/nbpackage-1.0-beta5-bin.zip)
into an `nbpackage` directory. Executing `./nbpackage/bin/nbpackage --help` should show
the help text for the packager.

Expand All @@ -36,23 +36,30 @@ the Azul provided hash. To use a different JDK, update the configuration file.
Build the installer by running -

```
./nbpackage/bin/nbpackage --input netbeans-21-bin.zip --config windows-x64-iss/netbeans-windows-x64.properties --output dist/
./nbpackage/bin/nbpackage --input netbeans-22-bin.zip --config windows-x64-iss/netbeans-windows-x64.properties --output dist/
```

### Build MacOS installer

You will require `swift`, `codesign` and `pkgbuild` installed on the system.

Download the right Azul Zulu JDK into the `macos-x64` directory, checking against the
Azul provided hash. To use a different JDK, update the configuration file.
Download the right Azul Zulu JDK into the `macos-aarch64` or `macos-x64` directory,
checking against the Azul provided hash. To use a different JDK, update the configuration
file.

Add your Apple developer IDs for code signing and installer signing to the
configuration file.
Add your Apple developer IDs for code signing and installer signing to the configuration
file.

Build the installer by running -
Build the installer by running (x64) -

```
./nbpackage/bin/nbpackage --input netbeans-22-bin.zip --config macos-x64/netbeans-macos-x64.properties --output dist/
```

or running (aarch64) -

```
./nbpackage/bin/nbpackage --input netbeans-21-bin.zip --config macos-x64/netbeans-macos-x64.properties --output dist/
./nbpackage/bin/nbpackage --input netbeans-22-bin.zip --config macos-aarch64/netbeans-macos-aarch64.properties --output dist/
```

### Build DEB packages
Expand All @@ -65,7 +72,7 @@ provided hash file.
Build the package by running eg. -

```
./nbpackage/bin/nbpackage --input netbeans-21-bin.zip --config linux-x64/netbeans-x64-deb.properties --output dist/
./nbpackage/bin/nbpackage --input netbeans-22-bin.zip --config linux-x64/netbeans-x64-deb.properties --output dist/
```

### Build RPM packages
Expand All @@ -77,7 +84,7 @@ provided hash file.
Build the package by running eg. -

```
./nbpackage/bin/nbpackage --input netbeans-21-bin.zip --config linux-x64/netbeans-x64-rpm.properties --output dist/
./nbpackage/bin/nbpackage --input netbeans-22-bin.zip --config linux-x64/netbeans-x64-rpm.properties --output dist/
```


Expand All @@ -92,7 +99,7 @@ an AppImage - make sure to mark it executable before continuing.
Build the AppImage by running eg. -

```
./nbpackage/bin/nbpackage --input netbeans-21-bin.zip --config linux-x64/netbeans-x64-appimage.properties --output dist/
./nbpackage/bin/nbpackage --input netbeans-22-bin.zip --config linux-x64/netbeans-x64-appimage.properties --output dist/
```

## Legal
Expand Down
4 changes: 2 additions & 2 deletions linux-aarch64/netbeans-aarch64-deb.properties
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Application name (required).
package.name=Apache NetBeans
# Application version (defaults 1.0).
package.version=21
package.version=22
# Packaging type.
package.type=linux-deb
# Path to Java runtime to include in the package (default none).
package.runtime=${CONFIG}/zulu21.32.17-ca-jdk21.0.2-linux_aarch64.tar.gz
package.runtime=${CONFIG}/zulu22.30.13-ca-jdk22.0.1-linux_aarch64.tar.gz
# A single-line description of the package. Not all packagers will display this.
package.description=Package of ${package.name} ${package.version}.
# Application publisher. Not all packagers will display this.
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
d84cd3d381c7f7ec6da7b3cf65d2abfcdc283a2bc9873a293867b26c96b82e49 zulu22.30.13-ca-jdk22.0.1-linux_aarch64.tar.gz
4 changes: 2 additions & 2 deletions linux-x64/netbeans-x64-appimage.properties
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Application name (required).
package.name=Apache NetBeans
# Application version (defaults 1.0).
package.version=21
package.version=22
# Packaging type.
package.type=linux-appimage
# Path to Java runtime to include in the package (default none).
package.runtime=${CONFIG}/zulu21.32.17-ca-jdk21.0.2-linux_x64.tar.gz
package.runtime=${CONFIG}/zulu22.30.13-ca-jdk22.0.1-linux_x64.tar.gz
# A single-line description of the package. Not all packagers will display this.
package.description=Package of ${package.name} ${package.version}.
# Application publisher. Not all packagers will display this.
Expand Down
4 changes: 2 additions & 2 deletions linux-x64/netbeans-x64-deb.properties
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Application name (required).
package.name=Apache NetBeans
# Application version (defaults 1.0).
package.version=21
package.version=22
# Packaging type.
package.type=linux-deb
# Path to Java runtime to include in the package (default none).
package.runtime=${CONFIG}/zulu21.32.17-ca-jdk21.0.2-linux_x64.tar.gz
package.runtime=${CONFIG}/zulu22.30.13-ca-jdk22.0.1-linux_x64.tar.gz
# A single-line description of the package. Not all packagers will display this.
package.description=Package of ${package.name} ${package.version}.
# Application publisher. Not all packagers will display this.
Expand Down
4 changes: 2 additions & 2 deletions linux-x64/netbeans-x64-rpm.properties
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Application name (required).
package.name=Apache NetBeans
# Application version (defaults 1.0).
package.version=21
package.version=22
# Packaging type.
package.type=linux-rpm
# Path to Java runtime to include in the package (default none).
package.runtime=${CONFIG}/zulu21.32.17-ca-jdk21.0.2-linux_x64.tar.gz
package.runtime=${CONFIG}/zulu22.30.13-ca-jdk22.0.1-linux_x64.tar.gz
# A single-line description of the package. Not all packagers will display this.
package.description=Package of ${package.name} ${package.version}.
# Application publisher. Not all packagers will display this.
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
993d91062c631d10508475f7b112724fa8136704ec1412d5cc1f93ddda1eddb0 zulu22.30.13-ca-jdk22.0.1-linux_x64.tar.gz
6 changes: 3 additions & 3 deletions macos-aarch64/netbeans-macos-aarch64.properties
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Application name (required).
package.name=Apache NetBeans
# Application version (defaults 1.0).
package.version=21
package.version=22
# Packaging type.
package.type=macos-pkg
# Path to Java runtime to include in the package (default none).
package.runtime=${CONFIG}/zulu21.32.17-ca-jdk21.0.2-macosx_aarch64.tar.gz
package.runtime=${CONFIG}/zulu22.30.13-ca-jdk22.0.1-macosx_aarch64.tar.gz
# A single-line description of the package. Not all packagers will display this.
package.description=Package of ${package.name} ${package.version}.
# Application publisher. Not all packagers will display this.
Expand All @@ -25,7 +25,7 @@ package.macos.entitlements-template=
# Search pattern for native binaries that need to be code signed.
package.macos.codesign-files={*.dylib,*.jnilib,**/nativeexecution/MacOSX-*/*,Contents/Home/bin/*,Contents/Home/lib/jspawnhelper}
# Search pattern for JARs that bundle native binaries that need to be code signed.
package.macos.codesign-jars={flatlaf*.jar,jna-5*.jar,junixsocket-native-common-*.jar,launcher-common-*.jar,jansi-*.jar,nbi-engine.jar}
package.macos.codesign-jars={flatlaf-*.jar,jna-5*.jar,junixsocket-native-common-*.jar,launcher-common-*.jar,jansi-*.jar,nbi-engine.jar,truffle-runtime-*.jar}
# Code signing identity as passed to Codesign.
package.macos.codesign-id=
# Installer signing identity as passed to Pkgbuild.
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
d1b8282c032b55384dfda337dd97d424f69cc0dd0dbb196d870e7029acdad133 zulu22.30.13-ca-jdk22.0.1-macosx_aarch64.tar.gz
6 changes: 3 additions & 3 deletions macos-x64/netbeans-macos-x64.properties
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Application name (required).
package.name=Apache NetBeans
# Application version (defaults 1.0).
package.version=21
package.version=22
# Packaging type.
package.type=macos-pkg
# Path to Java runtime to include in the package (default none).
package.runtime=${CONFIG}/zulu21.32.17-ca-jdk21.0.2-macosx_x64.tar.gz
package.runtime=${CONFIG}/zulu22.30.13-ca-jdk22.0.1-macosx_x64.tar.gz
# A single-line description of the package. Not all packagers will display this.
package.description=Package of ${package.name} ${package.version}.
# Application publisher. Not all packagers will display this.
Expand All @@ -25,7 +25,7 @@ package.macos.entitlements-template=
# Search pattern for native binaries that need to be code signed.
package.macos.codesign-files={*.dylib,*.jnilib,**/nativeexecution/MacOSX-*/*,Contents/Home/bin/*,Contents/Home/lib/jspawnhelper}
# Search pattern for JARs that bundle native binaries that need to be code signed.
package.macos.codesign-jars={flatlaf*.jar,jna-5*.jar,junixsocket-native-common-*.jar,launcher-common-*.jar,jansi-*.jar,nbi-engine.jar}
package.macos.codesign-jars={flatlaf-*.jar,jna-5*.jar,junixsocket-native-common-*.jar,launcher-common-*.jar,jansi-*.jar,nbi-engine.jar,truffle-runtime-*.jar}
# Code signing identity as passed to Codesign.
package.macos.codesign-id=
# Installer signing identity as passed to Pkgbuild.
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
a5af3434d9b283b55b41548f6de9d5d3dcb20c300254402cf8b02bbeecf3c37d zulu22.30.13-ca-jdk22.0.1-macosx_x64.tar.gz
1 change: 0 additions & 1 deletion netbeans-21-bin.zip.sha512

This file was deleted.

1 change: 1 addition & 0 deletions netbeans-22-bin.zip.sha512
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1d8ad549f9a2bfd8ee829691de1f7a22d35d0c2782676e2bc64eec32751e0edbda8a0240eec1ffd0a7e033f9fb2619b9e3ca1ddad40609f1d722a4deea16c0b6 ./netbeans-22-bin.zip
Loading

0 comments on commit 568987f

Please sign in to comment.