1. 程式人生 > >破解StarUML3.01最新版 for Linux(Ubuntu16LTS)

破解StarUML3.01最新版 for Linux(Ubuntu16LTS)

原文地址:https://blog.csdn.net/yoyofreeman/article/details/80844739

chmod +x StarUML-3.0.1-x86_64.AppImage
./StarUML-3.0.1-x86_64.AppImage --appimage-extract

cd ./squashfs-root/app/resources
~/squashfs-root/app/resources# ll
drwx------ 2 root root 4096 6月 28 15:10 ./
drwx------ 4 root root 4096 6月 28 15:10 ../
-rw-r--r-- 1 root root 81314297 6月 28 15:10 app.asar
-rw-r--r-- 1 root root 51 6月 28 15:10 app-update.yml
-rw-r--r-- 1 root root 237708 6月 28 15:10 electron.asar
---------------------

2.1. 安裝npm

sudo apt install npm
2.2. 升級最新版本npm
sudo npm install [email protected] -g
2.3. 安裝asar

sudo npm install -g asar
這一步有可能會報錯:“/usr/bin/env: node: 沒有那個檔案或目錄”,這麼辦:

sudo ln -s /usr/bin/nodejs /usr/bin/node

2.4. 進入“~/squashfs-root/app/resources/”,解壓app.asar
asar extract app.asar app
---------------------

 

 

編輯“./src/engine/license-manager.js”

3.1. 找到checkLicenseValidity ()

checkLicenseValidity () {
this.validate().then(() => {
setStatus(this, true)
}, () => {
// 原來的程式碼:
// setStatus(this, false)
// UnregisteredDialog.showDialog()

//修改後的程式碼
setStatus(this, true)
})
}

3.2. 回到“~/squashfs-root/app/resources”

重新打包替換原來的app.asar
asar pack app app.asar
---------------------


4. 執行“~/squashfs-root/app/staruml”