🐛 更新文档

This commit is contained in:
Tw93
2022-10-17 16:38:34 +08:00
parent b7e31d4390
commit d15966bda8
2 changed files with 5 additions and 7 deletions

View File

@@ -1,13 +1,12 @@
<p align="right"><strong>中文</strong> | <a href="https://github.com/tw93/Pake/blob/master/README_EN.md">English</a></p> <p align="right"><strong>中文</strong> | <a href="https://github.com/tw93/Pake/blob/master/README_EN.md">English</a></p>
<p align="center"> <p align="center">
<img src=https://gw.alipayobjects.com/zos/k/28/logo.png width=138 /> <img src=https://gw.alipayobjects.com/zos/k/28/logo.png width=138 style=" border-radius: 100%"/>
<h1 align="center">Pake</h1> <h1 align="center">Pake</h1>
<div align="center">很简单的用 Rust 打包网页生成很小的 Mac App</div>
</p> </p>
## 概览 ## 概览
用 Rust 打包你的 App底层使用 Tauri当前支持微信读书、Flomo、WhatsApp、Vercel、Witeboard有更多想法欢迎提 Issue详细小白开发教程可见底部。 很简单的用 Rust 打包网页生成很小的 Mac App底层使用 Tauri当前支持微信读书、Flomo、WhatsApp、Vercel、Witeboard有更多想法欢迎提 Issue详细小白开发教程可见底部。
## 特征 ## 特征

View File

@@ -1,13 +1,12 @@
<p align="right"><a href="https://github.com/tw93/Pake">中文</a> | <strong>English</strong></p> <p align="right"><a href="https://github.com/tw93/Pake">中文</a> | <strong>English</strong></p>
<p align="center"> <p align="center">
<img src=https://gw.alipayobjects.com/zos/k/28/logo.png width=138 /> <img src=https://gw.alipayobjects.com/zos/k/28/logo.png width=138 style=" border-radius: 100%" />
<h1 align="center">Pake</h1> <h1 align="center">Pake</h1>
<div align="center">A simple way to package a web page with Rust to create Mac App</div>
</p> </p>
## Overview ## Overview
Use Rust to package your App, using Tauri as the underlying layer, currently supporting WeRead, Flomo, WhatsApp, Vercel, Witeboard. A simple way to package a web page with Rust to create Mac App, using Tauri as the underlying layer, currently supporting WeRead, Flomo, WhatsApp, Vercel, Witeboard.
## Features ## Features
@@ -86,7 +85,7 @@ npm run build
2. find the location of the style in `main.rs` (search for `style.innerHTML`) and add the style you need to override, there are some examples you can copy. 2. find the location of the style in `main.rs` (search for `style.innerHTML`) and add the style you need to override, there are some examples you can copy.
3. Remember to remove the devtools comments before packaging. 3. Remember to remove the devtools comments before packaging.
#### How to inject JS code, e.g. to implement event listeners, e.g. keyboard shortcuts? #### How to inject js code, e.g. to implement event listeners, e.g. keyboard shortcuts?
1. Same preparation as in case 1 above. 1. Same preparation as in case 1 above.
2. refer to the event listener in `main.rs` (search for `document.addEventListener`), and write it directly, it's more of a basic front-end technique here. 2. refer to the event listener in `main.rs` (search for `document.addEventListener`), and write it directly, it's more of a basic front-end technique here.