Skip to content

Instantly share code, notes, and snippets.

@arcilli
Forked from danteay/StarUml-V3.md
Created August 10, 2020 13:06
Show Gist options
  • Save arcilli/f8146274dbe0e51d629b08b2275c4096 to your computer and use it in GitHub Desktop.
Save arcilli/f8146274dbe0e51d629b08b2275c4096 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