macOS 下 starUML 软件激活方案

starUML每次打开都弹出提示其实挺烦的,于是研究了一下如何 po 解(激活)它。记录一下方法以便以后使用。

我觉得这个软件很好用,大型项目的所有图我都是用这个软件画的。

直接上步骤!先关掉starUML

1、安装 asar,以便可以打开 asar 文件

如果你没有 node 环境,请自行安装,比如使用 homebrew 安装。此处不再赘述。

bash 复制代码
npm install -g asar 

2、进入 starUML 的程序目录

bash 复制代码
cd /Applications/StarUML.app/Contents/Resources/

3、提取出.asar 文件中的内容

bash 复制代码
asar extract  app.asar app

此时可以看到目录下面多出一个与 app.asar 文件一样名称的 app 文件夹

提示:快速通过访达去某一个文件夹,快捷键: cmd + shift + G

输入自己的路径:/Applications/StarUML.app/Contents/Resources

回车即可打开访达窗口

4、打开 license-manager.js文件

js 复制代码
  // 破解的校验函数
  checkLicenseValidity () {
    this.validate().then(() => {
        setStatus(this, true)
    }, () => {// setStatus(this, false) 
        // UnregisteredDialog.showDialog()

        //修改后的代码
        setStatus(this, true)
     })
}

5、保存该文件

6、重新打包回去

bash 复制代码
asar pack app app.asar

7、打开 starUML 校验是否成功

相关推荐
Nightmare0041 天前
Mac打开终端
macos
亚里随笔1 天前
vscode mac常用技巧—快捷键
ide·vscode·macos
Nightmare0041 天前
Mac 安装brew
大数据·macos
xiliuhu1 天前
Mac下使用conda安装PyTorch环境
pytorch·python·macos·conda
AcceptedLin2 天前
删除MacBook启动台内顽固应用程序图标
经验分享·macos
Program Debug2 天前
Mac安装JDK
java·开发语言·macos
SatVision炼金士2 天前
Mac 安装Homebrew记录
java·elasticsearch·macos·maven
牛奔2 天前
Mac 使用 React-Native 使用无线调试商米机,配合Stripe 终端
macos
怎么没有名字注册了啊2 天前
(Mac)Mac权限问题,运行没有数字签名的dmg
macos
allanGold2 天前
【Mac】【Vagrant】【类xshell的Termora】centos连接步骤
macos·centos·vagrant