破解starUML3.1.0(Ubuntu18.04).md

参考博客

  1. 破解StarUML3.01最新版 for Linux(Ubuntu16LTS)
  2. AppImageKit

一. 解包破解

1.1 下载starUML程序

http://staruml.io/
得到“StarUML-3.1.0-x86_64.AppImage”文件,注意不需要点开安装

1.2 解包程序

例如startUML的保存目录是 ~/Programe/starUML

chmod +x StarUML-3.1.0-x86_64.AppImage
./StarUML-3.1.0-x86_64.AppImage --appimage-extract

在这个目录下会生成squashfs-root目录

1.3 去掉license验证

1.3.1 安装asar

sudo apt install npm
sudo npm install npm@latest -g
sudo npm install -g asar

1.3.2 解压app.asar

cd squashfs-root/resources/
asar extract app.asar app

1.3.3 修改源码

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

找到函数 checkLicenseValidity()

checkLicenseValidity () {
    this.validate().then(() => {
      setStatus(this, true)
    }, () => {
      // 原来的代码:
      // setStatus(this, false) 
      // UnregisteredDialog.showDialog()
      //修改后的代码
      setStatus(this, true)
    })
  }

1.3.4 替换 app.asar

记得回到squashfs-root/resources 目录

// 重新打包替换原来的app.asar
asar pack app app.asar

现在直接运行squashfs-root目录下的 starUML 也是可以的。
但是我们追求完美一点,将修改后的源码重新打包一下

二. AppImageKit 打包

2.1 下载AppImageKit

为了方便,我们直接使用release版本的AppImageKit

cd ~/Programe/AppImageKit
wget "https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage"
chmod a+x appimagetool-x86_64.AppImage

2.2 重新打包

cd ~

Program/AppImageKit/./appimagetool-x86_64.AppImage Program/starUML/squashfs-root 

完美~

附上破解后的startUML3.1.0
PS.CSDN上传资源太慢,直接用百度网盘好了:

链接: https://pan.baidu.com/s/1qoEoP9ZNTD72aiqblKOKEQ
提取码: rjkk

评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值