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
2. Enter the program directory of starUML
cd /Applications/StarUML.app/Contents/Resources/
3. Extract the contents of the .asar file
asar extract app.asar app
At this time, you can see that there is an additional item under the directory withapp.asarFiles with the same nameappfolder
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
// 破解的校验函数
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