纯文本查看
复制代码
#!/bin/bash set -e file=$(defaults read /Applications/Navicat Premium.app/Contents/Info.plist) regex="CFBundleShortVersionString Navicat Premium 16.2.7激活 = "([^.]+)" [[ $file =~ $regex ]] version=${BASH_REMATCH[1]} echo "Detected Navicat Premium version $version" case $version in "16") file=~/Library/Preferences/com.navicat.NavicatPremium.plist ;; "15") file=~/Library/Preferences/com.prect.NavicatPremium15.plist ;; *) echo "Version '$version' not handled" exit 1 ;; esac echo -n "Reseting trial time..." regex="([0-9A-Z]{32}) = " [[ $(defaults read $file) =~ $regex ]] hash=${BASH_REMATCH[1]} if [ ! -z $hash ]; then defaults delete $file $hash fi regex=".([0-9A-Z]{32})" [[ $(ls -a ~/Library/Application Support/PremiumSoft CyberTech/Navicat CC/Navicat Premium/ | grep '^.') =~ $regex ]] hash2=${BASH_REMATCH[1]} if [ ! -z $hash2 ]; then rm ~/Library/Application Support/PremiumSoft CyberTech/Navicat CC/Navicat Premium/.$hash2 fi echo " Done"
2024最新激活全家桶教程,稳定运行到2099年,请移步至置顶文章:https://sigusoft.com/99576.html
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。 文章由激活谷谷主-小谷整理,转载请注明出处:https://sigusoft.com/191633.html