Mac端StartUML的安裝和破解


**本人安裝的是StarUML-3.0.1版本**

 

一、下載與安裝

1. 從官方網站下載,網址:http://staruml.io/

2. dmg文件下載完成后,雙擊安裝。

二、破解

1. 安裝npm,在終端輸入:

brew install npm

注意:如果出現“Error: Calling fails_with :gcc_4_0 is disabled! There is no replacement.

Please report this to the homebrew/core tap:
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/node.rb:32”類似的問題,

說明需要科學上網。

2. 安裝asar,在終端輸入:

npm install -g asar

3. 進入StartUML的resources文件路徑,在終端輸入:

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

4. 提取app文件夾,在終端輸入:

asar extract app.asar app

5. 打開license-manager.js 文件,在終端輸入:

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

6. 找到第125行的checkLicenseValidity函數,並執行如下修改:

checkLicenseValidity () {
     this.validate().then(() => {
         setStatus(this, true)
     }, () => {// setStatus(this, false) 
         // UnregisteredDialog.showDialog()

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

7. 保存修改,在終端輸入:

asar pack app app.asar

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM