一款好用的类图工具:StarUML

2018-10-23  本文已影响38人  MR_詹

下载地址:官网

破解过程

1) 安装npm

brew install node

执行完上面的命令,你就安装好了nodejs和npm

2)安装asar


npm install asar -g

3)解压文件app.asar

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

asar extract app.asar app

4) 修改新生成的app目录下的lisence文件

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

5)找到checkLicenseValidity()函数

1.  checkLicenseValidity () {

2.  this.validate().then(() => {

3.          setStatus(this, true)

4.        }, () => {

5.          setStatus(this, false)

6.          UnregisteredDialog.showDialog()

7.      })

8.  }

修改为

1.  checkLicenseValidity () {

2.  this.validate().then(() => {

3.        setStatus(this, true)

4.      }, () => {

5.        setStatus(this, true)

6.      })

7.  }

6) 打包覆盖原app.asar

asar pack app app.asar
上一篇 下一篇

猜你喜欢

热点阅读