tw93 / pake Goto Github PK
View Code? Open in Web Editor NEW🤱🏻 Turn any webpage into a desktop app with Rust. 🤱🏻 利用 Rust 轻松构建轻量级多端桌面应用
License: MIT License
🤱🏻 Turn any webpage into a desktop app with Rust. 🤱🏻 利用 Rust 轻松构建轻量级多端桌面应用
License: MIT License
RT 可以设置调用本地的socks5 或者 http 代理吗
我的系统是Arch linux dwm,下面这个Fork,适配了linux:
https://github.com/ttys3/pake
但在使用过程中,某个章节内容很长,前面字体是正常的,后半部分出现字体变大:
macOS会出现这个问题不?
感谢开发这个项目!这里报告一下自行 build 的一些新包。总体来说都不错~
采用 https://m.weibo.cn 这个源站,效果不错。
macOS 原生的网易云音乐性能似乎有些问题,以前我一直用的网页版,也相当不错。
YouTube 可以正常打包使用,但是性能上似乎有点问题,加载渲染速度有点慢。应该不是我网速问题。
很可惜,这二者有些问题。只能加载基础 HTML 版本的网页,Gmail 报告说是旧版浏览器不支持新版界面。不过也能用就是了。
Outlook 类似,就不放图了。
我发现代码中设置了 with_titlebar_transparent
,同时也发现代码中有做 drag_window
的监听事件,但使用下来,发现窗口依旧很难通过标题栏拖动,只有在左上角的特定位置可以进行拖动,很难找到这个点
另外,能否照顾一下windows用户,同时发布 windows 版本?
发现有部分网站是没法拖动的如reddit,还有部分网页打开链接是打开新页面的也没法使用
'TAURI_SKIP_DEVSERVER_CHECK' 不是内部或外部命令,也不是可运行的程序
或批处理文件
有遇到过这种情况吗,怎么处理的
Error failed to build x86_64-apple-darwin binary: Target x86_64-apple-darwin is not installed (installed targets: aarch64-apple-darwin). Please run rustup target add x86_64-apple-darwin
.
目前是不能打 apple silicon 的包吗?
你好,请问一下Pake打包的App,如果产生了缓存文件,应该在哪里去清理呢?
经测试无法在app中利用鼠标按钮和触控板快速前进和后退
希望能够支持
我 clone 下来之后,改了 README 里提示的字段,运行起来后,提示浏览器版本过低且无法正常使用飞书文档。
我将网站打包了,想提交到常用 app 列表里给其他人下载使用,请问可以通过提 PR 的方式添加吗?
我目前使用的是 Pake 的竞品之一 Nativefier。相比之下,Pake 的内存占用显然更小。
但是有一个比较重要的功能感觉还是缺失的,就是自定义窗口外观,Nativefier 可以设置 browserwindow-option ,来实现移动红绿灯位置,以及 macOS 系统的窗口毛玻璃效果。
不过这些功能是基于 electron 的 API, 不知道 Tauri 能否实现。
這樣子就不需要使用者手動 uncomment/comment 程式碼,也方便之後的 GUI 製作~
我有興趣完成這個部分,很快發 PR。
主要是想要导出笔记的功能, 插件的地址是这个 https://weread.qnmlgb.tech/chrome
如果网站中包含 <a href="xxx" target="_blank">xxx</a>
或使用 window.open
之类的新开窗口,会被 Tauri 阻止。
我也在做类似构建,使用 tauri::WindowBuilder::new
API 也遇到了类似问题,欢迎交流。
仓库:https://github.com/lencx/WA
业余时间在开源妙言的主线上,起了两个支线任务,一个是 Pake,一个是潮流周刊,前者增长速度突破我的想象,好几次在 Github Rust 日榜首,5天 Star 就到了1.5K,比妙言猛了不少,但难度不到妙言的 1/10,适合开源新手,有不少可以做的事情,由于后面业余时间有限,重点还是弄妙言,期待可以每月一个新版本,Pake 也很有搞头,欢迎大家参与,参与有价值 PR 超过5次,可以加你成为开发者。
可以看出内部是使用iframe嵌套网页的形式,这种方案对比 pwd 和 直接在浏览器打开有什么优点么,我下载了
微信读书,感觉和用浏览器没区别啊,打开会有一段时间白屏
比如在 css 部分植入
* {
font-family: LXGW WenKai Mono !important;
}
本地测试微信读书效果很棒, 但是需要再机器上安装该字体
可以加一个返回操作吗,也就是浏览器的后退。如果能收拾操作就更好了
你好,这个项目没有打包静态文件,好像相当于调用API打开网址浏览网页,这个和直接在浏览器里面打开有什么区别
您好,我这里测试发现有些网站 dev 和 build 都白屏,比如 https://www.baidu.com/
有些网站 dev 可以显示,build 后白屏,比如 http://news.cntv.cn/special/shzyhxjzg/
最初我觉得是证书问题,但是 http://tv.cctv.com/lm/jdft/jd/index.shtml 没有证书,dev 和 build 都可以显示。
您知道是为啥吗?
避免顶部区域(如左上角的窗口控制)遮挡或干扰网页内容的交互,可以考虑增加如 PWA 所有的一些 CSS 变量,既可以直接兼容 PWA,也能方便开发者进行 UI 适配
https://developer.mozilla.org/en-US/docs/Web/Manifest/display_override#values
https://web.dev/window-controls-overlay/#window-controls-overlay-components
非常好的应用,赞一个!👍
微信读书中打开一本书,对于正文的文本,默认比浏览器中打开的文本字体要大不少,
能否把默认字体调小一些,或者增加调节字体大小的快捷键呢?
CyberChef
有两个版本,可以是在线版,最好是下载了release用离线本地版。
谢谢!
发现「okso」比「Witeboard」好用很多
「Witeboard」用快捷键才能画「矩形」、「圆」
「Witeboard」需要重新开启应用才能刷新白板
使用快捷键的话会弹出系统的「提示音效」,这点挺烦的
The following warnings were emitted during compilation:
warning: In file included from extern/exception.m:1:
warning: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/objc/objc.h:31:
warning: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/types.h:75:
warning: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:807:2: error: Unsupported architecture
warning: #error Unsupported architecture
warning: ^
warning: In file included from extern/exception.m:1:
warning: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/objc/objc.h:31:
warning: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/types.h:78:
warning: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/machine/types.h:37:2: error: architecture not supported
warning: #error architecture not supported
warning: ^
warning: In file included from extern/exception.m:1:
warning: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/objc/objc.h:31:
warning: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/types.h:79:
warning: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types.h:33:
warning: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/machine/_types.h:34:2: error: architecture not supported
warning: #error architecture not supported
warning: ^
warning: In file included from extern/exception.m:1:
warning: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/objc/objc.h:31:
warning: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/types.h:79:
warning: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types.h:55:9: error: unknown type name '__int64_t'; did you mean '__int128_t'?
warning: typedef __int64_t __darwin_blkcnt_t; /* total blocks /
warning: ^
warning: note: '__int128_t' declared here
warning: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types.h:56:9: error: unknown type name '__int32_t'; did you mean '__int128_t'?
warning: typedef __int32_t __darwin_blksize_t; / preferred block size /
warning: ^
warning: note: '__int128_t' declared here
warning: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types.h:57:9: error: unknown type name '__int32_t'; did you mean '__int128_t'?
warning: typedef __int32_t __darwin_dev_t; / dev_t /
warning: ^
warning: note: '__int128_t' declared here
warning: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types.h:60:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
warning: typedef __uint32_t __darwin_gid_t; / [???] process and group IDs /
warning: ^
warning: note: '__uint128_t' declared here
warning: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types.h:61:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
warning: typedef __uint32_t __darwin_id_t; / [XSI] pid_t, uid_t, or gid_t*/
warning: ^
warning: note: '__uint128_t' declared here
warning: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types.h:62:9: error: unknown type name '__uint64_t'; did you mean '__uint128_t'?
warning: typedef __uint64_t __darwin_ino64_t; /* [???] Used for 64 bit inodes /
warning: ^
warning: note: '__uint128_t' declared here
warning: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types.h:68:9: error: unknown type name '__darwin_natural_t'
warning: typedef __darwin_natural_t __darwin_mach_port_name_t; / Used by mach /
warning: ^
warning: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types.h:70:9: error: unknown type name '__uint16_t'; did you mean '__uint128_t'?
warning: typedef __uint16_t __darwin_mode_t; / [???] Some file attributes /
warning: ^
warning: note: '__uint128_t' declared here
warning: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types.h:71:9: error: unknown type name '__int64_t'; did you mean '__int128_t'?
warning: typedef __int64_t __darwin_off_t; / [???] Used for file sizes /
warning: ^
warning: note: '__int128_t' declared here
warning: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types.h:72:9: error: unknown type name '__int32_t'; did you mean '__int128_t'?
warning: typedef __int32_t __darwin_pid_t; / [???] process and group IDs /
warning: ^
warning: note: '__int128_t' declared here
warning: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types.h:73:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
warning: typedef __uint32_t __darwin_sigset_t; / [???] signal set /
warning: ^
warning: note: '__uint128_t' declared here
warning: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types.h:74:9: error: unknown type name '__int32_t'; did you mean '__int128_t'?
warning: typedef __int32_t __darwin_suseconds_t; / [???] microseconds /
warning: ^
warning: note: '__int128_t' declared here
warning: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types.h:75:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
warning: typedef __uint32_t __darwin_uid_t; / [???] user IDs /
warning: ^
warning: note: '__uint128_t' declared here
warning: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types.h:76:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
warning: typedef __uint32_t __darwin_useconds_t; / [???] microseconds /
warning: ^
warning: note: '__uint128_t' declared here
warning: In file included from extern/exception.m:1:
warning: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/objc/objc.h:31:
warning: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/types.h:81:
warning: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/machine/endian.h:37:2: error: architecture not supported
warning: #error architecture not supported
warning: ^
warning: In file included from extern/exception.m:1:
warning: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/objc/objc.h:31:
warning: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/types.h:95:9: error: unknown type name 'u_int64_t'
warning: typedef u_int64_t u_quad_t; / quads */
warning: ^
warning: fatal error: too many errors emitted, stopping now [-ferror-limit=]
warning: 20 errors generated.
error: failed to run custom build command for objc_exception v0.1.2
Caused by:
process didn't exit successfully: /Users/go1/www/localhost/src/github.com/tw93/Pake/src-tauri/target/release/build/objc_exception-f7cc2b0cfa48364c/build-script-build
(exit status: 1)
--- stdout
TARGET = Some("aarch64-apple-darwin")
OPT_LEVEL = Some("3")
HOST = Some("x86_64-apple-darwin")
CC_aarch64-apple-darwin = None
CC_aarch64_apple_darwin = None
TARGET_CC = None
CC = None
CROSS_COMPILE = None
CFLAGS_aarch64-apple-darwin = None
CFLAGS_aarch64_apple_darwin = None
TARGET_CFLAGS = None
CFLAGS = None
CRATE_CC_NO_DEFAULTS = None
DEBUG = Some("false")
CARGO_CFG_TARGET_FEATURE = Some("aes,crc,dit,dotprod,dpb,dpb2,fcma,fhm,flagm,fp16,frintts,jsconv,lor,lse,neon,paca,pacg,pan,pmuv3,ras,rcpc,rcpc2,rdm,sb,sha2,sha3,ssbs,vh")
running: "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-arch" "arm64" "-Wall" "-Wextra" "-o" "/Users/go1/www/localhost/src/github.com/tw93/Pake/src-tauri/target/aarch64-apple-darwin/release/build/objc_exception-7a9b656a7f931b2c/out/extern/exception.o" "-c" "extern/exception.m"
cargo:warning=In file included from extern/exception.m:1:
cargo:warning=In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/objc/objc.h:31:
cargo:warning=In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/types.h:75:
cargo:warning=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:807:2: error: Unsupported architecture
cargo:warning=#error Unsupported architecture
cargo:warning= ^
cargo:warning=In file included from extern/exception.m:1:
cargo:warning=In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/objc/objc.h:31:
cargo:warning=In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/types.h:78:
cargo:warning=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/machine/types.h:37:2: error: architecture not supported
cargo:warning=#error architecture not supported
cargo:warning= ^
cargo:warning=In file included from extern/exception.m:1:
cargo:warning=In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/objc/objc.h:31:
cargo:warning=In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/types.h:79:
cargo:warning=In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types.h:33:
cargo:warning=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/machine/_types.h:34:2: error: architecture not supported
cargo:warning=#error architecture not supported
cargo:warning= ^
cargo:warning=In file included from extern/exception.m:1:
cargo:warning=In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/objc/objc.h:31:
cargo:warning=In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/types.h:79:
cargo:warning=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types.h:55:9: error: unknown type name '__int64_t'; did you mean '__int128_t'?
cargo:warning=typedef __int64_t __darwin_blkcnt_t; /* total blocks /
cargo:warning= ^
cargo:warning=note: '__int128_t' declared here
cargo:warning=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types.h:56:9: error: unknown type name '__int32_t'; did you mean '__int128_t'?
cargo:warning=typedef __int32_t __darwin_blksize_t; / preferred block size /
cargo:warning= ^
cargo:warning=note: '__int128_t' declared here
cargo:warning=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types.h:57:9: error: unknown type name '__int32_t'; did you mean '__int128_t'?
cargo:warning=typedef __int32_t __darwin_dev_t; / dev_t /
cargo:warning= ^
cargo:warning=note: '__int128_t' declared here
cargo:warning=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types.h:60:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
cargo:warning=typedef __uint32_t __darwin_gid_t; / [???] process and group IDs /
cargo:warning= ^
cargo:warning=note: '__uint128_t' declared here
cargo:warning=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types.h:61:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
cargo:warning=typedef __uint32_t __darwin_id_t; / [XSI] pid_t, uid_t, or gid_t*/
cargo:warning= ^
cargo:warning=note: '__uint128_t' declared here
cargo:warning=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types.h:62:9: error: unknown type name '__uint64_t'; did you mean '__uint128_t'?
cargo:warning=typedef __uint64_t __darwin_ino64_t; /* [???] Used for 64 bit inodes /
cargo:warning= ^
cargo:warning=note: '__uint128_t' declared here
cargo:warning=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types.h:68:9: error: unknown type name '__darwin_natural_t'
cargo:warning=typedef __darwin_natural_t __darwin_mach_port_name_t; / Used by mach /
cargo:warning= ^
cargo:warning=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types.h:70:9: error: unknown type name '__uint16_t'; did you mean '__uint128_t'?
cargo:warning=typedef __uint16_t __darwin_mode_t; / [???] Some file attributes /
cargo:warning= ^
cargo:warning=note: '__uint128_t' declared here
cargo:warning=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types.h:71:9: error: unknown type name '__int64_t'; did you mean '__int128_t'?
cargo:warning=typedef __int64_t __darwin_off_t; / [???] Used for file sizes /
cargo:warning= ^
cargo:warning=note: '__int128_t' declared here
cargo:warning=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types.h:72:9: error: unknown type name '__int32_t'; did you mean '__int128_t'?
cargo:warning=typedef __int32_t __darwin_pid_t; / [???] process and group IDs /
cargo:warning= ^
cargo:warning=note: '__int128_t' declared here
cargo:warning=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types.h:73:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
cargo:warning=typedef __uint32_t __darwin_sigset_t; / [???] signal set /
cargo:warning= ^
cargo:warning=note: '__uint128_t' declared here
cargo:warning=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types.h:74:9: error: unknown type name '__int32_t'; did you mean '__int128_t'?
cargo:warning=typedef __int32_t __darwin_suseconds_t; / [???] microseconds /
cargo:warning= ^
cargo:warning=note: '__int128_t' declared here
cargo:warning=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types.h:75:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
cargo:warning=typedef __uint32_t __darwin_uid_t; / [???] user IDs /
cargo:warning= ^
cargo:warning=note: '__uint128_t' declared here
cargo:warning=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types.h:76:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
cargo:warning=typedef __uint32_t __darwin_useconds_t; / [???] microseconds /
cargo:warning= ^
cargo:warning=note: '__uint128_t' declared here
cargo:warning=In file included from extern/exception.m:1:
cargo:warning=In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/objc/objc.h:31:
cargo:warning=In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/types.h:81:
cargo:warning=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/machine/endian.h:37:2: error: architecture not supported
cargo:warning=#error architecture not supported
cargo:warning= ^
cargo:warning=In file included from extern/exception.m:1:
cargo:warning=In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/objc/objc.h:31:
cargo:warning=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/types.h:95:9: error: unknown type name 'u_int64_t'
cargo:warning=typedef u_int64_t u_quad_t; / quads */
cargo:warning= ^
cargo:warning=fatal error: too many errors emitted, stopping now [-ferror-limit=]
cargo:warning=20 errors generated.
exit status: 1
--- stderr
error occurred: Command "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-arch" "arm64" "-Wall" "-Wextra" "-o" "/Users/go1/www/localhost/src/github.com/tw93/Pake/src-tauri/target/aarch64-apple-darwin/release/build/objc_exception-7a9b656a7f931b2c/out/extern/exception.o" "-c" "extern/exception.m" with args "cc" did not execute successfully (status code exit status: 1).
warning: build failed, waiting for other jobs to finish...
Error failed to build aarch64-apple-darwin binary: failed to build app
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! pake@ tauri: tauri "build" "--target" "universal-apple-darwin"
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the pake@ tauri script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
是否有Windows平台打包方案
release assets 是可以手动增删的,点 release 右上角的笔图标就行。
例如用这个软件打包一个学习网站给小孩,然后用家长管理只允许打开这个app,能够禁止小孩跳出app的网站,当成一个浏览器玩别的。
现在中文百度搜索的内容质量很差。很多一手产业信息,公司动态,报告PPT都是通过公众号传播,微信的搜一搜反而变成了重要的高质量信息来源。但是只在微信手机端吸收信息,效率太低。微信PC端搜一搜功能不好用,不能同时看多次搜索的结果,不能同时看多篇文章,我希望能做一个微信搜一搜的浏览器版本。
您可以做一个,或者给我讲讲技术路线,我自己尝试做一个。谢谢!
与这个类似: tauri-apps/tauri#3941 问题是 Windwos 下 run 的时候会报 icon 文件找不到。试过跳转路径更换目录名等方式,还是一直失败。
npm run devwin
Debugger attached.
> devwin
> set TAURI_SKIP_DEVSERVER_CHECK=true && set RUST_BACKTRACE=full && npm run tauri dev
Debugger attached.
> tauri
> tauri dev
Debugger attached.
Info Watching D:\git\Pake\src-tauri for changes...
Compiling app v0.1.0 (D:\git\Pake\src-tauri)
error: failed to run custom build command for `app v0.1.0 (D:\git\Pake\src-tauri)`
Caused by:
process didn't exit successfully: `D:\git\Pake\src-tauri\target\debug\build\app-fca64041c80f0fe0\build-script-build` (exit code: 101)
--- stdout
cargo:rerun-if-env-changed=TAURI_CONFIG
cargo:rerun-if-changed=tauri.conf.json
cargo:rustc-cfg=dev
package.metadata.winres does not exist
--- stderr
thread 'main' panicked at 'error found during tauri-build: Error {
context: "failed to compile `icons/icon.ico` into a Windows Resource file during tauri-build",
source: Error {
kind: NotFound,
message: "program not found",
},
}', D:\bin\scoop\persist\Rustup\.cargo\registry\src\github.com-1ecc6299db9ec823\tauri-build-1.0.2\src\lib.rs:172:5
stack backtrace:
0: rust_begin_unwind
at /rustc/897e37553bba8b42751c67658967889d11ecd120/library\std\src/panicking.rs:584:5
1: core::panicking::panic_fmt
at /rustc/897e37553bba8b42751c67658967889d11ecd120/library\core\src/panicking.rs:142:14
2: tauri_build::build
at D:\bin\scoop\persist\Rustup\.cargo\registry\src\github.com-1ecc6299db9ec823\tauri-build-1.0.2\src\lib.rs:172:5
3: build_script_build::main
at .\build.rs:4:5
4: core::ops::function::FnOnce::call_once
at /rustc/897e37553bba8b42751c67658967889d11ecd120\library\core\src\ops/function.rs:248:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
Waiting for the debugger to disconnect...
Waiting for the debugger to disconnect...
郁闷的我按照官方教程创建了一个空项目:https://tauri.app/zh/v1/guides/getting-started/setup/html-css-js
结果 run 的时候也报这个类似的错误
error: failed to run custom build command for `app v0.1.0 (D:\git\test\tauri\src-tauri)`
Caused by:
process didn't exit successfully: `D:\git\test\tauri\src-tauri\target\debug\build\app-d1c2d846497cff1d\build-script-build` (exit code: 1)
--- stdout
cargo:rerun-if-env-changed=TAURI_CONFIG
cargo:rerun-if-changed=tauri.conf.json
cargo:rustc-cfg=desktop
cargo:rustc-cfg=dev
package.metadata does not exist
failed to compile `icons/icon.ico` into a Windows Resource file during tauri-build: program not found
warning: build failed, waiting for other jobs to finish...
Waiting for the debugger to disconnect...
Waiting for the debugger to disconnect...
求助!谢谢
☺ npm run dev master 17db24e ✗
dev
TAURI_SKIP_DEVSERVER_CHECK=true npm run tauri dev
tauri
tauri dev
Error failed to get project out directory: failed to get cargo metadata: No such file or directory (os error 2)
很好的项目,请支持下语雀吧
未来会有 Windows 相关的支持嘛
run dev可以正常运行,但是run build后生成dmg,复制到Applications文件夹后点击打开,dock图标出现0.5s左右直接消失,随后也没有错误弹窗。
https://github.com/nativefier/nativefier
nativefier可以一个命令把网页打包成electron app,打包效果挺好,希望作者能把pake也做成类似命令行工具
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.