wget
chmod +x StarUML-3.0.1-x86_64.AppImage
./StarUML-3.0.1-x86_64.AppImage --appimage-extract
wget
tar xvf node-v10.7.0-linux-x64.tar.xz
sudo ln -sf /opt/node-v10.7.0-linux-x64//bin/node /usr/local/bin/node
sudo ln -sf /opt/node-v10.7.0-linux-x64/bin/node /usr/bin/node
sudo ln -sf /opt/node-v10.7.0-linux-x64//bin/npm /usr/local/bin/npm
需要注意的是:路径尽可能全路径,否则有可能无法识别命令
sudo apt install npm
sudo npm install npm@latest -g
sudo npm install -g asar
cd squashfs-root/app/resources/
sudo apt-get install sysstat unar
asar extract app.asar app
编辑“./src/engine/license-manager.js” 找到checkLicenseValidity ()
checkLicenseValidity () {
this.validate().then(() => {
setStatus(this, true)
}, () => {
// 原来的代码:
// setStatus(this, false)
// UnregisteredDialog.showDialog()
//修改后的代码
setStatus(this, true)
})
}
-
回到“squashfs-root/app/resources” 重新打包替换原来的app.asar
asar pack app app.asar
sudo cp staruml.desktop /usr/share/applications/
sudo vim /usr/share/applications/staruml.desktop
-
[Desktop Entry]
-
Name=StarUML
-
Comment=A sophisticated software modeler
-
Exec=/opt/squashfs-root/app/staruml
-
Terminal=false
-
Type=Application
-
Icon=/opt/squashfs-root/staruml.png
-
X-AppImage-Version=3.0.1
-
X-AppImage-BuildId=de6edba0-7928-11a8-026c-65d5d975edc4
-
Categories=Development;
进入并用界面拷贝/usr/share/applications/staruml.desktop到桌面
阅读(811) | 评论(0) | 转发(0) |