欢迎各位兄弟 发布技术文章

这里的技术是共享的

You are here

self service 脚本 安装 查看CAD install_view_cad_ODAViewer_QT6_macOsX_x64_15.0dll_26.7 自己亲自做的 install_WeCom_zhong 有大用 有大大用

#!/bin/bash
#

sudo killall -9 "ODAViewer"
/bin/mkdir -p "${HOME}/Desktop/downloadfromjamf"
cd  "${HOME}/Desktop/downloadfromjamf"
sudo rm -Rf "/Applications/ODAViewer.app"
chmod -R 777 "${HOME}/Desktop/downloadfromjamf"
sysctl  -n machdep.cpu.brand_string | grep -i Intel
if [ $? = 0 ];then
  /usr/bin/curl -o "./ODAViewer_QT6_macOsX_x64_15.0dll_26.7.dmg.zip"  http://aaaa.bbbb.com/util/software/ODAViewer_QT6_macOsX_x64_15.0dll_26.7.dmg.zip  #inter
  unzip  -o "./ODAViewer_QT6_macOsX_x64_15.0dll_26.7.dmg.zip"
  hdiutil attach "./ODAViewer_QT6_macOsX_x64_15.0dll_26.7.dmg"
  sudo /bin/cp -a "/Volumes/ODA ODAViewer sample/ODAViewer.app" /Applications/
  hdiutil detach "/Volumes/ODA ODAViewer sample/"  
else
  /usr/bin/curl -o "./ODAViewer_QT6_macOsX_arm64_15.0dll_26.7.dmg.zip"  http://aaaa.bbbb.com/util/software/ODAViewer_QT6_macOsX_arm64_15.0dll_26.7.dmg.zip  #M1 or M2
  unzip  -o "./ODAViewer_QT6_macOsX_arm64_15.0dll_26.7.dmg.zip"
  hdiutil attach "./ODAViewer_QT6_macOsX_arm64_15.0dll_26.7.dmg"
  sudo /bin/cp -a "/Volumes/ODA ODAViewer sample/ODAViewer.app" /Applications/
  hdiutil detach "/Volumes/ODA ODAViewer sample/"
fi


(/usr/bin/osascript -e  'display dialog "成功安装查看CAD,您可以删除桌面上的downloadfromjamf目录,如果打开查看CAD出现错误,请重启电脑!" buttons {"OK"}   default button "OK"')

#把文件夹权限置为 777  ,让所有人可以删
sudo chmod -R 777 "${HOME}/Desktop/downloadfromjamf/"
#cd ../
#rm -Rf "${HOME}/Desktop/downloadfromjamf"
exit 0


普通分类: