banner
NEWS LETTER

Linux下破解安装Typora

Scroll down

注: 该文章并非原创,而是结合了寻道之旅的blog叶月绘梨依的blog,留以自用。

Typora安装与破解(Linux)

1. 安装Typora

方法一

1
2
3
4
5
6
7
8
9
10
11
12
# 安装最新版typora
wget -qO - https://typoraio.cn/linux/public-key.asc | sudo tee /etc/apt/trusted.gpg.d/typora.asc

# add Typora's repository

sudo add-apt-repository 'deb https://typoraio.cn/linux ./'

sudo apt-get update

# install typora

sudo apt-get install typora

方法二

1
2
3
4
5
6
7
8
9
#下载TYPORA安装包
#X86(amd)
wget https://download2.typoraio.cn/linux/typora_1.6.6_amd64.deb --output-document typora.deb

#ARM
wget https://download2.typoraio.cn/linux/typora_1.6.6_arm64.deb --output-document typora.deb

#安装TYPORA
sudo dpkg -i typora.deb

2. 安装编译环境

由于编译项目需要 rust 的支持,所以我们需要配置相关环境

1
2
3
4
5
6
7
8
9
#运行官方脚本安装即可
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

# 刷新环境
source "$HOME/.cargo/env"

#检查cargo,若看到如下版本信息,则说明配置成功
cargo -v
cargo x.xx.x (xxxxxxxxx xxxx-xx-xx)

若安装失败,建议从官网找到对应的离线包进行安装。

3. Typora 激活

  1. 找到合适的位置打开终端并Clone Yporaject项目

    1
    git clone https://github.com/hazukieq/Yporaject.git
  2. 进入Yporaject项目并进行编译

    1
    2
    3
    4
    5
    #进入Yoprainject项目
    cd Yporainject

    #运行编译命令
    cargo build
  3. 将编译后的可执行文件复制到 typora文件夹下,并切换,执行复制的文件

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    #记录当前目录路径,待会返回需要用到
    cur=`pwd`

    #复制二进制程序到相关目录下
    sudo cp target/debug/node_inject /usr/share/typora

    #进入相关目录
    cd /usr/share/typora

    #给予二进制程序执行权限
    sudo chmod +x node_inject

    #运行
    sudo /usr/share/typora/node_inject

    这里出现如下信息,此时没有任何问题。

    1
    2
    3
    4
    5
    extracting node_modules.asar
    adding hook.js
    applying patch
    packing node_modules.asar
    done!
  4. 获取许可证激发码

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    #返回项目
    cd $cur

    #进入 license-gen 文件夹并编译代码
    cd license-gen && cargo build

    #运行二进制程序
    cargo run

    #你将会得到以下输出
    output:
    Finished dev [unoptimized + debuginfo] target(s) in 0.00s
    Running `target/debug/license-gen`
    License for you: xxxxxx-xxxxxx-xxxxxx-xxxxxx

    License既是激活码

  5. 打开Typora填入邮箱和License即可成功激活

    邮箱可任意输入

4. 卸载Typora

1
2
3
sudo apt purge typora

sudo rm -rf /usr/share/typora

本人当时破解版本为 Typora 1.9.5

其他文章
cover
运动心率的判断
  • 23/08/08
  • 14:02
  • 程序设计
目录导航
  1. 1. Typora安装与破解(Linux)
    1. 1.1. 1. 安装Typora
      1. 1.1.1. 方法一
      2. 1.1.2. 方法二
    2. 1.2. 2. 安装编译环境
    3. 1.3. 3. Typora 激活
    4. 1.4. 4. 卸载Typora
请输入关键词进行搜索