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 校验是否成功

相关推荐
共享家95271 天前
linux-数据链路层
linux·网络·macos
CZIDC1 天前
MacOS字体看起来比在 Windows 上更好?
macos
Cosmoshhhyyy2 天前
linux远程部署dify和mac本地部署dify
linux·运维·macos
行星0082 天前
mac 通过homebrew 安装和使用nvm
macos·npm·node.js
2501_928094652 天前
Mac电脑录屏工具 Omi录屏专家(Mac中文)
macos·mac·录屏工具·omi
森之鸟2 天前
Mac chrome浏览器下载DevEco Studio 6.0.0 Beta2失败
前端·chrome·macos
FairGuard手游加固3 天前
版本更新!FairGuard-Mac加固工具已上线!
macos
金玉满堂@bj3 天前
OS设备UDID查看方法
macos·objective-c·cocoa
庸懒3 天前
Electron自定义菜单栏及Mac最大化无效的问题解决
前端·macos·electron