Skip to content

Instantly share code, notes, and snippets.

@danielquisbert
Last active November 13, 2024 17:02
Show Gist options
  • Save danielquisbert/cf8af9d00dab3911188670a8e99a4cd2 to your computer and use it in GitHub Desktop.
Save danielquisbert/cf8af9d00dab3911188670a8e99a4cd2 to your computer and use it in GitHub Desktop.
Key para starUML

Key starUML 3.X

Link de referencia

http://php-note.com/article/749.html

1.Descargar StarUML 3.1.0

http://staruml.io/download

http://www.macupdate.com/app/mac/55571/staruml/download

2. Instalar npm

Revisar:https://blog.csdn.net/qq_33833327/article/details/78027431

3. Instalar asar

npm install asar -g

4. StarUML

(1) Descomprimir app.asar

cd /Applications/StarUML.app/Contents/Resources asar extract app.asar app

(2) Editar license-manager.js

nano app/src/engine/license-manager.js

Buscar la función checkLicenseValidity () y comentar las líneas siguientes:

``

checkLicenseValidity () {

this.validate().then(() => {

  setStatus(this, true)
  
}, () => {

  // setStatus(this, false) 
  // UnregisteredDialog.showDialog()
  setStatus(this, true)
  
})

}

``

(3) Comprimir app

asar pack app app.asar

Listo!!!

@HeisenberXx
Copy link

Buenas, todo bien hasta que intento descomprimir. Me sale este error: Error: EPERM: operation not permitted, mkdir 'app'

Inicia el símbolo del sistema como administrador

@PowrAscent
Copy link

No funcionó en 2024, no sé si a alguien más le funcionó

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