ArgoUML与StarUML的安装

ArgoUML与StarUML的安装

说明:

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

其他

sudo apt-get update
sudo apt-get install libgirepository1.0-dev
pip install gaphor
posted @   shizidushu  阅读(81)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· winform 绘制太阳,地球,月球 运作规律
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· AI与.NET技术实操系列(五):向量存储与相似性搜索在 .NET 中的实现
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 超详细:普通电脑也行Windows部署deepseek R1训练数据并当服务器共享给他人
点击右上角即可分享
微信分享提示