v202011161214 t1.0.17 1.0.17
authorKilian Saffran <ksaffran@dks.lu>
Mon, 16 Nov 2020 11:15:20 +0000 (12:15 +0100)
committerKilian Saffran <ksaffran@dks.lu>
Mon, 16 Nov 2020 11:15:20 +0000 (12:15 +0100)
desktopapp/package.json
install/update_app.sh

index 50f18df..bfdd466 100644 (file)
@@ -1,6 +1,6 @@
 {
   "name": "POT",
-  "version": "1.0.16",
+  "version": "1.0.17",
   "description": "plan d'organisation du travail",
   "main": "main.js",
   "scripts": {
index fbaee7b..42fd3fa 100644 (file)
@@ -5,9 +5,14 @@ echo ${PROJECTDIR}
 cd ${PROJECTDIR}
 UPLOAD=$1
 CDATE=`date +%Y%m%d%H%M`
-
+if [ ! -d ${PROJECTDIR}"/release" ]
+then
+  mkdir ${PROJECTDIR}"/release"
+else 
+  rm -r ${PROJECTDIR}"/release/"
+fi
 echo "last tag"
-git tag --list --sort=-creatordate | tail -n 1
+git tag --list --sort=creatordate
 read -p "new tag:" tag
 echo 
 echo "working tag is $tag"
@@ -22,16 +27,17 @@ then
   git commit -a -m "v${CDATE} t$tag"
   git tag $tag
 fi 
-echo "export app dir of tag $tag"
+
 if [ ! -d ${PROJECTDIR}"/release" ]
 then
   mkdir ${PROJECTDIR}"/release"
 fi
+echo "export app dir of tag $tag"
 git archive -o ${PROJECTDIR}"/release/$tag.zip" $tag:app
 cd ${PROJECTDIR}"/release"
 unzip $tag.zip
 rm $tag.zip
-
+exit(0)
 source ${CALLDIR}"/../dev/conf.sh"
 find . -type f -printf "%p|%s\n" | grep -v -e "\/data\/output\/" | grep -v -e "\/data\/tmp\/" | grep -v -e "\/tools\/" | sort  > ${TMPDIR}/sourcefiles.local.txt