Skip to content

Commit

Permalink
🎉 init
Browse files Browse the repository at this point in the history
  • Loading branch information
tw93 committed Oct 14, 2022
0 parents commit cabf8df
Show file tree
Hide file tree
Showing 16 changed files with 4,193 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
30 changes: 30 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Pake

> 用 Rust 来打包你的 App,底层使用 tauri,当前支持微信读书,有更多想法,欢迎提issue。
## 下载地址

- 微信读书:<http://tw93.fun/images/app/WeRead.dmg>

## 展示效果

![](https://cdn.fliggy.com/upic/N1coVx.gif)

## 开发步骤

```shell
//安装依赖
npm i

//本地调试
npm run dev

//打包app
npm run build
```

## 打一个新的包

1. 修改 src-tauri 目录下的 tauri.conf.json 中的 productName、icon、title、identifier 这4个字段
2. 修改 src-tauri src 目录下的 main.rs 中的 with_url 字段为你需要打包网页的地址
3. npm run build 即可
15 changes: 15 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "pake",
"scripts": {
"dev": "TAURI_SKIP_DEVSERVER_CHECK=true npm run tauri dev",
"build": "TAURI_SKIP_DEVSERVER_CHECK=true npm run tauri build -- --target universal-apple-darwin",
"tauri": "tauri"
},
"license": "MIT",
"dependencies": {
"@tauri-apps/api": "^1.0.2"
},
"devDependencies": {
"@tauri-apps/cli": "^1.0.2"
}
}
119 changes: 119 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions src-tauri/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Generated by Cargo
# will have compiled files and executables
/target/
Loading

0 comments on commit cabf8df

Please sign in to comment.