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 FilesOracleJavajava8pathC:Program Files (x86)Common FilesOracleJavajavapath,不需要的话可以删除。

从 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 FilesStarUML
esources"

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

cp app.asar app.asar.backup

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

asar extract app.asar app

修改C:Program FilesStarUML
esourcesappsrcenginelicense-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 FilesStarUML
esourcesappsrcmain-processapplication.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/

© 版权声明

相关文章

暂无评论

您必须登录才能参与评论!
立即登录
暂无评论...