UML---StarUML破解与使用 starUML for Mac的安装与破解

【转载】starUML for Mac的安装与破解

下载StarUML
地址:http://www.macupdate.com/app/mac/55571/staruml/download 
或者官网: 
http://staruml.io

破解过程

1) 安装npm 

brew install node

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

2)安装asar

npm install asar -g

如果安装失败,可能是国内镜像问题,可做如下操作。

  1. npm config set registry https://registry.npm.taobao.org
  2. npm info underscore (如果上面配置正确这个命令会有字符串response

3)解压文件app.asar

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

asar extract app.asar app

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

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

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

猜你喜欢

转载自www.cnblogs.com/1-434/p/10507927.html