StarUML4.0+ Mac cracking method

install npm

brew install node
Install it on the official website without HomeBrew

install asar

npm install -g asar

Install starUML

Official website

Unzip the file app.asar

First enter the Resources directory
cd /Applications/StarUML.app/Contents/Resources/
and unzip app.asar
asar extract app.asar app

Modify the lisence file in the newly generated app directory

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

checkLicenseValidity () {
    this.validate().then(() => {
      setStatus(this, true)
    }, () => {
      //setStatus(this, false)
     // UnregisteredDialog.showDialog()
     setStatus(this, true)//这个
    })
  }

  /**
   * Check the license key in server and store it as license.key file in local
   *
   * @param {string} licenseKey
   */
  register (licenseKey) {
    return new Promise((resolve, reject) => {
      $.post(app.config.validation_url, {licenseKey: licenseKey})
        .done(data => {
          var file = path.join(app.getUserPath(), '/license.key')
          fs.writeFileSync(file, JSON.stringify(data, 2))
          licenseInfo = data
          setStatus(this, true)
          resolve(data)
        })
        .fail(err => {
          setStatus(this, true)//这个
          //if (err.status === 499) { /* License key not exists */
           // reject('invalid')
          //} else {
          //  reject()
          //}
        })
    })
  }

Repackage and replace the original app.asar

asar pack app app.asar

{{o.name}}
{{m.name}}

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=324128322&siteId=291194637