Skip to content

Commit 85ea4b9

Browse files
committed
✨ 支持vercel
1 parent 4a35b0c commit 85ea4b9

File tree

5 files changed

+25
-9
lines changed

5 files changed

+25
-9
lines changed

Diff for: README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Pake
22

3-
> 用 Rust 来打包你的 App,底层使用 Tauri,当前支持微信读书、Flomo,有更多想法,欢迎提 Issue。
3+
> 用 Rust 来打包你的 App,底层使用 Tauri,当前支持微信读书、Flomo、Vercel,有更多想法,欢迎提 Issue。
44
55
下载地址: <https://github.com/tw93/pake/releases>
66

@@ -14,6 +14,10 @@
1414

1515
![2](https://cdn.fliggy.com/upic/B49SAc.png)
1616

17+
### Vercel
18+
19+
![3](https://cdn.fliggy.com/upic/CPVRnY.png)
20+
1721
## 开发
1822

1923
开始前参考 [tauri](https://tauri.app/v1/guides/getting-started/prerequisites#setting-up-macos) 快速配置好环境

Diff for: src-tauri/icons/anymind.icns

249 KB
Binary file not shown.

Diff for: src-tauri/icons/vercel.icns

394 KB
Binary file not shown.

Diff for: src-tauri/src/main.rs

+16-4
Original file line numberDiff line numberDiff line change
@@ -38,18 +38,30 @@ fn main() -> wry::Result<()> {
3838
(function () {
3939
window.addEventListener('DOMContentLoaded', (event) => {
4040
const style = document.createElement('style');
41-
.c-swiper-container{
42-
display:none;
43-
}
41+
style.innerHTML = `
4442
.panel.give_me .nav_view {
4543
top: 154px !important;
4644
}
45+
46+
.c-swiper-container,
4747
.download_entry,
4848
.lang,
4949
.copyright {
5050
display: none !important;
5151
}
5252
53+
.container-with-note #home, .container-with-note #switcher{
54+
top: 30px;
55+
}
56+
57+
.geist-page {
58+
padding-top:10px;
59+
}
60+
61+
.geist-page .submenu button{
62+
margin-top:24px;
63+
}
64+
5365
#pack-top-dom:active {
5466
cursor: grabbing;
5567
cursor: -webkit-grabbing;
@@ -107,7 +119,7 @@ fn main() -> wry::Result<()> {
107119
};
108120

109121
let _webview = WebViewBuilder::new(window)?
110-
.with_url("https://www.duokan.com/pc/")?
122+
.with_url("https://vercel.com/")?
111123
// .with_devtools(true)
112124
.with_initialization_script(script)
113125
.with_ipc_handler(handler)

Diff for: src-tauri/tauri.conf.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"package": {
3-
"productName": "Flomo",
3+
"productName": "Vercel",
44
"version": "0.1.0"
55
},
66
"build": {
@@ -14,15 +14,15 @@
1414
"all": true
1515
},
1616
"bundle": {
17-
"icon": ["icons/flomo.icns"],
17+
"icon": ["icons/vercel.icns"],
1818
"active": true,
1919
"category": "DeveloperTool",
2020
"copyright": "",
2121
"deb": {
2222
"depends": []
2323
},
2424
"externalBin": [],
25-
"identifier": "com.tw93.flomo",
25+
"identifier": "com.tw93.vercel",
2626
"longDescription": "",
2727
"macOS": {
2828
"entitlements": null,
@@ -51,7 +51,7 @@
5151
"fullscreen": false,
5252
"height": 728,
5353
"resizable": true,
54-
"title": "Flomo",
54+
"title": "Vercel",
5555
"width": 1200
5656
}
5757
]

0 commit comments

Comments
 (0)