-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit cabf8df
Showing
16 changed files
with
4,193 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 即可 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Generated by Cargo | ||
# will have compiled files and executables | ||
/target/ |
Oops, something went wrong.