-
Notifications
You must be signed in to change notification settings - Fork 1
/
do-release
executable file
·65 lines (55 loc) · 1.69 KB
/
do-release
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#!/usr/bin/env bash
#
# This script builds required libraries and copies into
# Fiji installation directory.
#
#Usage: do-release <Directory with Fiji installation>
#
UPDATE_SITE=HPC-ParallelTools_update
mvn clean install -Denforcer.skip=true
if [ "$(uname)" == "Darwin" ]; then
DIR=`greadlink -f $1`
OLD_DIR=`greadlink -f .`
else
DIR=`readlink -f $1`
OLD_DIR=`readlink -f .`
fi
JARS="cluster-job-launcher-*.jar \
heappe-java-client-*.jar \
hpc-workflow-manager-client-*.jar \
hpc-workflow-manager-hpc-adapter-*.jar \
ikonli-core-*.jar \
ikonli-javafx-*.jar \
ikonli-materialdesign-pack-*.jar \
ini4j-*.jar \
it4i-common-*.jar \
jaxrpc-api-*.jar \
runners-logging-ui-*.jar \
scijava-parallel-*.jar \
scp-java-client-*.jar \
swing-javafx-ui-*.jar"
cd $DIR/jars
rm -f $JARS
cd $OLD_DIR
cp target/module-assembly-bin/lib/*.jar $DIR/jars/
cd $DIR/jars
for i in $JARS
do
JARS_FINAL+="jars/"`ls $i`" "
done
cd $OLD_DIR
echo $JARS_FINAL
# Detect Fiji supported OS executable name:
if [ "$(uname)" == "Darwin" ]; then
FIJI_APP=/Contents/MacOS/ImageJ-macosx
elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
FIJI_APP=ImageJ-linux64
elif [ "$(expr substr $(uname -s) 1 5)" == "MINGW" ]; then
FIJI_APP=ImageJ-win64.exe
elif [ "$(expr substr $(uname -s) 1 9)" == "CYGWIN_NT" ]; then
FIJI_APP=ImageJ-win64.exe
fi
echo $FIJI_APP
$DIR/$FIJI_APP --update upload --update-site ${UPDATE_SITE} $JARS_FINAL
echo "If the automatic update of the Fiji update site failed, manually do:"
echo "Start Fiji, 'Help' > 'Update...', click 'OK', highlight all 'Names', right-click and select 'Upload to HPC-ParallelTools_update' select 'Apply changes' enter the password and finally close Fiji."