Skip to content

Commit cabf8df

Browse files
committed
🎉 init
0 parents  commit cabf8df

16 files changed

+4193
-0
lines changed

.gitignore

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?

Readme.md

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Pake
2+
3+
> 用 Rust 来打包你的 App,底层使用 tauri,当前支持微信读书,有更多想法,欢迎提issue。
4+
5+
## 下载地址
6+
7+
- 微信读书:<http://tw93.fun/images/app/WeRead.dmg>
8+
9+
## 展示效果
10+
11+
![](https://cdn.fliggy.com/upic/N1coVx.gif)
12+
13+
## 开发步骤
14+
15+
```shell
16+
//安装依赖
17+
npm i
18+
19+
//本地调试
20+
npm run dev
21+
22+
//打包app
23+
npm run build
24+
```
25+
26+
## 打一个新的包
27+
28+
1. 修改 src-tauri 目录下的 tauri.conf.json 中的 productName、icon、title、identifier 这4个字段
29+
2. 修改 src-tauri src 目录下的 main.rs 中的 with_url 字段为你需要打包网页的地址
30+
3. npm run build 即可

package.json

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"name": "pake",
3+
"scripts": {
4+
"dev": "TAURI_SKIP_DEVSERVER_CHECK=true npm run tauri dev",
5+
"build": "TAURI_SKIP_DEVSERVER_CHECK=true npm run tauri build -- --target universal-apple-darwin",
6+
"tauri": "tauri"
7+
},
8+
"license": "MIT",
9+
"dependencies": {
10+
"@tauri-apps/api": "^1.0.2"
11+
},
12+
"devDependencies": {
13+
"@tauri-apps/cli": "^1.0.2"
14+
}
15+
}

pnpm-lock.yaml

+119
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src-tauri/.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Generated by Cargo
2+
# will have compiled files and executables
3+
/target/

0 commit comments

Comments
 (0)