✨ 支持vercel
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
# Pake
|
# Pake
|
||||||
|
|
||||||
> 用 Rust 来打包你的 App,底层使用 Tauri,当前支持微信读书、Flomo,有更多想法,欢迎提 Issue。
|
> 用 Rust 来打包你的 App,底层使用 Tauri,当前支持微信读书、Flomo、Vercel,有更多想法,欢迎提 Issue。
|
||||||
|
|
||||||
下载地址: <https://github.com/tw93/pake/releases>
|
下载地址: <https://github.com/tw93/pake/releases>
|
||||||
|
|
||||||
@@ -14,6 +14,10 @@
|
|||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
### Vercel
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
## 开发
|
## 开发
|
||||||
|
|
||||||
开始前参考 [tauri](https://tauri.app/v1/guides/getting-started/prerequisites#setting-up-macos) 快速配置好环境
|
开始前参考 [tauri](https://tauri.app/v1/guides/getting-started/prerequisites#setting-up-macos) 快速配置好环境
|
||||||
|
|||||||
BIN
src-tauri/icons/anymind.icns
Normal file
BIN
src-tauri/icons/anymind.icns
Normal file
Binary file not shown.
BIN
src-tauri/icons/vercel.icns
Normal file
BIN
src-tauri/icons/vercel.icns
Normal file
Binary file not shown.
@@ -38,18 +38,30 @@ fn main() -> wry::Result<()> {
|
|||||||
(function () {
|
(function () {
|
||||||
window.addEventListener('DOMContentLoaded', (event) => {
|
window.addEventListener('DOMContentLoaded', (event) => {
|
||||||
const style = document.createElement('style');
|
const style = document.createElement('style');
|
||||||
.c-swiper-container{
|
style.innerHTML = `
|
||||||
display:none;
|
|
||||||
}
|
|
||||||
.panel.give_me .nav_view {
|
.panel.give_me .nav_view {
|
||||||
top: 154px !important;
|
top: 154px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.c-swiper-container,
|
||||||
.download_entry,
|
.download_entry,
|
||||||
.lang,
|
.lang,
|
||||||
.copyright {
|
.copyright {
|
||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.container-with-note #home, .container-with-note #switcher{
|
||||||
|
top: 30px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.geist-page {
|
||||||
|
padding-top:10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.geist-page .submenu button{
|
||||||
|
margin-top:24px;
|
||||||
|
}
|
||||||
|
|
||||||
#pack-top-dom:active {
|
#pack-top-dom:active {
|
||||||
cursor: grabbing;
|
cursor: grabbing;
|
||||||
cursor: -webkit-grabbing;
|
cursor: -webkit-grabbing;
|
||||||
@@ -107,7 +119,7 @@ fn main() -> wry::Result<()> {
|
|||||||
};
|
};
|
||||||
|
|
||||||
let _webview = WebViewBuilder::new(window)?
|
let _webview = WebViewBuilder::new(window)?
|
||||||
.with_url("https://www.duokan.com/pc/")?
|
.with_url("https://vercel.com/")?
|
||||||
// .with_devtools(true)
|
// .with_devtools(true)
|
||||||
.with_initialization_script(script)
|
.with_initialization_script(script)
|
||||||
.with_ipc_handler(handler)
|
.with_ipc_handler(handler)
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"package": {
|
"package": {
|
||||||
"productName": "Flomo",
|
"productName": "Vercel",
|
||||||
"version": "0.1.0"
|
"version": "0.1.0"
|
||||||
},
|
},
|
||||||
"build": {
|
"build": {
|
||||||
@@ -14,7 +14,7 @@
|
|||||||
"all": true
|
"all": true
|
||||||
},
|
},
|
||||||
"bundle": {
|
"bundle": {
|
||||||
"icon": ["icons/flomo.icns"],
|
"icon": ["icons/vercel.icns"],
|
||||||
"active": true,
|
"active": true,
|
||||||
"category": "DeveloperTool",
|
"category": "DeveloperTool",
|
||||||
"copyright": "",
|
"copyright": "",
|
||||||
@@ -22,7 +22,7 @@
|
|||||||
"depends": []
|
"depends": []
|
||||||
},
|
},
|
||||||
"externalBin": [],
|
"externalBin": [],
|
||||||
"identifier": "com.tw93.flomo",
|
"identifier": "com.tw93.vercel",
|
||||||
"longDescription": "",
|
"longDescription": "",
|
||||||
"macOS": {
|
"macOS": {
|
||||||
"entitlements": null,
|
"entitlements": null,
|
||||||
@@ -51,7 +51,7 @@
|
|||||||
"fullscreen": false,
|
"fullscreen": false,
|
||||||
"height": 728,
|
"height": 728,
|
||||||
"resizable": true,
|
"resizable": true,
|
||||||
"title": "Flomo",
|
"title": "Vercel",
|
||||||
"width": 1200
|
"width": 1200
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user