1,在“http://staruml.io/”下载;
2,sudo dpkg -i StarUML-v2.5.0-64-bit.deb安装。
3,注册 。在help中输入。name:maxiongying 注册码:54rczxrcxszeww
或者这样注册,没有试过。
修改 LicenseManagerDomain.js
function validate(PK, name, product, licenseKey) {
var pk, decrypted;
//添加注释的这块代码
/*
return {
name: "0xcb",
product: "StarUML",
licenseType: "vip",
quantity: "bbs.chinapyg.com",
licenseKey: "later equals never!"
};
*/ try {
pk = new NodeRSA(PK);
decrypted = pk.decrypt(licenseKey, ‘utf8‘);
} catch (err) {
return false;
}
var terms = decrypted.trim().split("\n");
if (terms[0] === name && terms[1] === product) {
return {
name: name,
product: product,
licenseType: terms[2],
quantity: terms[3],
licenseKey: licenseKey
};
} else {
return false;
}
}
(1)查找LicenseManagerDomain.js位置
命令:
dpkg -S staruml | grep LicenseManagerDomain.js
然后编辑文件
sudo gedit /opt/staruml/www/license/node/LicenseManagerDomain.js