Skip to content

Instantly share code, notes, and snippets.

@cpjeanpaul
Forked from danteay/StarUml-V3.md
Created April 15, 2020 19:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cpjeanpaul/f678965dfce72dc776e631c65a45b113 to your computer and use it in GitHub Desktop.
Save cpjeanpaul/f678965dfce72dc776e631c65a45b113 to your computer and use it in GitHub Desktop.
Active StarUml 3 license

StarUML Crack Linux

Based on https://gist.github.com/jjvillavicencio/4e3615a8219bb1a17c81c4541c6c317d

Requirements

  • nodejs
  • npm

Crack steps

  1. Download the .AppImage file of StarUML from StarUml.io

  2. Install asar package

    sudo npm i -g asar
  3. Extract the .AppImage file

    ./StarUML-[your version].AppImage --appimage-extract
  4. Extract the asar app

    asar squashfs-root/resources/app.asar app
  5. Navigate to squashfs-root/resource/app/src/engine and open the file license-manager.js

    cd /squashfs-root/resource/app/src/engine
    nano license-manager.js
  6. Search for the next code in line 125 and do the next modifications.

    Before the changes:

    checkLicenseValidity () {
     this.validate().then(() => {
       setStatus(this, true)
     }, () => {
       /**
        * Change the second paramter from true to false
        */
       setStatus(this, true)
       /**
        * Comment this dialog
        */
       UnregisteredDialog.showDialog()
     })
    }

    After the changes:

    checkLicenseValidity () {
     this.validate().then(() => {
       setStatus(this, true)
     }, () => {
       setStatus(this, false)
       //UnregisteredDialog.showDialog()
     })
    }
  7. Pack the app with the changes and remove the app folder:

    asar pack app app.asar
    rm -rf app/
  8. Remove the .AppImage file and rename the squashfs-root folder to SarUml:

    rm -rf StarUrml.AppImage
    mv squashfs-root StarUml
  9. Run the executable file insede the folder StarUml named staruml and enjoy.

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