1、下载安装Termius:
Windows:https://termius.com/download/windows
Mac:https://termius.com/download/macos
2、安装node.js,
https://nodejs.org/en
3、安装asar
打开终端,然后安装asar
npm install -g asar
4、解包app.asar,找到Termius安装目录下的Resources文件夹,以mac为例
cd /Applications/Termius.app/Contents/Resources/
asar extract app.asar ./app # 修改完不需要重新打包
mv app.asar app.asar.bak # 留个备份,或者直接rm
rm app-update.yml # 防止自动更新
5、打开/Resources/app/js/background-process.js,进行修改
搜索 await this.api.bulkAccount,将 const e=await this.api.bulkAccount(); 修改为 var e=await this.api.bulkAccount();
然后在这个var e=await this.api.bulkAccount();语句后面加入
e.account.pro_mode=true;e.account.need_to_update_subscription=false;e.account.current_period={“from”: “2022-01-01T00:00:00″,”until”: “2099-01-01T00:00:00″};e.account.plan_type=”Premium”;e.account.user_type=”Premium”;e.student=null;e.trial=null;e.account.authorized_features.show_trial_section=false;e.account.authorized_features.show_subscription_section=true;e.account.authorized_features.show_github_account_section=false;e.account.expired_screen_type=null;e.personal_subscription={“now”: new Date().toISOString().slice(0, -5),”status”: “SUCCESS”,”platform”: “stripe”,”current_period”: {“from”: “2022-01-01T00:00:00″,”until”: “2099-01-01T00:00:00″},”revokable”: true,”refunded”: false,”cancelable”: true,”reactivatable”: false,”currency”: “usd”,”created_at”: “2022-01-01T00:00:00″,”updated_at”: new Date().toISOString().slice(0, -5),”valid_until”: “2099-01-01T00:00:00″,”auto_renew”: true,”price”: 12.0,”verbose_plan_name”: “Termius Pro Monthly”,”plan_type”: “SINGLE”,”is_expired”: false};e.access_objects=[{“period”: {“start”: “2022-01-01T00:00:00″,”end”: “2099-01-01T00:00:00″},”title”: “Pro”}];
6、启动Termius,登录账号,重启Termius
评论(0)