mirror of
https://github.com/JetBrains/JetBrainsRuntime.git
synced 2025-12-06 09:29:38 +01:00
JBR API frontend is moved into a separate repository. Rewritten proxy generation, bridges removed, invokedynamic is used instead. Mapping is now specified using annotations. Support for extension methods. Support for arrays and generics. Added JBR API implementation version. JBR-7232 Refactor deriveFontWithFeatures & JBRFileDialog JBR API
56 lines
1.9 KiB
Bash
Executable File
56 lines
1.9 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
set -euo pipefail
|
|
set -x
|
|
|
|
# The following parameters must be specified:
|
|
# build_number - specifies the number of JetBrainsRuntime build
|
|
# bundle_type - specifies bundle to be built;possible values:
|
|
# <empty> or nomod - the release bundles without any additional modules (jcef)
|
|
# jcef - the release bundles with jcef
|
|
# fd - the fastdebug bundles which also include the jcef module
|
|
#
|
|
# This script packs test-image along with JDK images when bundle_type is set to "jcef".
|
|
# If the character 't' is added at the end of bundle_type then it also makes test-image along with JDK images.
|
|
#
|
|
|
|
source jb/project/tools/common/scripts/common.sh
|
|
|
|
[ "$bundle_type" == "jcef" ] && do_maketest=1
|
|
|
|
function pack_jbr {
|
|
__bundle_name=$1
|
|
__arch_name=$2
|
|
|
|
fastdebug_infix=''
|
|
|
|
[ "$bundle_type" == "fd" ] && [ "$__arch_name" == "$JBRSDK_BUNDLE" ] && __bundle_name=$__arch_name && fastdebug_infix="fastdebug-"
|
|
JBR=${__bundle_name}-${JBSDK_VERSION}-windows-x64-${fastdebug_infix}b${build_number}
|
|
__root_dir=${__bundle_name}-${JBSDK_VERSION}-windows-x64-${fastdebug_infix}b${build_number}
|
|
|
|
echo Creating $JBR.tar.gz ...
|
|
chmod -R ug+rwx,o+rx ${BASE_DIR}/$__root_dir
|
|
/usr/bin/tar -czf $JBR.tar.gz -C $BASE_DIR $__root_dir || do_exit $?
|
|
}
|
|
|
|
[ "$bundle_type" == "nomod" ] && bundle_type=""
|
|
|
|
JBRSDK_BUNDLE=jbrsdk
|
|
RELEASE_NAME=windows-x86_64-server-release
|
|
IMAGES_DIR=build/$RELEASE_NAME/images
|
|
BASE_DIR=.
|
|
|
|
if [ "$bundle_type" == "jcef" ] || [ "$bundle_type" == "dcevm" ] || [ "$bundle_type" == "fd" ]; then
|
|
jbr_name_postfix="_${bundle_type}"
|
|
else
|
|
jbr_name_postfix=""
|
|
fi
|
|
|
|
pack_jbr jbr${jbr_name_postfix} jbr
|
|
pack_jbr jbrsdk${jbr_name_postfix} jbrsdk
|
|
|
|
if [ $do_maketest -eq 1 ]; then
|
|
JBRSDK_TEST=$JBRSDK_BUNDLE-$JBSDK_VERSION-windows-test-x64-b$build_number
|
|
echo Creating $JBRSDK_TEST.tar.gz ...
|
|
/usr/bin/tar -czf $JBRSDK_TEST.tar.gz -C $IMAGES_DIR --exclude='test/jdk/demos' test || do_exit $?
|
|
fi |