mac无限刷新navicat试用时间

1.必看

原理就是删除一些文件,记录时间重置。建议买正版,禁止商用。

2.代码

Lua 复制代码
#!/bin/bash

set -e

file=$(defaults read /Applications/Navicat\ Premium.app/Contents/Info.plist)

regex="CFBundleShortVersionString = \"([^\.]+)"
[[ $file =~ $regex ]]

version=${BASH_REMATCH[1]}

echo "Detected Navicat Premium version $version"

case $version in
    "17")
        file=~/Library/Preferences/com.navicat.NavicatPremium.plist
        ;;
    "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"

3.使用

新增一个文件,名字随便起,把上面脚本贴进去,授权,执行就可以刷新了。

我文件名字:jihuo.sh

授权:chmod 777 jihuo.sh

执行:sh jihuo.sh 或者 ./jihuo.sh

相关推荐
薛定猫AI8 小时前
Codex 与 Claude Code 全平台安装配置指南(Windows / macOS / Linux)
linux·windows·macos
代码对我眨眼睛1 天前
Mac 如何单独修改鼠标滚动方向,而不影响触控板
macos·计算机外设·策略模式
qq_4924484461 天前
MAC 怎么配置定时任务
macos
2601_956002811 天前
AdGuardPro_TS.ipa2026最新版ipa 下载后浏览器无广告 官方正版2026最新版pc免费下载(看到请立即转存 资源随时失效)ios必下
macos·ios·cocoa·ipa
技术人生黄勇1 天前
Hermes Agent 桌面端:工作台 + Windows/Mac 双端 + 多智能体协作
macos
xiaoliuliu123451 天前
Petrel 2017油气勘探软件安装教程:MAC 地址修改+三维地质建模
macos
阿洛学长1 天前
Python安装与环境安装全程详细教学(包含Windows版和Mac版)
windows·python·macos
jiushiaifenxiang1 天前
Parallels Desktop for Mac 26.3.2 (57398)中文版新功能介绍
macos·策略模式
初雪云1 天前
没有Mac电脑,如何完成iOS应用上架?三个方案的实战对比
macos·ios
TheBlackHoleLab1 天前
macOS下的ESP32开发环境配置之离线安装ESP-IDF不走寻常路版
macos