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

这里的技术是共享的

You are here

self service 脚本 安装 pycharm 自己亲自做的 iinstall_pycharm_zhong 有大用 有大大用

#!/bin/bash
#
/bin/mkdir -p "${HOME}/Desktop/downloadfromjamf"
cd  "${HOME}/Desktop/downloadfromjamf"
sysctl  -n machdep.cpu.brand_string | grep -i Intel
if [ $? = 0 ];then
  /usr/bin/curl -o "./PyCharm CE inter.zip"  http://aaa.bbb.com/util/software/PyCharm%20CE%20inter.zip  #inter
  unzip  -o "./PyCharm CE inter.zip"
else
  /usr/bin/curl -o "./PyCharm CE m1.zip"  http://aaa.bbb.com/util/software/PyCharm%20CE%20m1.zip  #M1 or M2
  unzip  -o "./PyCharm CE m1.zip"
fi

chmod -R 777 "${HOME}/Desktop/downloadfromjamf"
sudo /bin/cp -a "./PyCharm CE.app" /Applications/
(/usr/bin/osascript -e  'display dialog "成功安装Pycharm,您可以删除桌面上的downloadfromjamf目录,如果打开Pycharm出现错误,请重启电脑!" buttons {"OK"}   default button "OK"')
cd ../
#rm -Rf "${HOME}/Desktop/downloadfromjamf"
exit 0


普通分类: