From 444c33ce3b54f643a8ceafed0c805dd839fae893 Mon Sep 17 00:00:00 2001 From: Josh Date: Mon, 28 Mar 2022 08:48:03 -0700 Subject: [PATCH 1/3] init --- install/modeler/install_linux_modeler.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/modeler/install_linux_modeler.sh b/install/modeler/install_linux_modeler.sh index 56590294..64a1c98d 100755 --- a/install/modeler/install_linux_modeler.sh +++ b/install/modeler/install_linux_modeler.sh @@ -35,7 +35,7 @@ rm camunda*.tar.gz cd camunda-modeler-*-linux-x64/resources mkdir element-templates cd element-templates -cp ../../../../../cws-modeler/install/modeler-config/elements.json . +cp ../../../cws-modeler/install/modeler-config/elements.json . cd ../.. ./camunda-modeler & From 589b59269b48131ba37ee0feb92f7b68b641e735 Mon Sep 17 00:00:00 2001 From: Josh Date: Tue, 29 Mar 2022 01:14:49 -0700 Subject: [PATCH 2/3] add find command to add elements.json --- install/modeler/install_linux_modeler.sh | 7 ++++++- install/modeler/install_mac_modeler.sh | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/install/modeler/install_linux_modeler.sh b/install/modeler/install_linux_modeler.sh index 64a1c98d..9ba0a8a4 100755 --- a/install/modeler/install_linux_modeler.sh +++ b/install/modeler/install_linux_modeler.sh @@ -35,7 +35,12 @@ rm camunda*.tar.gz cd camunda-modeler-*-linux-x64/resources mkdir element-templates cd element-templates -cp ../../../cws-modeler/install/modeler-config/elements.json . + +if [[ ! -z `find "../../../" -name "elements.json"` ]]; then + cp ../../../elements.json . +else + cp ../../../../../cws-modeler/install/modeler-config/elements.json . +fi cd ../.. ./camunda-modeler & diff --git a/install/modeler/install_mac_modeler.sh b/install/modeler/install_mac_modeler.sh index 38a869b6..8ebebd59 100755 --- a/install/modeler/install_mac_modeler.sh +++ b/install/modeler/install_mac_modeler.sh @@ -55,7 +55,12 @@ mv * /Applications/ #sudo spctl --master-enable # Add elements file for custom templates -cp ../../../cws-modeler/install/modeler-config/elements.json . +if [[ ! -z `find "../" -name "elements.json"` ]]; then + cp ../elements.json . +else + cp ../../../cws-modeler/install/modeler-config/elements.json . +fi + rm -f ~/Library/Application\ Support/camunda-modeler/resources/element-templates/elements.json mkdir -p ~/Library/Application\ Support/camunda-modeler/resources/element-templates/ mv elements.json ~/Library/Application\ Support/camunda-modeler/resources/element-templates/ From 8838942baf209ed28cf257792d332bfcdf98b0e6 Mon Sep 17 00:00:00 2001 From: Josh Date: Tue, 29 Mar 2022 16:31:15 -0700 Subject: [PATCH 3/3] moved elements.json to /install/modeler --- .../modeler-config => install/modeler}/elements.json | 0 install/modeler/install_linux_modeler.sh | 7 ++----- install/modeler/install_mac_modeler.sh | 7 ++----- 3 files changed, 4 insertions(+), 10 deletions(-) rename {cws-modeler/install/modeler-config => install/modeler}/elements.json (100%) diff --git a/cws-modeler/install/modeler-config/elements.json b/install/modeler/elements.json similarity index 100% rename from cws-modeler/install/modeler-config/elements.json rename to install/modeler/elements.json diff --git a/install/modeler/install_linux_modeler.sh b/install/modeler/install_linux_modeler.sh index 9ba0a8a4..47541dac 100755 --- a/install/modeler/install_linux_modeler.sh +++ b/install/modeler/install_linux_modeler.sh @@ -36,11 +36,8 @@ cd camunda-modeler-*-linux-x64/resources mkdir element-templates cd element-templates -if [[ ! -z `find "../../../" -name "elements.json"` ]]; then - cp ../../../elements.json . -else - cp ../../../../../cws-modeler/install/modeler-config/elements.json . -fi +pwd +cp ../../../elements.json . cd ../.. ./camunda-modeler & diff --git a/install/modeler/install_mac_modeler.sh b/install/modeler/install_mac_modeler.sh index 8ebebd59..8de863ca 100755 --- a/install/modeler/install_mac_modeler.sh +++ b/install/modeler/install_mac_modeler.sh @@ -55,11 +55,8 @@ mv * /Applications/ #sudo spctl --master-enable # Add elements file for custom templates -if [[ ! -z `find "../" -name "elements.json"` ]]; then - cp ../elements.json . -else - cp ../../../cws-modeler/install/modeler-config/elements.json . -fi +pwd +cp ../elements.json . rm -f ~/Library/Application\ Support/camunda-modeler/resources/element-templates/elements.json mkdir -p ~/Library/Application\ Support/camunda-modeler/resources/element-templates/