ArgoUML与StarUML的安装

ArgoUML与StarUML的安装

说明:

  • 首次发表日期:2024-09-07
  • ArgoUML 官网: https://argouml-tigris-org.github.io/tigris/argouml/
  • StarUML 官网: https://staruml.io/

ArgoUML

以下内容基于: https://blog.csdn.net/halo_hsuh/article/details/121336256

从页面先下载32位的java 8 :https://www.filehorse.com/download-java-runtime-32/download/ 并安装

安装时会自动往PATH里添加C:\Program Files (x86)\Common Files\Oracle\Java\java8pathC:\Program Files (x86)\Common Files\Oracle\Java\javapath,不需要的话可以删除。

从 https://github.com/argouml-tigris-org/argouml/releases 下载最新的ArgoUML并安装

StarUML

StarUML工具实用教程: https://www.bilibili.com/video/BV1Kh4y1S72z 这个视频讲得不错

以下内容基于: https://blog.csdn.net/Pinkcheek/article/details/141099140

npm config set registry https://registry.npmmirror.com
npm install asar -g

以管理员身份打开powershell,转到对应文件夹:

cd "C:\Program Files\StarUML\resources"

先给app.asar文件做个备份:

cp app.asar app.asar.backup

然后使用asar将app.asar文件解压:

asar extract app.asar app

修改C:\Program Files\StarUML\resources\app\src\engine\license-manager.js文件中的checkLicenseValidity函数为:

  async checkLicenseValidity() {
    if (packageJSON.config.setappBuild) {
      setStatus(this, true);
    } else {
      try {
        const result = await this.validate();
        setStatus(this, true);
      } catch (err) {
        // const remains = this.checkEvaluationPeriod();
        // const isExpired = remains < 0;
        // const result = await UnregisteredDialog.showDialog(remains);
        // setStatus(this, false);
        // if (isExpired) {
        //   app.quit();
        // }
        setStatus(this, true);
      }
    }
  }

然后修改C:\Program Files\StarUML\resources\app\src\main-process\application.js中audoUpdater部分为:

    if (!packageJSON.config.setappBuild) {
      this.on("application:check-for-updates", (arg) => {
        // autoUpdater.checkForUpdatesAndNotify();
      });
      this.on("application:install-and-restart", (arg) => {
        // autoUpdater.quitAndInstall(false, true);
      });
    }

删除原先的app.asar文件:

rm app.asar

重新打包app.asar

asar pack app app.asar

删除app文件夹

rm -r app

其他

  • 建模工具 Gaphor: https://github.com/gaphor/gaphor
sudo apt-get update
sudo apt-get install libgirepository1.0-dev
pip install gaphor
  • UML规范: https://www.omg.org/spec/UML/
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值