This repository was archived by the owner on Dec 17, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +40
-3
lines changed Expand file tree Collapse file tree 3 files changed +40
-3
lines changed Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ #
4
+ # Copyright 2017 IBM Corporation
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
18
+
19
+ # directory of script
20
+ DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd ) "
21
+
22
+ # are we using a symlink?
23
+ LINK=` readlink " $DIR /fsh" `
24
+ if [ $? == 0 ]; then
25
+ # yes we are, then update DIR...
26
+ REL=` dirname " $LINK " `
27
+ DIR=" ${DIR} /${REL} "
28
+ fi
29
+
30
+ BIN=" $DIR /../fsh/IBM Cloud Shell"
31
+
32
+ " $BIN " --fsh-headless " $@ "
Original file line number Diff line number Diff line change @@ -147,11 +147,15 @@ function linux {
147
147
--overwrite
148
148
149
149
# CLI script
150
- cp ../app /bin/fsh " $BUILDDIR /${PRODUCT_NAME} -linux-x64"
150
+ cp ./bin/fsh " $BUILDDIR /${PRODUCT_NAME} -linux-x64"
151
151
152
152
if [ -z " $NO_INSTALLER " ]; then
153
153
(cd $BUILDDIR && zip -q -r " ${PRODUCT_NAME} -linux-x64" " ${PRODUCT_NAME} -linux-x64" -x \* ~)
154
- ./node_modules/.bin/electron-installer-debian --src " ${BUILDDIR} /${PRODUCT_NAME} -linux-x64" --dest ${BUILDDIR} /installers/ --arch amd64 --config dpkg-config.json
154
+ rm -f " ${BUILDDIR} /installers/*.deb"
155
+ DEBUG=electron-installer-debian ./node_modules/.bin/electron-installer-debian --src " ${BUILDDIR} /${PRODUCT_NAME} -linux-x64" --dest ${BUILDDIR} /installers/ --arch amd64 --config dpkg-config.json
156
+ for deb in " ${BUILDDIR} /installers/*.deb" ; do
157
+ mv -f $deb " ${BUILDDIR} /${PRODUCT_NAME} -linux-x64.deb"
158
+ done
155
159
fi
156
160
fi
157
161
}
Original file line number Diff line number Diff line change 1
1
{
2
- "name" : " fsh"
2
+ "name" : " fsh" ,
3
+ "bin" : " fsh"
3
4
}
You can’t perform that action at this time.
0 commit comments