16
16
# limitations under the License.
17
17
#
18
18
19
- set -e
20
- set -o pipefail
19
+ # set -e
20
+ # set -o pipefail
21
21
22
22
SCRIPTDIR=$( cd $( dirname " $0 " ) && pwd)
23
23
TOPDIR=" $SCRIPTDIR " /../../../../../
24
24
DISTDIR=" $TOPDIR " /clients/default/dist
25
+ BASE_DISTDIR=" $TOPDIR " /clients/base/dist
25
26
26
27
BRANCH=${BRANCH-`git rev-parse --abbrev-ref HEAD`}
27
28
echo " Building and deploying to this release stream: $BRANCH "
@@ -39,6 +40,7 @@ if [ "$BRANCH" != "master" ]; then
39
40
(cd " $TOPDIR /packages/core" && npm version $VERSION ) # smash this into packages/core/package.json
40
41
(cd " $TOPDIR /node_modules/@kui-shell/settings" && npm version $VERSION ) # smash this into @kui-shell/settings/package.json
41
42
(cd " $TOPDIR /clients/default" && npm version $VERSION ) # smash this into clients/default/package.json
43
+ (cd " $TOPDIR /clients/base" && npm version $VERSION ) # smash this into clients/base/package.json
42
44
43
45
COS_BUCKET=$BRANCH # stash the builds in a bucket named by the branch
44
46
59
61
echo " Version after publish: $VERSION "
60
62
echo " Storing builds in this bucket: $COS_BUCKET "
61
63
62
- # 2. build the platform binary bundles
64
+
65
+ # 2.1 install the dependencies of kui-base
66
+ (cd " $TOPDIR " /clients/base && npm install)
67
+
68
+ # 2.2 build the platform binary bundles
63
69
if [ -z $PLATFORM ]; then
64
70
if [[ ` uname` == Linux ]]; then
65
71
echo " Building Linux, Windows and Headless distributions from Linux host"
@@ -68,16 +74,27 @@ if [ -z $PLATFORM ]; then
68
74
(cd " $TOPDIR " /clients/default && npm run build:headless)
69
75
echo " confirming what we built for headless:"
70
76
ls " $DISTDIR /headless"
77
+
78
+ echo " Kui-base: Building Linux, Window distributions from Linux host"
79
+ (cd " $TOPDIR " /clients/base && npm run build:electron linux)
80
+ (cd " $TOPDIR " /clients/base && npm run build:electron windows)
81
+
71
82
elif [[ ` uname` == Darwin ]]; then
72
83
echo " Building macOS distributions from macOS host"
73
84
(cd " $TOPDIR " /clients/default && npm run build:electron darwin)
85
+
86
+ echo " Kui-base: Building macOS distributions from macOS host"
87
+ (cd " $TOPDIR " /clients/base && npm run build:electron darwin)
74
88
fi
75
89
else
76
90
echo " Building $PLATFORM distributions"
77
91
(cd " $TOPDIR " /clients/default && npm run build:electron -- $PLATFORM )
78
92
(cd " $TOPDIR " /clients/default && npm run build:headless)
79
93
echo " confirming what we built for headless:"
80
94
ls " $DISTDIR /headless"
95
+
96
+ echo " Kui-base: Building $PLATFORM distributions"
97
+ (cd " $TOPDIR " /clients/base && npm run build:electron -- $PLATFORM )
81
98
fi
82
99
83
100
echo " confirming what we built for electron:"
@@ -88,6 +105,7 @@ ls "$DISTDIR/electron"
88
105
if [ -z " $NO_PUSH " ]; then
89
106
BUILDDIR=" $DISTDIR /headless" NO_CONFIG_UPDATE=true EXIST_OK=true node ./push-cos.js ${COS_BUCKET}
90
107
BUILDDIR=" $DISTDIR /electron" NO_CONFIG_UPDATE=true EXIST_OK=true node ./push-cos.js ${COS_BUCKET}
108
+ BUILDDIR=" $BASE_DISTDIR /electron" NO_CONFIG_UPDATE=true EXIST_OK=true node ./push-cos.js ${COS_BUCKET}
91
109
92
110
# deploy the local-proxy.html which lets us offer kui:// links in
93
111
# unfriendly environs such as github markdown
@@ -97,13 +115,22 @@ if [ -z "$NO_PUSH" ]; then
97
115
98
116
if [[ ` uname` == Linux ]]; then
99
117
echo " win32: ${KUI_S3} /Kui-win32-x64.zip"
118
+ echo " win32: ${KUI_S3} /Kui-base-win32-x64.zip"
119
+
100
120
echo " linux-zip: ${KUI_S3} /Kui-linux-x64.zip"
121
+ echo " linux-zip: ${KUI_S3} /Kui-base-linux-x64.zip"
122
+
101
123
echo " linux-deb: ${KUI_S3} /Kui-linux-x64.deb"
124
+ echo " linux-deb: ${KUI_S3} /Kui-base-linux-x64.deb"
125
+
102
126
echo " headless: ${KUI_S3} /Kui-headless.zip"
103
127
echo " headless: ${KUI_S3} /Kui-headless.tar.bz2"
104
128
elif [[ ` uname` == Darwin ]]; then
105
129
echo " macOS: ${KUI_S3} /Kui.dmg"
130
+ echo " macOS: ${KUI_S3} /Kui-base.dmg"
131
+
106
132
echo " macOS-tar: ${KUI_S3} /Kui-darwin-x64.tar.bz2"
133
+ echo " macOS-tar: ${KUI_S3} /Kui-base-darwin-x64.tar.bz2"
107
134
fi
108
135
fi
109
136
@@ -112,4 +139,5 @@ if [ "$BRANCH" != "master" ]; then
112
139
(cd " $TOPDIR " /packages/core && npm version $BASE_VERSION )
113
140
(cd " $TOPDIR " /node_modules/@kui-shell/settings && npm version $BASE_VERSION )
114
141
(cd " $TOPDIR /clients/default" && npm version $BASE_VERSION )
142
+ (cd " $TOPDIR /clients/base" && npm version $BASE_VERSION )
115
143
fi
0 commit comments