From d15966bda8af3963a925243df8c8bfd9f10e28bb Mon Sep 17 00:00:00 2001 From: Tw93 Date: Mon, 17 Oct 2022 16:38:34 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E6=9B=B4=E6=96=B0=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 5 ++--- README_EN.md | 7 +++---- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index f8670b3..c865416 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,12 @@

中文 | English

- +

Pake

-
很简单的用 Rust 打包网页生成很小的 Mac App

## 概览 -用 Rust 来打包你的 App,底层使用 Tauri,当前支持微信读书、Flomo、WhatsApp、Vercel、Witeboard,有更多想法,欢迎提 Issue,详细小白开发教程可见底部。 +很简单的用 Rust 打包网页生成很小的 Mac App,底层使用 Tauri,当前支持微信读书、Flomo、WhatsApp、Vercel、Witeboard,有更多想法,欢迎提 Issue,详细小白开发教程可见底部。 ## 特征 diff --git a/README_EN.md b/README_EN.md index a4da969..6162b44 100644 --- a/README_EN.md +++ b/README_EN.md @@ -1,13 +1,12 @@

中文 | English

- +

Pake

-
A simple way to package a web page with Rust to create Mac App

## 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 @@ -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. 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. 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.