Skip to content

Instantly share code, notes, and snippets.

@hmawla
Forked from jjvillavicencio/starUml3.md
Last active February 5, 2021 10:52
Show Gist options
  • Save hmawla/6f2c48d13cdbe71bcc58f36aeaf4fa78 to your computer and use it in GitHub Desktop.
Save hmawla/6f2c48d13cdbe71bcc58f36aeaf4fa78 to your computer and use it in GitHub Desktop.
StarUml 3.

Recently StarUML was updated from 2.0 to 3.0. The original crack method, how to modify the license verification function can not be used. The installation location has changed and the LicenseManagerDomain.js file was found. What should I do? The old driver told everyone to solve the problem.

StarUML is written in nodejs. Specifically, it is written in the front frame of Electron. All the starUML source code in the new version comes packaged by the roasting tool.

Enter the directory (Windows)

C:\Program Files\StarUML\resources

Install asar

npm install -g asar

Unpack StarUML

asar extract app.asar app

Edit the license file

app\src\engine\license-manager.js

Modify the code

Line 125

  checkLicenseValidity () {
    this.validate().then(() => {
      setStatus(this, true)
    }, () => {
    //===> Cambiar false por true
      setStatus(this, true)
      //===> Comentar Dialog
      // UnregisteredDialog.showDialog()
    })
  }

Repack StarUML

  asar pack app app.asar

Run StarUML

Source: https://blog.csdn.net/sam_shan/article/details/80585240

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment