You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by ne...@apache.org on 2022/11/29 12:28:55 UTC
[netbeans-tools] branch master updated: Update NBPackage for 1.0-beta1 vote.
This is an automated email from the ASF dual-hosted git repository.
neilcsmith pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/netbeans-tools.git
The following commit(s) were added to refs/heads/master by this push:
new 7f3042d Update NBPackage for 1.0-beta1 vote.
new 1872da0 Merge pull request #58 from neilcsmith-net/nbpackage-release-steps
7f3042d is described below
commit 7f3042d8288d05a2dd5e74d6ba55fbab184d6770
Author: Neil C Smith <ne...@apache.org>
AuthorDate: Tue Nov 29 11:55:02 2022 +0000
Update NBPackage for 1.0-beta1 vote.
Update version.
Configure binary notice file.
Update readme.
---
nbpackage/NOTICE | 2 +-
nbpackage/README.md | 44 ++++++++++++++++------
nbpackage/pom.xml | 5 ++-
nbpackage/src/assembly/_dist.xml | 5 ++-
.../{NOTICE => src/assembly/bin/BINARY_NOTICE} | 16 +++++++-
5 files changed, 55 insertions(+), 17 deletions(-)
diff --git a/nbpackage/NOTICE b/nbpackage/NOTICE
index 3e910db..cae0247 100644
--- a/nbpackage/NOTICE
+++ b/nbpackage/NOTICE
@@ -1,5 +1,5 @@
Apache NetBeans Packager (NBPackage)
-Copyright 2021 The Apache Software Foundation
+Copyright 2022 The Apache Software Foundation
This product includes software developed at
The Apache Software Foundation (http://www.apache.org/).
diff --git a/nbpackage/README.md b/nbpackage/README.md
index ca6ec1e..40d9656 100644
--- a/nbpackage/README.md
+++ b/nbpackage/README.md
@@ -7,8 +7,6 @@ inspired by the JDK's `jpackage` tool, but tailored to the needs of the IDE and
RCP, with a different range of packagers, and some support for cross-platform
package building.
-**nbpackage is still under development.**
-
## Usage
Run `nbpackage --help` to see options.
@@ -18,15 +16,16 @@ is to use the support for a configuration file in Java Properties format.
Use the `--save-config` option to output all available options, or just the ones
for a specific packager, to a properties file. Using a separate configuration file
-for each package type is probably the best option. The output file includes
-comments for each available option.
+for each package type is the best option. The output file includes comments for
+each available option.
eg. to build an InnoSetup installer, first create the configuration file -
`nbpackage --type windows-innosetup --save-config inno.properties`
Edit the properties file, with package name, customized icons, path to Java
-runtime, etc. As well as the path to the native build tool.
+runtime, etc. As well as the path to the native build tool. Paths can be prefixed
+with `${CONFIG}/` to be relative to configuration file location.
Then build the installer from the IDE / RCP zip using -
@@ -34,6 +33,18 @@ Then build the installer from the IDE / RCP zip using -
Use the `--verbose` option to see the output of the native packaging tools.
+### Template files
+
+Most packagers use overridable templates, for build files, `.desktop` files, `.plist`
+files, etc. To save the existing templates for editing, use -
+
+`nbpackage --type <PACKAGE_TYPE> --save-templates <PATH_TO_FOLDER>`
+
+Edit the files, and add the paths to the relevant properties in the configuration
+file (using `${CONFIG}/` relative paths where appropriate).
+
+### Modifying the package image
+
`nbpackage` will first build an image - a directory with the correct layout and
additional files for passing to the packaging tool. It is possible to use the
`--image-only` and `--input-image` options to perform this in two separate passes
@@ -41,9 +52,6 @@ to allow for customization of the process.
## Supported packagers
-Only a few packaging types are supported so far - more to follow, including macOS
-bundles and Linux deb.
-
### `--type linux-appimage`
Create a Linux [AppImage][appimage]. Requires download of the
@@ -57,8 +65,19 @@ available on the system.
### `--type linux-rpm`
-Create a Linux RPM package. Requires `rpm` and `rpmbuild` to be
-available on the system.
+Create a Linux RPM package. Requires `rpm` and `rpmbuild` to be available on the
+system.
+
+### `--type macos-pkg`
+
+Create a macOS PKG installer. Requires `swift` to build the launcher, `codesign`
+if signing binaries, and `pkgbuild` to build the actual package.
+
+If code signing identities are configured, the package will be signed, as well as
+all native binaries including those inside JAR files. The search patterns for
+native binaries and JAR files with native binaries can be adapted if necessary.
+The built package should then pass the Apple notarization process (submission and
+stapling must be done manually).
### `--type windows-innosetup`
@@ -84,9 +103,10 @@ this is less useful there.
## Building from source
Building `nbpackage` requires Maven and JDK 11+. Building in the IDE or executing
-`mvn package` will build the tool. Output can be found in `target/appassembler`.
+`mvn package` will build the tool. Output can be found in `target/nbpackage-<VERSION>/`,
+as well as adjacent source and binary archives.
-Run `./appassembler/bin/nbpackage --help` to check.
+Run `./nbpackage-<VERSION>/bin/nbpackage --help` to check.
[appimage]: https://appimage.org/
[appimagetool]: https://github.com/AppImage/AppImageKit/releases/
diff --git a/nbpackage/pom.xml b/nbpackage/pom.xml
index 10b096e..511cd37 100644
--- a/nbpackage/pom.xml
+++ b/nbpackage/pom.xml
@@ -28,7 +28,7 @@ under the License.
<groupId>org.apache.netbeans</groupId>
<artifactId>nbpackage</artifactId>
- <version>1.0-beta1-SNAPSHOT</version>
+ <version>1.0-beta1</version>
<packaging>jar</packaging>
<name>Apache NetBeans NBPackage</name>
@@ -113,6 +113,7 @@ under the License.
<exclude>nb-configuration.xml</exclude>
<!-- misc excludes -->
<exclude>README.md</exclude>
+ <exclude>src/assembly/bin/BINARY_NOTICE</exclude>
</excludes>
</configuration>
<executions>
@@ -172,7 +173,7 @@ under the License.
</plugin>
</plugins>
</build>
-
+
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
diff --git a/nbpackage/src/assembly/_dist.xml b/nbpackage/src/assembly/_dist.xml
index c2d1e53..4c93170 100644
--- a/nbpackage/src/assembly/_dist.xml
+++ b/nbpackage/src/assembly/_dist.xml
@@ -30,7 +30,6 @@ under the License.
<includes>
<include>README*</include>
<include>LICENSE*</include>
- <include>NOTICE*</include>
</includes>
</fileSet>
</fileSets>
@@ -46,5 +45,9 @@ under the License.
<outputDirectory>bin</outputDirectory>
<lineEnding>dos</lineEnding>
</file>
+ <file>
+ <source>src/assembly/bin/BINARY_NOTICE</source>
+ <destName>NOTICE</destName>
+ </file>
</files>
</component>
diff --git a/nbpackage/NOTICE b/nbpackage/src/assembly/bin/BINARY_NOTICE
similarity index 62%
copy from nbpackage/NOTICE
copy to nbpackage/src/assembly/bin/BINARY_NOTICE
index 3e910db..647b4aa 100644
--- a/nbpackage/NOTICE
+++ b/nbpackage/src/assembly/bin/BINARY_NOTICE
@@ -1,5 +1,5 @@
Apache NetBeans Packager (NBPackage)
-Copyright 2021 The Apache Software Foundation
+Copyright 2022 The Apache Software Foundation
This product includes software developed at
The Apache Software Foundation (http://www.apache.org/).
@@ -12,3 +12,17 @@ Parts of this software are derived from the libgdx Packr project, under Apache L
Launch scripts are derived from templates in the AppAssembler plugin, under MIT license.
Copyright 2006-2012 The Codehaus.
+
+**********************
+THIRD PARTY COMPONENTS
+**********************
+
+This software includes third party software subject to the following copyrights:
+
+Apache Commons Compress
+Copyright 2002-2021 The Apache Software Foundation
+Licensed under the Apache License 2.0
+
+Picocli
+Copyright 2017 Remko Popma
+Licensed under the Apache License 2.0
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists