Skip to content

Commit 088a6cb

Browse files
committed
JBR-2291 add vendor info into bundles
1 parent a335b47 commit 088a6cb

4 files changed

Lines changed: 25 additions & 1 deletion

File tree

jb/project/tools/common.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
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}"

jb/project/tools/linux/scripts/mkimages.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ JBSDK_VERSION=$1
2121
JDK_BUILD_NUMBER=$2
2222
build_number=$3
2323
bundle_type=$4
24+
JBSDK_VERSION_WITH_DOTS=$(echo $JBSDK_VERSION | sed 's/_/\./g')
25+
26+
source jb/project/tools/common.sh
2427

2528
function create_jbr {
2629

@@ -79,6 +82,8 @@ esac
7982
sh 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
104109
fi
105110
if [ "$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 $?

jb/project/tools/mac/scripts/mkimages.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ JBSDK_VERSION=$1
2121
JDK_BUILD_NUMBER=$2
2222
build_number=$3
2323
bundle_type=$4
24+
JBSDK_VERSION_WITH_DOTS=$(echo $JBSDK_VERSION | sed 's/_/\./g')
25+
26+
source jb/project/tools/common.sh
2427

2528
function create_jbr {
2629

@@ -88,6 +91,8 @@ esac
8891
sh 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

106111
rm -rf $BASE_DIR
107112
mkdir $BASE_DIR || exit $?
108-
JBSDK_VERSION_WITH_DOTS=$(echo $JBSDK_VERSION | sed 's/_/\./g')
109113
cp -a $JSDK/jdk-$JBSDK_VERSION_WITH_DOTS.jdk $BASE_DIR/$JBRSDK_BUNDLE || exit $?
110114

111115
if [[ "$bundle_type" == *jcef* ]]; then
@@ -114,6 +118,8 @@ if [[ "$bundle_type" == *jcef* ]]; then
114118
fi
115119
if [ "$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' \

jb/project/tools/windows/scripts/mkimages.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ JBSDK_VERSION=$1
2121
JDK_BUILD_NUMBER=$2
2222
build_number=$3
2323
bundle_type=$4
24+
JBSDK_VERSION_WITH_DOTS=$(echo $JBSDK_VERSION | sed 's/_/\./g')
25+
26+
source jb/project/tools/common.sh
2427

2528
function 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

9398
rm -rf ${BASE_DIR}/${JBRSDK_BUNDLE} && rsync -a --exclude demo --exclude sample ${JSDK}/ ${JBRSDK_BUNDLE} || exit 1
9499
cp -R jcef_win_x64/* ${JBRSDK_BUNDLE}/bin
100+
sed 's/JBR/JBRSDK/g' ${JSDK}/release > release
101+
mv release ${JBRSDK_BUNDLE}/release
95102

96103
JBR_BUNDLE=jbr_${bundle_type}
97104
create_jbr ${bundle_type}

0 commit comments

Comments
 (0)