StarUml3破解并禁止升级

starUML 在启动过程中会检查更新,一旦更新之前的破解就失效了,需要重复操作因此我们需要破解之后,禁止自动升级;ps:如果有条件的话还是购买正版liscense,毕竟开发软件不容易支持一下

安装npm

brew install node

安装asar

npm install asar -g

StarUML破解

  • 官网下载并安装StarUML
  • 进入目录/Applications/StarUML.app/Contents/Resources
  • 解压文件

asar extract app.asar app

  • 修改js文件app/src/engine/license-manager.js
checkLicenseValidity () {
    this.validate().then(() => {
      setStatus(this, true)
    }, () => {
      setStatus(this, true)
      // UnregisteredDialog.showDialog()
    })
  }
  • 禁止自动更新

app/src/main-process/application.js

class Application extends EventEmitter {

  constructor () {
    super()
  // Check for updates on start
    //autoUpdater.checkForUpdatesAndNotify()   注释掉这一行
}
  • 重新打包app

asar pack app app.asar

  • 重启starUML

你可能感兴趣的:(StarUml3破解并禁止升级)