SHARE
TWEET

Untitled

a guest Oct 18th, 2019 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Install asar
  2. `npm install -g asar`
  3.  
  4. Go to the Ressources folder of the app
  5.  
  6. Mac : `StarUML.app/Contents/Resources`
  7.  
  8. Windows : `C:\Program Files\StarUML\resources`
  9.  
  10. Unzip app: `asar extract app.asar app/`
  11.  
  12. Modify the folowing function:
  13.  
  14. ```javascript
  15. checkLicenseValidity () {
  16.     this.validate().then(() => {
  17.       setStatus(this, true)
  18.     }, () => {
  19.       // setStatus(this, false)
  20.       // UnregisteredDialog.showDialog()
  21.       setStatus(this, true)
  22.     })
  23.   }
  24.   ```
  25.  
  26.   Go back to the resources folder.
  27.  
  28.   Repack the app: `asar pack app/ app.asar`
  29.  
  30.   On windows just run the app.
  31.  
  32.   On mac due to the signature change, you have to disable gatekeeper just for the first launch
  33.  
  34.   `sudo spctl --master-disable`
  35.  
  36.   Lauch the app enable gatekeeper
  37.  
  38.   `sudo spctl --master-enable`
  39.  
  40.   Enjoy !
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top