StarUML3.0.+ Mac的破解方法

安裝npm

brew install node
沒有HomeBrew的到官網(wǎng)裝下

安裝asar

npm install -g asar

安裝starUML

官網(wǎng)

解壓文件app.asar

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

修改新生成的app目錄下的lisence文件

vim app/src/engine/license-manager.js

checkLicenseValidity () {
    this.validate().then(() => {
      setStatus(this, true)
    }, () => {
      //setStatus(this, false)
     // UnregisteredDialog.showDialog()
     setStatus(this, true)//這個(gè)
    })
  }
 
  /**
   * Check the license key in server and store it as license.key file in local
   *
   * @param {string} licenseKey
   */
  register (licenseKey) {
    return new Promise((resolve, reject) => {
      $.post(app.config.validation_url, {licenseKey: licenseKey})
        .done(data => {
          var file = path.join(app.getUserPath(), '/license.key')
          fs.writeFileSync(file, JSON.stringify(data, 2))
          licenseInfo = data
          setStatus(this, true)
          resolve(data)
        })
        .fail(err => {
          setStatus(this, true)//這個(gè)
          //if (err.status === 499) { /* License key not exists */
           // reject('invalid')
          //} else {
          //  reject()
          //}
        })
    })
  }

重新打包替換原來的app.asar

asar pack app app.asar

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容