zoukankan      html  css  js  c++  java
  • 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
  • 相关阅读:
    Docker大会的新福利:LinuxKit 和 Moby 开源项目
    NS3
    (OK) NS3
    MPTCP
    Utilizing multi-core processors in NS-2
    (OK) Fedora 24
    error compiling gcc: undefined reference to libc_name_p
    gccxml
    NS3
    NS3
  • 原文地址:https://www.cnblogs.com/calence/p/10399658.html
Copyright © 2011-2022 走看看