不灭的焱

革命尚未成功,同志仍须努力下载JDK17

作者:Albert.Wen  添加时间:2013-03-14 15:50:26  修改时间:2024-03-31 23:04:06  分类:Linux软件安装/参数优化  编辑

1、下载 StarUML 3.1.0

http://staruml.io/download

http://www.macupdate.com/app/mac/55571/staruml/download

2、安装 npm

详见博文:https://blog.csdn.net/qq_33833327/article/details/78027431

3、安装 asar

npm install asar -g

4、破解 StarUML

(1) 解压文件 app.asar

cd /Applications/StarUML.app/Contents/Resources
asar extract app.asar app

(2) 修改 js 文件 license-manager.js

vim app/src/engine/license-manager.js

找到代码 checkLicenseValidity ()

checkLicenseValidity () {
    this.validate().then(() => {
      setStatus(this, true)
    }, () => {
      // 原来的代码:
      // setStatus(this, false) 
      // UnregisteredDialog.showDialog()
 
      //修改后的代码
      setStatus(this, true)
    })
 }

(3) 重新打包 app 文件夹

asar pack app app.asar

(4) 重新打开软件,破解成功