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

相关推荐
我的golang之路果然有问题1 天前
mac配置 unity+vscode的坑
开发语言·笔记·vscode·macos·unity·游戏引擎
alanesnape1 天前
Mac 目录树结构与基础 Linux 指令指南
macos
Digitally2 天前
解决“Move to iOS 卡在准备中”的 9 种有效方法
macos·ios·cocoa
影魅周影2 天前
解决mac端pycharm执行allure命令报错:returned non-zero exit status 127
ide·macos·pycharm
2501_927541092 天前
CameraBag Mac英文 照片视频滤镜编辑工具
macos
uiop_uiop_uiop2 天前
iOS arm64e hook MGCopyAnswer got Crash or Only Partial results got hooked
macos·ios·cocoa
私人珍藏库2 天前
[Mac] Unclutter 2.2.15 Mac上的文件暂存 智能剪贴板历史记录管理器工具
macos
哈茶真的c2 天前
【Mac】开发环境使用/维护
macos
醇氧2 天前
mac 安装 LibreOffice
macos
马拉萨的春天2 天前
iOS中如果一个大图500M直接加载显示会崩溃,那么如何设置加载显示呢?
macos·ios·cocoa