流程介紹
- 下載StarUML,並安裝
- 安裝破解工具Node.js,asar
- 解壓app.asar文件,修改代碼
- 重新打包app.asar文件,並替換
下載StarUML
在StarUML官網下載,下載後雙擊即可安裝
安裝破解工具
破解工具需要安裝Node.js, 這個百度有很多方法,不詳細說明
安裝Node.js後,通過sudo npm install -g asar
命令,下載asar工具
解壓app.asar文件
安裝StarUML後,在安裝目錄C:\Program Files\StarUML\resource
中有app.asar
文件
備份app.asar
文件後,通過asar extract app.asar app
命令解壓
在解壓後的目錄中找到/app/resources/app/src/engine/license-manager.js
文件,打開後準備修改
# 找到checkLicenseValidity ()
checkLicenseValidity () {
this.validate().then(() => {
setStatus(this, true)
}, () => {
# 原來的代碼:
# setStatus(this, false)
# UnregisteredDialog.showDialog()
# 修改後的代碼
setStatus(this, true)
})
}
重新打包
修改保存後,通過asar pack app app.asar
命令重新打包