Instantly share code, notes, and snippets.

Embed
What would you like to do?
Get full version of StarUML

StarUML

Download: StarUML.io

Crack

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!

@sahanpasindu

This comment has been minimized.

Show comment
Hide comment
@sahanpasindu

sahanpasindu Nov 14, 2017

cannot save it, show me access deny or something

sahanpasindu commented Nov 14, 2017

cannot save it, show me access deny or something

@Sylvaindce

This comment has been minimized.

Show comment
Hide comment
@Sylvaindce

Sylvaindce Nov 14, 2017

You don't have superuser rights @sahanpasindu, try with sudo.

BTW, thanks for the trick!

Sylvaindce commented Nov 14, 2017

You don't have superuser rights @sahanpasindu, try with sudo.

BTW, thanks for the trick!

@trandaison

This comment has been minimized.

Show comment
Hide comment
@trandaison

trandaison Nov 21, 2017

@sahanpasindu Did you try with sudo?

sudo vi /opt/staruml/www/license/node/LicenseManagerDomain.js
Owner

trandaison commented Nov 21, 2017

@sahanpasindu Did you try with sudo?

sudo vi /opt/staruml/www/license/node/LicenseManagerDomain.js
@ocars

This comment has been minimized.

Show comment
Hide comment
@ocars

ocars Nov 25, 2017

Perfect!!!

ocars commented Nov 25, 2017

Perfect!!!

@havefun77612

This comment has been minimized.

Show comment
Hide comment
@havefun77612

havefun77612 Dec 1, 2017

for those how use windows we can't do sudo -i

any advice?

havefun77612 commented Dec 1, 2017

for those how use windows we can't do sudo -i

any advice?

@sheshubittu

This comment has been minimized.

Show comment
Hide comment
@sheshubittu

sheshubittu Dec 4, 2017

how to modify staruml .can u please explain full process.which tol to be used.

sheshubittu commented Dec 4, 2017

how to modify staruml .can u please explain full process.which tol to be used.

@Artemas-Muzanenhamo

This comment has been minimized.

Show comment
Hide comment
@Artemas-Muzanenhamo

Artemas-Muzanenhamo Dec 13, 2017

For windows users you should run your terminal as Administrator.

Artemas-Muzanenhamo commented Dec 13, 2017

For windows users you should run your terminal as Administrator.

@Artemas-Muzanenhamo

This comment has been minimized.

Show comment
Hide comment
@Artemas-Muzanenhamo

Artemas-Muzanenhamo Dec 13, 2017

After downloading and adding StarUML to your Applications folder you can do the following:

  1. sudo cp /Applications/StarUML.app/Contents/www/license/node/LicenseManagerDomain.js LicenseManagerDomain.js.backup
  2. sudo vim /Applications/StarUML.app/Contents/www/license/node/LicenseManagerDomain.js.
  3. If prompted to enter password then enter password and then type dG to delete everything.
  4. Hit esc and then copy the whole function() above on this page and paste it by typing p in your terminal.
  5. Type i to amend changes in the terminal and change the name in the function() validate to match yours if you want.
  6. Type esc and then type wq and hit Enter.
  7. Open StarUML and go to Help > Enter License.
  8. Enter the name and the License Key in the LicenseManagerDomain.js.

That should be it ๐Ÿ˜

Artemas-Muzanenhamo commented Dec 13, 2017

After downloading and adding StarUML to your Applications folder you can do the following:

  1. sudo cp /Applications/StarUML.app/Contents/www/license/node/LicenseManagerDomain.js LicenseManagerDomain.js.backup
  2. sudo vim /Applications/StarUML.app/Contents/www/license/node/LicenseManagerDomain.js.
  3. If prompted to enter password then enter password and then type dG to delete everything.
  4. Hit esc and then copy the whole function() above on this page and paste it by typing p in your terminal.
  5. Type i to amend changes in the terminal and change the name in the function() validate to match yours if you want.
  6. Type esc and then type wq and hit Enter.
  7. Open StarUML and go to Help > Enter License.
  8. Enter the name and the License Key in the LicenseManagerDomain.js.

That should be it ๐Ÿ˜

@freedoms456

This comment has been minimized.

Show comment
Hide comment
@freedoms456

freedoms456 Dec 14, 2017

For Windows user that cant directly save because "access denied", you can aslo try this:
1.Make new file on notepad,copy that source then save as LicenseManagerDomain.js in another location (ex desktop)
2.Then just copy LicenseManagerDomain.js in desktop and replace another one in app files
Sry for bad English

freedoms456 commented Dec 14, 2017

For Windows user that cant directly save because "access denied", you can aslo try this:
1.Make new file on notepad,copy that source then save as LicenseManagerDomain.js in another location (ex desktop)
2.Then just copy LicenseManagerDomain.js in desktop and replace another one in app files
Sry for bad English

@MarkDeLoko

This comment has been minimized.

Show comment
Hide comment
@MarkDeLoko

MarkDeLoko Dec 25, 2017

hello, how generate c++ code from class diagram?
thank you)

MarkDeLoko commented Dec 25, 2017

hello, how generate c++ code from class diagram?
thank you)

@Devouzer

This comment has been minimized.

Show comment
Hide comment
@Devouzer

Devouzer Feb 1, 2018

;) thanks :3

Devouzer commented Feb 1, 2018

;) thanks :3

@pvl97

This comment has been minimized.

Show comment
Hide comment
@pvl97

pvl97 Feb 2, 2018

Thanks you very much ๐Ÿ’ฏ

pvl97 commented Feb 2, 2018

Thanks you very much ๐Ÿ’ฏ

@shine07

This comment has been minimized.

Show comment
Hide comment
@shine07

shine07 Feb 20, 2018

thanks :)

shine07 commented Feb 20, 2018

thanks :)

@jutosan

This comment has been minimized.

Show comment
Hide comment
@jutosan

jutosan Feb 20, 2018

works well on windows, thanks

jutosan commented Feb 20, 2018

works well on windows, thanks

@resatugurulu

This comment has been minimized.

Show comment
Hide comment
@resatugurulu

resatugurulu commented Feb 22, 2018

image
@Artemas-Muzanenhamo doesn't work on mac os

@vanmart

This comment has been minimized.

Show comment
Hide comment
@vanmart

vanmart Feb 23, 2018

Thanks a lot!

vanmart commented Feb 23, 2018

Thanks a lot!

@hdwong

This comment has been minimized.

Show comment
Hide comment
@hdwong

hdwong Feb 24, 2018

Cool! Thanks.

hdwong commented Feb 24, 2018

Cool! Thanks.

@maulinniam

This comment has been minimized.

Show comment
Hide comment
@maulinniam

maulinniam Feb 28, 2018

Wooow... thanks a lot!

maulinniam commented Feb 28, 2018

Wooow... thanks a lot!

@jdenbe

This comment has been minimized.

Show comment
Hide comment
@jdenbe

jdenbe Mar 2, 2018

For those with a Windows PC
Copy the file to the Desktop, modify it, paste it back in the folder OR use Visual Studio Code, when saving it will warn you that it can't save without administrative rights, click on it and it should be good to go!

jdenbe commented Mar 2, 2018

For those with a Windows PC
Copy the file to the Desktop, modify it, paste it back in the folder OR use Visual Studio Code, when saving it will warn you that it can't save without administrative rights, click on it and it should be good to go!

@stefanfredik

This comment has been minimized.

Show comment
Hide comment
@stefanfredik

stefanfredik Mar 7, 2018

thank you very much. your code is worked!

stefanfredik commented Mar 7, 2018

thank you very much. your code is worked!

@noobping

This comment has been minimized.

Show comment
Hide comment
@noobping

noobping Mar 7, 2018

Splendid!

noobping commented Mar 7, 2018

Splendid!

@jazb18

This comment has been minimized.

Show comment
Hide comment
@jazb18

jazb18 Mar 11, 2018

Thank you a lot.

jazb18 commented Mar 11, 2018

Thank you a lot.

@dago1989

This comment has been minimized.

Show comment
Hide comment
@dago1989

dago1989 Mar 13, 2018

tks!! im using windows ;)

dago1989 commented Mar 13, 2018

tks!! im using windows ;)

@EzequielSilvaa

This comment has been minimized.

Show comment
Hide comment
@EzequielSilvaa

EzequielSilvaa Mar 20, 2018

Thanks!! works perfectly!

EzequielSilvaa commented Mar 20, 2018

Thanks!! works perfectly!

@avielas

This comment has been minimized.

Show comment
Hide comment
@avielas

avielas Mar 20, 2018

very good concat ! ! thanks!

avielas commented Mar 20, 2018

very good concat ! ! thanks!

@ahmadhashim

This comment has been minimized.

Show comment
Hide comment
@ahmadhashim

ahmadhashim Mar 21, 2018

Thanks working perfectly.

ahmadhashim commented Mar 21, 2018

Thanks working perfectly.

@ed-edau

This comment has been minimized.

Show comment
Hide comment
@ed-edau

ed-edau Mar 22, 2018

Awesome, thank you!

ed-edau commented Mar 22, 2018

Awesome, thank you!

@baboijr

This comment has been minimized.

Show comment
Hide comment
@baboijr

baboijr Mar 24, 2018

Works smoothly on MacOS X High Sierra! Thank you so much!

baboijr commented Mar 24, 2018

Works smoothly on MacOS X High Sierra! Thank you so much!

@Serrulien

This comment has been minimized.

Show comment
Hide comment
@Serrulien

Serrulien Mar 27, 2018

Thanks.
Don't forget to buy a licence when you can.

Serrulien commented Mar 27, 2018

Thanks.
Don't forget to buy a licence when you can.

@nguyenvanquang98

This comment has been minimized.

Show comment
Hide comment
@nguyenvanquang98

nguyenvanquang98 commented Mar 28, 2018

thanks you.

@KimYaKi

This comment has been minimized.

Show comment
Hide comment
@KimYaKi

KimYaKi Apr 10, 2018

thank you.
good *100!

KimYaKi commented Apr 10, 2018

thank you.
good *100!

@casyazmon

This comment has been minimized.

Show comment
Hide comment
@casyazmon

casyazmon Apr 12, 2018

Thanks...
Very Cool hack!!

casyazmon commented Apr 12, 2018

Thanks...
Very Cool hack!!

@NicolaPez

This comment has been minimized.

Show comment
Hide comment
@NicolaPez

NicolaPez commented Apr 13, 2018

thanks

@goldenbijoy

This comment has been minimized.

Show comment
Hide comment
@goldenbijoy

goldenbijoy Apr 14, 2018

Nice one.. good job

goldenbijoy commented Apr 14, 2018

Nice one.. good job

@alallk

This comment has been minimized.

Show comment
Hide comment
@alallk

alallk Apr 15, 2018

Thanks...

alallk commented Apr 15, 2018

Thanks...

@GUEYEDSMF

This comment has been minimized.

Show comment
Hide comment
@GUEYEDSMF

GUEYEDSMF commented Apr 16, 2018

Thanks

@edgardo001

This comment has been minimized.

Show comment
Hide comment
@edgardo001

edgardo001 commented Apr 17, 2018

Thanks

@gathanasopoulos

This comment has been minimized.

Show comment
Hide comment
@gathanasopoulos

gathanasopoulos commented Apr 27, 2018

thanks !!

@andryawmti

This comment has been minimized.

Show comment
Hide comment
@andryawmti

andryawmti May 2, 2018

bloody hell, it is working perfectly!. Thank you.

andryawmti commented May 2, 2018

bloody hell, it is working perfectly!. Thank you.

@aribrilliantsyah

This comment has been minimized.

Show comment
Hide comment
@aribrilliantsyah

aribrilliantsyah May 7, 2018

Working !!! :v thank you .

aribrilliantsyah commented May 7, 2018

Working !!! :v thank you .

@dhayzon

This comment has been minimized.

Show comment
Hide comment
@dhayzon

dhayzon May 8, 2018

with windows run as administrator your prefered editor, after, open your file \StarUML\www\license\node LicenseManagerDomain.js
edit and save.

dhayzon commented May 8, 2018

with windows run as administrator your prefered editor, after, open your file \StarUML\www\license\node LicenseManagerDomain.js
edit and save.

@zer0Logic

This comment has been minimized.

Show comment
Hide comment
@zer0Logic

zer0Logic May 19, 2018

it's working!!! thank you so much!!!

zer0Logic commented May 19, 2018

it's working!!! thank you so much!!!

@RedhaCheriet

This comment has been minimized.

Show comment
Hide comment
@RedhaCheriet

RedhaCheriet May 21, 2018

perfect thnks a lot
2018-05-21 at 11-28-37

RedhaCheriet commented May 21, 2018

perfect thnks a lot
2018-05-21 at 11-28-37

@janatii

This comment has been minimized.

Show comment
Hide comment
@janatii

janatii May 24, 2018

platform : windows 10
version : 2.B.1
working perfectly!!
thank's a lot

janatii commented May 24, 2018

platform : windows 10
version : 2.B.1
working perfectly!!
thank's a lot

@jorgeancal

This comment has been minimized.

Show comment
Hide comment
@jorgeancal

jorgeancal May 26, 2018

mmm...I'm going to tell you something which I've told other people. why did you copy and paste? and the post isn't there anymore, now It's here https://jorgeancal.com/installations/crack-staruml/

jorgeancal commented May 26, 2018

mmm...I'm going to tell you something which I've told other people. why did you copy and paste? and the post isn't there anymore, now It's here https://jorgeancal.com/installations/crack-staruml/

@amankriet

This comment has been minimized.

Show comment
Hide comment
@amankriet

amankriet May 30, 2018

Well! PS: I guess you need to disconnect your internet connection first!
Thanks a lot for the help! ๐Ÿ‘

amankriet commented May 30, 2018

Well! PS: I guess you need to disconnect your internet connection first!
Thanks a lot for the help! ๐Ÿ‘

@apissotte

This comment has been minimized.

Show comment
Hide comment
@apissotte

apissotte Jun 3, 2018

It doesn't work with StarURM version 3.0

apissotte commented Jun 3, 2018

It doesn't work with StarURM version 3.0

@nhanledev

This comment has been minimized.

Show comment
Hide comment
@nhanledev

nhanledev Jun 4, 2018

Because in the version v3.0, this method do not work, I will share the license of the previous version 2.0 just in case anyone need to license the app but do not know how to modify the file above.

IT ONLY WORKS IN VERSION 2

Name: Twitter Inc.
License: drE83kXcl6W6r81KHk9UOxZwPURnaHGOvhSMyXglRur/SlJUgHUmfwEzceh9tiNOuEv5YjDyPiqPw3YJztMRSXY68cJLpaHuj6q0akQyUlfNmCtJ2Am/aYjrfXxp1s6+uAklRkO+VZ+uVpuVLPdabr21oC+pPuQBlC+8jaVRGg0=

nhanledev commented Jun 4, 2018

Because in the version v3.0, this method do not work, I will share the license of the previous version 2.0 just in case anyone need to license the app but do not know how to modify the file above.

IT ONLY WORKS IN VERSION 2

Name: Twitter Inc.
License: drE83kXcl6W6r81KHk9UOxZwPURnaHGOvhSMyXglRur/SlJUgHUmfwEzceh9tiNOuEv5YjDyPiqPw3YJztMRSXY68cJLpaHuj6q0akQyUlfNmCtJ2Am/aYjrfXxp1s6+uAklRkO+VZ+uVpuVLPdabr21oC+pPuQBlC+8jaVRGg0=
@layalii

This comment has been minimized.

Show comment
Hide comment
@layalii

layalii Jun 10, 2018

When I download the StarUML i get just the .exe file and not the whole directory so i can't find LicenseManagerDomain.js what should i do ?? any suggestion please !!

layalii commented Jun 10, 2018

When I download the StarUML i get just the .exe file and not the whole directory so i can't find LicenseManagerDomain.js what should i do ?? any suggestion please !!

@liy-cn

This comment has been minimized.

Show comment
Hide comment

liy-cn commented Jun 14, 2018

@tatecapone

This comment has been minimized.

Show comment
Hide comment
@tatecapone

tatecapone Jun 14, 2018

It is not understood very well, but it is easy and it WORKS !, any problem consult me, here ...

tatecapone commented Jun 14, 2018

It is not understood very well, but it is easy and it WORKS !, any problem consult me, here ...

@ojdgaf

This comment has been minimized.

Show comment
Hide comment

ojdgaf commented Jun 15, 2018

@AEK-BKF

This comment has been minimized.

Show comment
Hide comment
@AEK-BKF

AEK-BKF Jun 28, 2018

@liy-cn @ojdgaf :
It doesn't work for me ! please could you show us your steps ?

AEK-BKF commented Jun 28, 2018

@liy-cn @ojdgaf :
It doesn't work for me ! please could you show us your steps ?

@Porske

This comment has been minimized.

Show comment
Hide comment
@Porske

Porske Jul 19, 2018

V.3 for Linux? I cant't find the app.asar file...

Porske commented Jul 19, 2018

V.3 for Linux? I cant't find the app.asar file...

@trongtoanse

This comment has been minimized.

Show comment
Hide comment
@trongtoanse

trongtoanse Jul 24, 2018

@Porske good question watting the answer :)

trongtoanse commented Jul 24, 2018

@Porske good question watting the answer :)

@cakecakecake

This comment has been minimized.

Show comment
Hide comment
@cakecakecake

cakecakecake Jul 31, 2018

@Porske, @trongtoanse:
On Linux you can execute the AppImage with the flag --appimage-extract.

Then you will find app.asar in the "resources" directory. :)

Edit:
Apparently I had to repackage the extracted appimage to run the modified StarUML source.
Have a look at the following for how to do that: https://github.com/AppImage/AppImageKit#appimagetool-usage

cakecakecake commented Jul 31, 2018

@Porske, @trongtoanse:
On Linux you can execute the AppImage with the flag --appimage-extract.

Then you will find app.asar in the "resources" directory. :)

Edit:
Apparently I had to repackage the extracted appimage to run the modified StarUML source.
Have a look at the following for how to do that: https://github.com/AppImage/AppImageKit#appimagetool-usage

@arkn98

This comment has been minimized.

Show comment
Hide comment
@arkn98

arkn98 Aug 8, 2018

How do you repackage @cakecakecake? According to the docs, I need to have .AppDir in place, which I don't have. I'm running Ubuntu and there is this only folder called squashfs-root. I modified my app.asar in the resources directory.

arkn98 commented Aug 8, 2018

How do you repackage @cakecakecake? According to the docs, I need to have .AppDir in place, which I don't have. I'm running Ubuntu and there is this only folder called squashfs-root. I modified my app.asar in the resources directory.

@kharek

This comment has been minimized.

Show comment
Hide comment
@kharek

kharek Aug 9, 2018

@arkn98 here are the steps - based on https://gist.github.com/jjvillavicencio/4e3615a8219bb1a17c81c4541c6c317d :
sudo apt install npm
sudo npm install -g asar
./StarUML-3.0.1-x86_64.AppImage --appimage-extract
cd squashfs-root/app/resources/
asar extract app.asar app
#edit the file as per the instructions above
rm -rf app/*
rmdir app
cd ../../../
./appimagetool-x86_64.AppImage squashfs-root/
./StarUML-x86_64.AppImage

#enjoy - but consider paying for the license, we are all developers and its not that expensive :)

kharek commented Aug 9, 2018

@arkn98 here are the steps - based on https://gist.github.com/jjvillavicencio/4e3615a8219bb1a17c81c4541c6c317d :
sudo apt install npm
sudo npm install -g asar
./StarUML-3.0.1-x86_64.AppImage --appimage-extract
cd squashfs-root/app/resources/
asar extract app.asar app
#edit the file as per the instructions above
rm -rf app/*
rmdir app
cd ../../../
./appimagetool-x86_64.AppImage squashfs-root/
./StarUML-x86_64.AppImage

#enjoy - but consider paying for the license, we are all developers and its not that expensive :)

@danteay

This comment has been minimized.

Show comment
Hide comment
@danteay

danteay Aug 22, 2018

Tanks @kharek, it works for me on linux

danteay commented Aug 22, 2018

Tanks @kharek, it works for me on linux

@victorpenna

This comment has been minimized.

Show comment
Hide comment
@victorpenna

victorpenna Aug 24, 2018

@kharek, every time I try to extract the apimage from staruml, it only extracts the folder squashfs-root, without any other program data. Am I missing a step?

victorpenna commented Aug 24, 2018

@kharek, every time I try to extract the apimage from staruml, it only extracts the folder squashfs-root, without any other program data. Am I missing a step?

@kharek

This comment has been minimized.

Show comment
Hide comment
@kharek

kharek Aug 31, 2018

@victorpenna did you chmod +x the file (chmod +x StarUML-3.0.1-x86_64.AppImage)? are you extracting in on linux on a ext3/4 partition? Fat partitions some times are a bit of a hassle for Linux applications. I tested that on a ubuntu 18.04, it might vary slightly on other distributions.

kharek commented Aug 31, 2018

@victorpenna did you chmod +x the file (chmod +x StarUML-3.0.1-x86_64.AppImage)? are you extracting in on linux on a ext3/4 partition? Fat partitions some times are a bit of a hassle for Linux applications. I tested that on a ubuntu 18.04, it might vary slightly on other distributions.

@Daniel3590

This comment has been minimized.

Show comment
Hide comment
@Daniel3590

Daniel3590 Sep 21, 2018

It doesn't work with the 3.0 version.
You can download the old version here, just scroll down until you find the 2.8.1 versione:
http://staruml.io/download
After you install this version, just apply what the original post tells you to do.

Daniel3590 commented Sep 21, 2018

It doesn't work with the 3.0 version.
You can download the old version here, just scroll down until you find the 2.8.1 versione:
http://staruml.io/download
After you install this version, just apply what the original post tells you to do.

@punkrocker178

This comment has been minimized.

Show comment
Hide comment
@punkrocker178

punkrocker178 Sep 29, 2018

It doesn't work with the 3.0 version.
You can download the old version here, just scroll down until you find the 2.8.1 versione:
http://staruml.io/download
After you install this version, just apply what the original post tells you to do.

Thanks,this works

punkrocker178 commented Sep 29, 2018

It doesn't work with the 3.0 version.
You can download the old version here, just scroll down until you find the 2.8.1 versione:
http://staruml.io/download
After you install this version, just apply what the original post tells you to do.

Thanks,this works

@arkn98

This comment has been minimized.

Show comment
Hide comment
@arkn98

arkn98 Oct 3, 2018

@kharek Many thanks! Your solution worked. But there are minor tweaks for the latest version (StarUML-3.0.2-x86_64.AppImage).

Here's a complete guide (for newbies) that worked for me (Ubuntu 18.04.1 LTS) (credits to @kharek for his answer here)

  1. Download the latest StarUML .AppImage from the their website staruml.io
  2. Then make the downloaded .AppImage executable by running sudo chmod +x StarUML-3.0.2-x86_64.AppImage
  3. Install npm using apt-get sudo apt install npm
  4. Install asar npm package using sudo npm install -g asar
  5. If you're using npm for the first time, then you can't directly call asar from the terminal. You need to update your $PATH variable to include the .npm-global directory to directly call globally installed npm packages. This can be done by adding export PATH="/home/$USER/.npm-global/bin:$PATH" (may differ based on your config; refer to this SO answer) at the end of your .bashrc. Then logout and login again.
  6. Then extract .AppImage file using ./StarUML-3.0.2-x86_64.AppImage --appimage-extract
  7. cd squashfs-root/resources/
  8. asar extract app.asar app
  9. cd app/src/engine
  10. Edit the license-manager.js file. Make the following changes:
//... existing code
checkLicenseValidity () {
    this.validate().then(() => {
      setStatus(this, true)
    }, () => {
      //setStatus(this,false)  <-- comment this line
      setStatus(this, true) //<-- add this line
      //UnregisteredDialog.showDialog() <-- comment this line
    })
  }
//... rest of the code
  1. cd ../../../
  2. Pack the updated .AppImage using asar pack app app.asar
  3. Remove the previously extracted app directory by running rm -rf app/* followed by rmdir app
  4. cd ../../
  5. Download the appimagetool from here to your current directory
  6. Run this ./appimagetool-x86_64.AppImage squashfs-root/ to generate the new .AppImage file
  7. Run the new .AppImage file by running ./StarUML-x86_64.AppImage

arkn98 commented Oct 3, 2018

@kharek Many thanks! Your solution worked. But there are minor tweaks for the latest version (StarUML-3.0.2-x86_64.AppImage).

Here's a complete guide (for newbies) that worked for me (Ubuntu 18.04.1 LTS) (credits to @kharek for his answer here)

  1. Download the latest StarUML .AppImage from the their website staruml.io
  2. Then make the downloaded .AppImage executable by running sudo chmod +x StarUML-3.0.2-x86_64.AppImage
  3. Install npm using apt-get sudo apt install npm
  4. Install asar npm package using sudo npm install -g asar
  5. If you're using npm for the first time, then you can't directly call asar from the terminal. You need to update your $PATH variable to include the .npm-global directory to directly call globally installed npm packages. This can be done by adding export PATH="/home/$USER/.npm-global/bin:$PATH" (may differ based on your config; refer to this SO answer) at the end of your .bashrc. Then logout and login again.
  6. Then extract .AppImage file using ./StarUML-3.0.2-x86_64.AppImage --appimage-extract
  7. cd squashfs-root/resources/
  8. asar extract app.asar app
  9. cd app/src/engine
  10. Edit the license-manager.js file. Make the following changes:
//... existing code
checkLicenseValidity () {
    this.validate().then(() => {
      setStatus(this, true)
    }, () => {
      //setStatus(this,false)  <-- comment this line
      setStatus(this, true) //<-- add this line
      //UnregisteredDialog.showDialog() <-- comment this line
    })
  }
//... rest of the code
  1. cd ../../../
  2. Pack the updated .AppImage using asar pack app app.asar
  3. Remove the previously extracted app directory by running rm -rf app/* followed by rmdir app
  4. cd ../../
  5. Download the appimagetool from here to your current directory
  6. Run this ./appimagetool-x86_64.AppImage squashfs-root/ to generate the new .AppImage file
  7. Run the new .AppImage file by running ./StarUML-x86_64.AppImage
@Alberghini

This comment has been minimized.

Show comment
Hide comment
@Alberghini

Alberghini Oct 4, 2018

Working on starUML version 2.8, windows 10. Congrats!!

Alberghini commented Oct 4, 2018

Working on starUML version 2.8, windows 10. Congrats!!

@Juansero29

This comment has been minimized.

Show comment
Hide comment
@Juansero29

Juansero29 Oct 4, 2018

@kharek Many thanks! Your solution worked. But there are minor tweaks for the latest version (StarUML-3.0.2-x86_64.AppImage).

Here's a complete guide (for newbies) that worked for me (Ubuntu 18.04.1 LTS) (credits to @kharek for his answer here)

  1. Download the latest StarUML .AppImage from the their website staruml.io
  2. Then make the downloaded .AppImage executable by running sudo chmod +x StarUML-3.0.2-x86_64.AppImage
  3. Install npm using apt-get sudo apt install npm
  4. Install asar npm package using sudo npm install -g asar
  5. If you're using npm for the first time, then you can't directly call asar from the terminal. You need to update your $PATH variable to include the .npm-global directory to directly call globally installed npm packages. This can be done by adding export PATH="/home/$USER/.npm-global/bin:$PATH" (may differ based on your config; refer to this SO answer) at the end of your .bashrc. Then logout and login again.
  6. Then extract .AppImage file using ./StarUML-3.0.2-x86_64.AppImage --appimage-extract
  7. cd squashfs-root/resources/
  8. asar extract app.asar app
  9. cd app/src/engine
  10. Edit the license-manager.js file. Make the following changes:
//... existing code
checkLicenseValidity () {
    this.validate().then(() => {
      setStatus(this, true)
    }, () => {
      //setStatus(this,false)  <-- comment this line
      setStatus(this, true) //<-- add this line
      //UnregisteredDialog.showDialog() <-- comment this line
    })
  }
//... rest of the code
  1. cd ../../../
  2. Pack the updated .AppImage using asar pack app app.asar
  3. Remove the previously extracted app directory by running rm -rf app/* followed by rmdir app
  4. cd ../../
  5. Download the appimagetool from here to your current directory
  6. Run this ./appimagetool-x86_64.AppImage squashfs-root/ to generate the new .AppImage file
  7. Run the new .AppImage file by running ./StarUML-x86_64.AppImage

Do you have any idea on how to do this on Windows?

Juansero29 commented Oct 4, 2018

@kharek Many thanks! Your solution worked. But there are minor tweaks for the latest version (StarUML-3.0.2-x86_64.AppImage).

Here's a complete guide (for newbies) that worked for me (Ubuntu 18.04.1 LTS) (credits to @kharek for his answer here)

  1. Download the latest StarUML .AppImage from the their website staruml.io
  2. Then make the downloaded .AppImage executable by running sudo chmod +x StarUML-3.0.2-x86_64.AppImage
  3. Install npm using apt-get sudo apt install npm
  4. Install asar npm package using sudo npm install -g asar
  5. If you're using npm for the first time, then you can't directly call asar from the terminal. You need to update your $PATH variable to include the .npm-global directory to directly call globally installed npm packages. This can be done by adding export PATH="/home/$USER/.npm-global/bin:$PATH" (may differ based on your config; refer to this SO answer) at the end of your .bashrc. Then logout and login again.
  6. Then extract .AppImage file using ./StarUML-3.0.2-x86_64.AppImage --appimage-extract
  7. cd squashfs-root/resources/
  8. asar extract app.asar app
  9. cd app/src/engine
  10. Edit the license-manager.js file. Make the following changes:
//... existing code
checkLicenseValidity () {
    this.validate().then(() => {
      setStatus(this, true)
    }, () => {
      //setStatus(this,false)  <-- comment this line
      setStatus(this, true) //<-- add this line
      //UnregisteredDialog.showDialog() <-- comment this line
    })
  }
//... rest of the code
  1. cd ../../../
  2. Pack the updated .AppImage using asar pack app app.asar
  3. Remove the previously extracted app directory by running rm -rf app/* followed by rmdir app
  4. cd ../../
  5. Download the appimagetool from here to your current directory
  6. Run this ./appimagetool-x86_64.AppImage squashfs-root/ to generate the new .AppImage file
  7. Run the new .AppImage file by running ./StarUML-x86_64.AppImage

Do you have any idea on how to do this on Windows?

@arviantodwi

This comment has been minimized.

Show comment
Hide comment
@arviantodwi

arviantodwi Oct 6, 2018

This is how to force StarUML 3 for not validate the license in MacOS.

  1. Download and update your previous StarUML
  2. After successfully update, create new directory on your Desktop and open it by Finder. Assume your new directory name is New Asar
  3. Open new Finder window and go to Application. Find your StarUML app, opt+click to show context menu and choose Show Package Contents.
  4. After StarUML contents appears, navigate to Contents/Resources and find the app.asar file. Copy it to your New Asar directory on Desktop
  5. Open your preferable terminal app. Install asar package if you haven't done it before by npm i -g asar. I assume you have installed NPM before and if not, please google how to install it.
  6. After asar successfully installed, still in your terminal, type cd ~/Desktop/New Asar
  7. asar extract app.asar app
  8. In New Asar Finder window, there will be an app directory now. Navigate to app/src/engine and you will find license-manager.js. Edit it in your preferable text editor eg. Atom etc., and make this changes:
// ...
checkLicenseValidity () {
    this.validate().then(() => {
        setStatus(this, true)
    }, () => {
        // setStatus(this,false) <โ€” comment this line
        // UnregisteredDialog.showDialog() <โ€” comment this line
        setStatus(this, true) // <โ€” add this line
    })
  }
// ...
  1. Save it and back to your New Asar directory, then pack the modified asar by typing this command in terminal: asar pack app app.asar
  2. Copy the new app.asar back into your StarUML contents. See step 3 & 4 if you forgot where to place the asar back.
  3. Open StarUML and done. Your StarUML has a valid license now.

arviantodwi commented Oct 6, 2018

This is how to force StarUML 3 for not validate the license in MacOS.

  1. Download and update your previous StarUML
  2. After successfully update, create new directory on your Desktop and open it by Finder. Assume your new directory name is New Asar
  3. Open new Finder window and go to Application. Find your StarUML app, opt+click to show context menu and choose Show Package Contents.
  4. After StarUML contents appears, navigate to Contents/Resources and find the app.asar file. Copy it to your New Asar directory on Desktop
  5. Open your preferable terminal app. Install asar package if you haven't done it before by npm i -g asar. I assume you have installed NPM before and if not, please google how to install it.
  6. After asar successfully installed, still in your terminal, type cd ~/Desktop/New Asar
  7. asar extract app.asar app
  8. In New Asar Finder window, there will be an app directory now. Navigate to app/src/engine and you will find license-manager.js. Edit it in your preferable text editor eg. Atom etc., and make this changes:
// ...
checkLicenseValidity () {
    this.validate().then(() => {
        setStatus(this, true)
    }, () => {
        // setStatus(this,false) <โ€” comment this line
        // UnregisteredDialog.showDialog() <โ€” comment this line
        setStatus(this, true) // <โ€” add this line
    })
  }
// ...
  1. Save it and back to your New Asar directory, then pack the modified asar by typing this command in terminal: asar pack app app.asar
  2. Copy the new app.asar back into your StarUML contents. See step 3 & 4 if you forgot where to place the asar back.
  3. Open StarUML and done. Your StarUML has a valid license now.
@arkn98

This comment has been minimized.

Show comment
Hide comment
@arkn98

arkn98 Oct 10, 2018

@kharek Many thanks! Your solution worked. But there are minor tweaks for the latest version (StarUML-3.0.2-x86_64.AppImage).
Here's a complete guide (for newbies) that worked for me (Ubuntu 18.04.1 LTS) (credits to @kharek for his answer here)

  1. Download the latest StarUML .AppImage from the their website staruml.io
  2. Then make the downloaded .AppImage executable by running sudo chmod +x StarUML-3.0.2-x86_64.AppImage
  3. Install npm using apt-get sudo apt install npm
  4. Install asar npm package using sudo npm install -g asar
  5. If you're using npm for the first time, then you can't directly call asar from the terminal. You need to update your $PATH variable to include the .npm-global directory to directly call globally installed npm packages. This can be done by adding export PATH="/home/$USER/.npm-global/bin:$PATH" (may differ based on your config; refer to this SO answer) at the end of your .bashrc. Then logout and login again.
  6. Then extract .AppImage file using ./StarUML-3.0.2-x86_64.AppImage --appimage-extract
  7. cd squashfs-root/resources/
  8. asar extract app.asar app
  9. cd app/src/engine
  10. Edit the license-manager.js file. Make the following changes:
//... existing code
checkLicenseValidity () {
    this.validate().then(() => {
      setStatus(this, true)
    }, () => {
      //setStatus(this,false)  <-- comment this line
      setStatus(this, true) //<-- add this line
      //UnregisteredDialog.showDialog() <-- comment this line
    })
  }
//... rest of the code
  1. cd ../../../
  2. Pack the updated .AppImage using asar pack app app.asar
  3. Remove the previously extracted app directory by running rm -rf app/* followed by rmdir app
  4. cd ../../
  5. Download the appimagetool from here to your current directory
  6. Run this ./appimagetool-x86_64.AppImage squashfs-root/ to generate the new .AppImage file
  7. Run the new .AppImage file by running ./StarUML-x86_64.AppImage

Do you have any idea on how to do this on Windows?

Unfortunately no :(

arkn98 commented Oct 10, 2018

@kharek Many thanks! Your solution worked. But there are minor tweaks for the latest version (StarUML-3.0.2-x86_64.AppImage).
Here's a complete guide (for newbies) that worked for me (Ubuntu 18.04.1 LTS) (credits to @kharek for his answer here)

  1. Download the latest StarUML .AppImage from the their website staruml.io
  2. Then make the downloaded .AppImage executable by running sudo chmod +x StarUML-3.0.2-x86_64.AppImage
  3. Install npm using apt-get sudo apt install npm
  4. Install asar npm package using sudo npm install -g asar
  5. If you're using npm for the first time, then you can't directly call asar from the terminal. You need to update your $PATH variable to include the .npm-global directory to directly call globally installed npm packages. This can be done by adding export PATH="/home/$USER/.npm-global/bin:$PATH" (may differ based on your config; refer to this SO answer) at the end of your .bashrc. Then logout and login again.
  6. Then extract .AppImage file using ./StarUML-3.0.2-x86_64.AppImage --appimage-extract
  7. cd squashfs-root/resources/
  8. asar extract app.asar app
  9. cd app/src/engine
  10. Edit the license-manager.js file. Make the following changes:
//... existing code
checkLicenseValidity () {
    this.validate().then(() => {
      setStatus(this, true)
    }, () => {
      //setStatus(this,false)  <-- comment this line
      setStatus(this, true) //<-- add this line
      //UnregisteredDialog.showDialog() <-- comment this line
    })
  }
//... rest of the code
  1. cd ../../../
  2. Pack the updated .AppImage using asar pack app app.asar
  3. Remove the previously extracted app directory by running rm -rf app/* followed by rmdir app
  4. cd ../../
  5. Download the appimagetool from here to your current directory
  6. Run this ./appimagetool-x86_64.AppImage squashfs-root/ to generate the new .AppImage file
  7. Run the new .AppImage file by running ./StarUML-x86_64.AppImage

Do you have any idea on how to do this on Windows?

Unfortunately no :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment