starUML software activation plan under macOS

It was quite annoying to see a pop-up prompt every time I opened starUML, so I studied how to unblock (activate) it. Record the method for later use.
I think this software is very useful. I use this software to draw all the pictures for large projects.

Just go to the steps! Turn off starUML first

1. Install asar so that you can open asar files

If you do not have a node environment, please install it yourself, such as using homebrew. No further details will be given here.

npm install -g asar 

Insert image description here

2. Enter the program directory of starUML

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

Insert image description here

3. Extract the contents of the .asar file

asar extract  app.asar app

Insert image description here

At this time, you can see that there is an additional item under the directory withapp.asarFiles with the same nameappfolder
Insert image description here

Tip: Quickly go to a folder through Finder. Shortcut key: cmd + shift + G.
Enter your own path: /Applications/StarUML.app/Contents/Resources
and press Enter to open the Finder window.

4. Openlicense-manager.jsdocument

Insert image description here

  // 破解的校验函数
  checkLicenseValidity () {
    
    
    this.validate().then(() => {
    
    
        setStatus(this, true)
    }, () => {
    
    // setStatus(this, false) 
        // UnregisteredDialog.showDialog()

        //修改后的代码
        setStatus(this, true)
     })
}

5. Save the file

6. Repackage it back

asar pack app app.asar

Insert image description here

7. Open starUML to verify whether it is successful.

Insert image description here

Insert image description here

Guess you like

Origin blog.csdn.net/qq_17229141/article/details/134214631