Skip to content

Commit

Permalink
Update deployment scripts, remove Trainable_Segmentation JAR
Browse files Browse the repository at this point in the history
  • Loading branch information
skalarproduktraum committed Apr 19, 2020
1 parent e48ce99 commit 3799323
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 6 deletions.
6 changes: 3 additions & 3 deletions sciview_deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ sh populate_fiji.sh
echo
echo "====== Uploading to SciView update site ======"
cd Fiji.app
curl -O https://raw.githubusercontent.com/fiji/fiji/7f13f66968a9d4622e519c8aae04786db6601314/bin/upload-site-simple.sh
chmod a+x upload-site-simple.sh
./upload-site-simple.sh SciView Kharrington
#curl -O https://raw.githubusercontent.com/fiji/fiji/7f13f66968a9d4622e519c8aae04786db6601314/bin/upload-site-simple.sh
#chmod a+x upload-site-simple.sh
../upload-site-simple.sh SciView Kharrington
6 changes: 3 additions & 3 deletions sciview_deploy_unstable.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ sh populate_fiji.sh
echo
echo "====== Uploading to SciView update site ======"
cd Fiji.app
curl -O https://raw.githubusercontent.com/fiji/fiji/7f13f66968a9d4622e519c8aae04786db6601314/bin/upload-site-simple.sh
chmod a+x upload-site-simple.sh
./upload-site-simple.sh SciView-Unstable Kharrington
#curl -O https://raw.githubusercontent.com/fiji/fiji/7f13f66968a9d4622e519c8aae04786db6601314/bin/upload-site-simple.sh
#chmod a+x upload-site-simple.sh
../upload-site-simple.sh SciView-Unstable Kharrington

echo
echo "===== Creating unstable release ====="
Expand Down
35 changes: 35 additions & 0 deletions upload-site-simple.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#!/bin/sh

# When used from an existing ImageJ.app directory, uploads
# the current ImageJ.app state to the specified ImageJ wiki
# update site.

die () {
echo "$*" >&2
exit 1
}

test $# -eq 2 ||
die "Usage: $0 <update-site> <webdav-user>"

update_site="$1"
webdav_user="$2"
url="http://sites.imagej.net/$update_site/"

# determine correct launcher to launch MiniMaven and the Updater
case "$(uname -s),$(uname -m)" in
Linux,x86_64) launcher=ImageJ-linux64;;
Linux,*) launcher=ImageJ-linux32;;
Darwin,*) launcher=Contents/MacOS/ImageJ-tiger;;
MING*,*) launcher=ImageJ-win32.exe;;
*) echo "Unknown platform" >&2; exit 1;;
esac

echo "Found launcher: $launcher"

echo "Removing TrainableSegmentation JAR"
rm -f plugins/Trainable_Segmentation*
# upload complete update site
password=$WIKI_UPLOAD_PASS
./$launcher --update edit-update-site $update_site $url "webdav:$webdav_user:$password" .
./$launcher --update upload-complete-site --force --force-shadow $update_site

0 comments on commit 3799323

Please sign in to comment.