@@ -49,7 +49,7 @@ function linux_install_prerequisites() {
4949
5050function setup() {
5151 unset LD_LIBRARY_PATH
52-
52+
5353 echo " Building the Cubit plugin in ${CURRENT} \\ ${PLUGIN_DIR} "
5454 cd ${CURRENT}
5555 mkdir ${PLUGIN_DIR}
@@ -180,7 +180,7 @@ function mac_setup_cubit() {
180180 hdiutil attach cubit_eula.dmg.cdr -mountpoint /Volumes/Cubit
181181 mv /Volumes/Cubit/* .app /Applications/
182182 rm -rf cubit.dmg
183-
183+
184184 # removing app_loger that seems to not be present in Cubit 2020.2
185185 if [ " ${1} " = " 2020.2" ]; then # || [ "$1" == "2021.3" ] || [ "$1" == "2021.4" ]; then
186186 remove_app_logger
@@ -189,7 +189,7 @@ function mac_setup_cubit() {
189189 cd /Applications
190190
191191 # 17.1.0 comes with a separate SDK. It is unclear yet on how it is supposed to be installed and used.
192- # this is a way to have it working...
192+ # this is a way to have it working...
193193 if [ " $1 " == " 17.1.0" ] ; then
194194 cd ${CUBIT_PATH}
195195 $SUDO tar -xzf ${FOLDER_PKG} /${CUBIT_SDK_PKG}
@@ -211,11 +211,11 @@ function mac_setup_cubit() {
211211}
212212
213213function linux_setup_cubit() {
214-
214+
215215 cd ${FOLDER_PKG}
216216 $SUDO apt-get install -y ./${CUBIT_PKG}
217217
218- if [ " $1 " == " 2021.3" ] || [ " $1 " == " 2021.4" ] || [ " $1 " == " 2021.5" ] || [ " $1 " == " 2021.11" ] ; then
218+ if [ " $1 " == " 2021.3" ] || [ " $1 " == " 2021.4" ] || [ " $1 " == " 2021.5" ] || [ " $1 " == " 2021.11" ] || [ " $1 " == " 2022.4 " ] ; then
219219 return
220220 fi
221221
@@ -230,6 +230,7 @@ function linux_setup_cubit() {
230230function build_plugin(){
231231 cd ${PLUGIN_ABS_PATH}
232232 cd Cubit-plugin
233+ git config --global --add safe.directory ${GITHUB_WORKSPACE}
233234 git submodule update --init
234235 cd ../
235236 mkdir -pv bld
@@ -285,8 +286,8 @@ function mac_build_plugin_pkg(){
285286
286287 # Copy all needed libraries into current directory
287288 cp -pPv ${PLUGIN_ABS_PATH} /lib/* .
288- cp /usr/local/opt/szip /lib/libsz.2 .dylib .
289- install_name_tool -change /usr/local/opt/szip /lib/libsz.2. dylib @rpath/libsz.2 .dylib libsvalinn_plugin.so
289+ cp /usr/local/opt/libaec /lib/libsz.dylib .
290+ install_name_tool -change /usr/local/opt/libaec /lib/libsz.dylib @rpath/libsz.dylib libsvalinn_plugin.so
290291
291292 # restoring correct RPATH for 17.1 (bin does not exist as it is not shipped with SDK)
292293 if [ " $1 " == " 17.1.0" ] ; then
0 commit comments