好友
阅读权限10
听众
最后登录1970-1-1
|
本帖最后由 phyills 于 2023-11-25 15:13 编辑
是下面帖子里这个方法修改的么?有没有安卓版本的?感谢。
https://www.52pojie.cn/thread-1192217-4-1.html
1、下载安装Termius:
Windows:https://termius.com/download/windows
Mac:https://termius.com/download/macos
2、安装node.js,
https://nodejs.org/en
3、安装asar
打开终端,然后安装asar
[color=rgb(51, 102, 153) !important]复制代码
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 # 防止自动更新
[color=rgb(51, 102, 153) !important]复制代码
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"}];
[color=rgb(51, 102, 153) !important]复制代码
6、启动Termius,登录账号,重启Termius |
免费评分
-
查看全部评分
|