File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ VENDOR_NAME=" JetBrains s.r.o."
2+ VENDOR_VERSION_STRING=" JBR-${JBSDK_VERSION_WITH_DOTS} .${JDK_BUILD_NUMBER} -${build_number} "
3+ [ -z ${bundle_type} ] || VENDOR_VERSION_STRING=" ${VENDOR_VERSION_STRING} -${bundle_type} "
Original file line number Diff line number Diff line change @@ -21,6 +21,9 @@ JBSDK_VERSION=$1
2121JDK_BUILD_NUMBER=$2
2222build_number=$3
2323bundle_type=$4
24+ JBSDK_VERSION_WITH_DOTS=$( echo $JBSDK_VERSION | sed ' s/_/\./g' )
25+
26+ source jb/project/tools/common.sh
2427
2528function create_jbr {
2629
7982sh configure \
8083 --disable-warnings-as-errors \
8184 --with-debug-level=release \
85+ --with-vendor-name=" ${VENDOR_NAME} " \
86+ --with-vendor-version-string=" ${VENDOR_VERSION_STRING} " \
8287 --with-version-pre= \
8388 --with-version-build=${JDK_BUILD_NUMBER} \
8489 --with-version-opt=b${build_number} \
@@ -104,6 +109,9 @@ if [[ "$bundle_type" == *jcef* ]]; then
104109fi
105110if [ " $bundle_type " == " jfx_jcef" ]; then
106111 echo Creating $JBSDK .tar.gz ...
112+ sed ' s/JBR/JBRSDK/g' ${BASE_DIR} /${JBRSDK_BUNDLE} /release > release
113+ mv release ${BASE_DIR} /${JBRSDK_BUNDLE} /release
114+
107115 tar -pcf $JBSDK .tar --exclude=* .debuginfo --exclude=demo --exclude=sample --exclude=man \
108116 -C $BASE_DIR $JBRSDK_BUNDLE || exit $?
109117 gzip $JBSDK .tar || exit $?
Original file line number Diff line number Diff line change @@ -21,6 +21,9 @@ JBSDK_VERSION=$1
2121JDK_BUILD_NUMBER=$2
2222build_number=$3
2323bundle_type=$4
24+ JBSDK_VERSION_WITH_DOTS=$( echo $JBSDK_VERSION | sed ' s/_/\./g' )
25+
26+ source jb/project/tools/common.sh
2427
2528function create_jbr {
2629
8891sh configure \
8992 --disable-warnings-as-errors \
9093 --with-debug-level=release \
94+ --with-vendor-name=" ${VENDOR_NAME} " \
95+ --with-vendor-version-string=" ${VENDOR_VERSION_STRING} " \
9196 --with-version-pre= \
9297 --with-version-build=${JDK_BUILD_NUMBER} \
9398 --with-version-opt=b${build_number} \
@@ -105,7 +110,6 @@ JBRSDK_BUNDLE=jbrsdk
105110
106111rm -rf $BASE_DIR
107112mkdir $BASE_DIR || exit $?
108- JBSDK_VERSION_WITH_DOTS=$( echo $JBSDK_VERSION | sed ' s/_/\./g' )
109113cp -a $JSDK /jdk-$JBSDK_VERSION_WITH_DOTS .jdk $BASE_DIR /$JBRSDK_BUNDLE || exit $?
110114
111115if [[ " $bundle_type " == * jcef* ]]; then
@@ -114,6 +118,8 @@ if [[ "$bundle_type" == *jcef* ]]; then
114118fi
115119if [ " $bundle_type " == " jfx_jcef" ]; then
116120 echo Creating $JBSDK .tar.gz ...
121+ sed ' s/JBR/JBRSDK/g' ${BASE_DIR} /${JBRSDK_BUNDLE} /Contents/Home/release > release
122+ mv release ${BASE_DIR} /${JBRSDK_BUNDLE} /Contents/Home/release
117123 COPYFILE_DISABLE=1 tar -pczf $JBSDK .tar.gz -C $BASE_DIR \
118124 --exclude=' ._*' --exclude=' .DS_Store' --exclude=' *~' \
119125 --exclude=' Home/demo' --exclude=' Home/man' --exclude=' Home/sample' \
Original file line number Diff line number Diff line change @@ -21,6 +21,9 @@ JBSDK_VERSION=$1
2121JDK_BUILD_NUMBER=$2
2222build_number=$3
2323bundle_type=$4
24+ JBSDK_VERSION_WITH_DOTS=$( echo $JBSDK_VERSION | sed ' s/_/\./g' )
25+
26+ source jb/project/tools/common.sh
2427
2528function create_jbr {
2629
@@ -68,6 +71,8 @@ PATH="/usr/local/bin:/usr/bin:${PATH}"
6871 --disable-warnings-as-errors \
6972 --disable-debug-symbols \
7073 --with-target-bits=64 \
74+ --with-vendor-name=" ${VENDOR_NAME} " \
75+ --with-vendor-version-string=" ${VENDOR_VERSION_STRING} " \
7176 --with-version-pre= \
7277 --with-version-build=${JDK_BUILD_NUMBER} \
7378 --with-version-opt=b${build_number} \
@@ -92,6 +97,8 @@ JBRSDK_BUNDLE=jbrsdk
9297
9398rm -rf ${BASE_DIR} /${JBRSDK_BUNDLE} && rsync -a --exclude demo --exclude sample ${JSDK} / ${JBRSDK_BUNDLE} || exit 1
9499cp -R jcef_win_x64/* ${JBRSDK_BUNDLE} /bin
100+ sed ' s/JBR/JBRSDK/g' ${JSDK} /release > release
101+ mv release ${JBRSDK_BUNDLE} /release
95102
96103JBR_BUNDLE=jbr_${bundle_type}
97104create_jbr ${bundle_type}
You can’t perform that action at this time.
0 commit comments