此破解過程須要 mvn node electron 環境 請自行搜索 如何安裝node
博主的環境:git
{ OS:"Window10 2004 內部預覽 快速通道", mvn:"1.1.7", node:"v12.18.0", npm:"cnpm", electron:"v9.0.4", asar:"3.0.3", prettier:"2.0.5", }
準備工做
前往官網下載最新的 便攜版本(網頁最下方) 我沒有使用安裝版本 理論上來講是同樣的github
app.asar 解包
app.asar 在 解壓後的 run/resources 文件夾中shell
此處可取巧 使用 打包好的軟件 解析 asar 使用方法請自行摸索 若實在不懂可留言 博主再開一帖npm
npm install -g asar asar extract app.asar ./app
代碼格式化
vscode自帶的格式化…. 就是個屎 此處推薦 prettierjson
安裝 prettierapp
npm install --g prettier
具體代碼
進入 app/js 格式化 app1.jselectron
prettier --write app1.js
打開 app1.js 找到下方代碼塊學習
n = nz(t.userID, ""); i = nz(t.expiringDate, ""); s = nz(t.error, "");
替換爲spa
t.userID = "BORBER"; t.expiringDate = "2999/1/1"; t.error = ""; t.isBusinessClass = 1; n = nz(t.userID, ""); i = nz(t.expiringDate, "");
其他不動
app.asar 打包
asar pack app app.asar
替換掉 原來的 app.asar
一樣地 此處能夠使用文章開頭 說的軟件 打包
破解成果圖
本項目只作我的學習研究之用,不得用於商業用途!
若資金容許,請購買正版,謝謝合做!