Skip to content

Instantly share code, notes, and snippets.

@Triskae
Last active November 6, 2019 09:29
Show Gist options
  • Save Triskae/c8db5f09f008b2abef2d8595e102c0c0 to your computer and use it in GitHub Desktop.
Save Triskae/c8db5f09f008b2abef2d8595e102c0c0 to your computer and use it in GitHub Desktop.

Install asar npm install -g asar

Go to the Ressources folder of the app

Mac : StarUML.app/Contents/Resources

Windows : C:\Program Files\StarUML\resources

Unzip app: asar extract app.asar app/

Modify the folowing function:

checkLicenseValidity () {
    this.validate().then(() => {
      setStatus(this, true)
    }, () => {
      // setStatus(this, false) 
      // UnregisteredDialog.showDialog()
      setStatus(this, true)
    })
  }

Go back to the resources folder.

Repack the app: asar pack app/ app.asar

On windows just run the app.

On mac due to the signature change, you have to disable gatekeeper just for the first launch

sudo spctl --master-disable

Lauch the app enable gatekeeper

sudo spctl --master-enable

Enjoy !

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