2024/5/7
安装typora
wget -qO - https://typoraio.cn/linux/public-key.asc | sudo tee /etc/apt/trusted.gpg.d/typora.asc
sudo add-apt-repository 'deb https://typoraio.cn/linux ./'
sudo apt-get update
sudo apt-get install typora
破解 typora
-
下载Yporaject
git clone https://github.com/hazukieq/Yporaject.git
-
配置rust编译环境
1.使用官方脚本安装
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
- 编译Yporaject
1.编译 cd Yporaject cargo build 2.查看在target中是否生成:node_inject ls target/debug 3.执行以下命令 cargo run
-
拷贝target/debug的bin文件到/usr/share/typora目录
sudo cp target/debug/node_inject /usr/share/typora cd /usr/share/typora sudo chmod +x node_inject sudo ./node_inject
-
获取激活码
cd Yporaject/license-gen 1.编译生成激活码的代码 cargo build 2.生成激活码 cargo run output: Finished dev [unoptimized + debuginfo] target(s) in 0.00s Running `target/debug/license-gen` License for you: xxxxxx-xxxxxx-xxxxxx-xxxxxx