下載StarUML
地址:http://www.macupdate.com/app/mac/55571/staruml/download
或者官網:
http://staruml.io
破解過程
1) 安裝npm
brew install node
執行完上面的命令,你就安裝好了nodejs和npm
2)安裝asar
npm install asar -g
3)解壓文件app.asar
cd /Applications/StarUML.app/Contents/Resources/
asar extract app.asar app
4) 修改新生成的app目錄下的lisence文件
vim app/src/engine/license-manager.js

5)找到checkLicenseValidity()函數
-
checkLicenseValidity () {
-
this.validate().then(() => {
-
setStatus( this, true)
-
}, () => {
-
setStatus( this, false)
-
UnregisteredDialog.showDialog()
-
})
-
}
修改為
-
checkLicenseValidity () {
-
this.validate().then(() => {
-
setStatus( this, true)
-
}, () => {
-
setStatus( this, true)
-
})
-
}
6) 打包覆蓋原app.asar
asar pack app app.asar
