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

相关推荐
凤山老林16 小时前
在 Apple 芯片的 Mac 上通过 VMware Fusion 使用 Windows 11
windows·macos·vmware·虚拟机
c&0xff0018 小时前
mac通过网线连接树莓派
macos
孙启超1 天前
Token太贵自己写了一个mac版开源AI编程工具
人工智能·macos·开源·llm·agent·ai编程·ai应用开发
2601_965798471 天前
Launch Your Wellness App Fast: The Truth About Meditation Source Code
前端·macos·ios·objective-c·cocoa
2501_915909063 天前
全面解析iOS应用上架到App Store的完整流程与关键注意事项
android·macos·ios·小程序·uni-app·cocoa·iphone
2501_915918413 天前
免 Xcode 开发 iOS,工具链替代方案与编译、签名、安装
ide·vscode·macos·ios·个人开发·xcode·敏捷流程
Architect_Lee3 天前
mac安装多个tomcat
macos
ty_xiumud3 天前
以太网 MAC 详解:帧格式、位序、FCS 与收发流程
开发语言·macos·php
营养充电站3 天前
C++23 新特性在 CLion 中的实战体验
macos·docker·jupyter·正则表达式