Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Mac Installer needs to be built locally, please refer INFRA-17961

Signing:

For signing Windows and Mac installers, used Apache Code Service service. Tried with Test Signing for Windows. More info is here : https://reference.apache.org/pmc/codesigning

...

git clone https://github.com/apache/netbeans.git

cd netbeans

Run ant build

...

Linux and Windows Installers:

Run below bash script from current dir

Code Block
BASE_DIR=`pwd`
NB_ALL=$BASE_DIR
export BASE_DIR NB_ALL

DIST=$BASE_DIR/dist
export DIST

if [ -d $DIST ] ; then
rm -rf $DIST
fi

mkdir -p $DIST/zip/moduleclusters
mkdir -p $DIST/logs

BINARY_PATH=<path>
BINARY_NAME=<zip name incubating-netbeans-11.0-vc3-bin.zip>
export BINARY_NAME
cp $BINARY_PATH/$BINARY_NAME $DIST/zip/moduleclusters
rm -rf NBI-cache
cd $BASE_DIR
NB_BUILD_NUMBER=1
NB_VER_NUMBER=11.1
BASENAME_PREFIX=Apache-NetBeans-$NB_VER_NUMBER-bin
BUILD_DESC=$BASENAME_PREFIX
BUILDNUMBER=$NB_BUILD_NUMBER
DATESTAMP=$BUILDNUMBER

export NB_VER_NUMBER BUILDNUMBER BASENAME_PREFIX NB_BUILD_NUMBER DATESTAMP BUILD_DESC

##########For generating Windows and Linux installers####
BUILD_NB=1
#########################################################
BUILD_NETBEANS=0
BUILD_NBJDK6=0
BUILD_NBJDK7=0
BUILD_NBJDK8=0
BUILD_NBJDK11=0

export BUILD_NETBEANS BUILD_NB
export BUILD_NBJDK6 BUILD_NBJDK7 BUILD_NBJDK8 BUILD_NBJDK11

OUTPUT_DIR=${NB_ALL}/dist/installers
export OUTPUT_DIR

DONT_SIGN_INSTALLER=y
export DONT_SIGN_INSTALLER

bash -x $NB_ALL/nbbuild/newbuild/build-nbi.sh

...