Credits to kharek for his answer here. But his answer was for an older version (2.8). There are some minor tweaks for getting it to work on the latest version (StarUML-3.0.2-x86_64.AppImage).
Here's a complete guide (for newbies) (it worked for me on Ubuntu 18.04.1 LTS):
- Download the latest StarUML .AppImage from the their website staruml.io
- Then make the downloaded .AppImage executable by running
sudo chmod +x StarUML-3.0.2-x86_64.AppImage
- Install npm using apt-get
sudo apt install npm
- Install asar npm package using
sudo npm install -g asar
- If you're using npm for the first time, then you can't directly call
asar
from the terminal. You need to update your$PATH
variable to include the.npm-global
directory to directly call globally installed npm packages. This can be done by addingexport PATH="/home/$USER/.npm-global/bin:$PATH"
(may differ based on your config; refer to this SO answer) at the end of your.bashrc
. Then logout and login again. - Then extract .AppImage file using
./StarUML-3.0.2-x86_64.AppImage --appimage-extract
cd squashfs-root/resources/
asar extract app.asar app
cd app/src/engine
- Edit the
license-manager.js
file. Make the following changes:
//... existing code
checkLicenseValidity () {
this.validate().then(() => {
setStatus(this, true)
}, () => {
//setStatus(this,false) <-- comment this line
setStatus(this, true) //<-- add this line
//UnregisteredDialog.showDialog() <-- comment this line
})
}
//... rest of the code
cd ../../../
- Pack the updated .AppImage using
asar pack app app.asar
- Remove the previously extracted
app
directory by runningrm -rf app/*
followed byrmdir app
cd ../../
- Download the appimagetool from here to your current directory
- Run this
./appimagetool-x86_64.AppImage squashfs-root/
to generate the new .AppImage file - Run the new .AppImage file by running
./StarUML-x86_64.AppImage