适用于最新版,网上的千篇一律的那些老文大多不适用了。

  1. 安装 asar npm install -g asar
  2. 到app.asar目录
  3. asar extract app.asar ./app
  4. mv app.asar app.asar.bak
  5. rm app-update.yml
  6. 修改app/js/background-process.js
  7. 将 const 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"
    }]
    
  8. 搞定,pro版了。

标签: none

已有 2 条评论

  1. BL1ACH BL1ACH

    请问这是win客户端的操作吗,有安卓手机版吗?最好有安装包的。谢谢

    1. win和linux都可以,android的我没试过,不过道理上应该都是一样的。

添加新评论