Note: This is the guide for v 2.x.
For the v3, please follow this url: https://blog.csdn.net/sam_shan/article/details/80585240 Thanks @liy-cn for contributing.
Download: StarUML.io
Source: jorgeancal
After installing StartUML successfully, modify LicenseManagerDomain.js
as follow:
/**
* File name: LicenseManagerDomain.js
* Mac OS: /Applications/StarUML.app/Contents/www/license/node/
* Linux: /opt/staruml/www/license/node/
*/
(function () {
"use strict";
var NodeRSA = require('node-rsa');
function validate(PK, name, product, licenseKey) {
return{
name: "sontd",
product: "StarUML",
licenseType: "vip",
quantity: "unlimited",
licenseKey: "no, thanks!"
};
}
function init(domainManager) {
if (!domainManager.hasDomain("LicenseManager")) {
domainManager.registerDomain("LicenseManager", {major: 0, minor: 1});
}
domainManager.registerCommand(
"LicenseManager", // domain name
"validate", // command name
validate, // command handler function
false, // this command is synchronous in Node ("false" means synchronous")
"Validate License",
[
{
name: "PK",
type: "string",
description: "PK"
},
{
name: "name",
type: "string",
description: "name of license owner"
},
{
name: "product",
type: "string",
description: "product name"
},
{
name: "licenseKey",
type: "string",
description: "license key"
}
],
[
{
name: "result", // return values
type: "object",
description: "result"
}
]
);
}
exports.init = init;
}());
Now, open it and go to Help > Enter License
and you have to write the name and the licence key which you have written on LicenseManagerDomain.js
. In this example would be the next:
name: "sontd"
License Key: "no, thanks!"
Enjoy it!
for windows users and latest versions:
install an app from official website.
install "asar" in node: "npm i asar -g"
go to "ProgramFiles/StarUML/resources" and run "asar e app.asar app" (i was running all commands via bash from git package, not via powershell or cmd, but u can try).
go to "ProgramFiles/StarUML/resources/app/src/engine and open "license-manager.js" file.
edit code as shown on screenshot and save changes
run "asar pack app app.asar" (at "ProgramFiles/StarUML/resources")
remove src files (app folder) (at "ProgramFiles/StarUML/resources")
enjoy! (run an .exe file in "ProgramFiles/StarUML" or desktop shortcut)
(didnt get any user rights issues on my os. i hope u can fix them urself)