Giter Club home page Giter Club logo

pake's Issues

一些新包:微博,网易云音乐,YouTube,Gmail,Outlook

感谢开发这个项目!这里报告一下自行 build 的一些新包。总体来说都不错~

微博

Weibo.app.zip

采用 https://m.weibo.cn 这个源站,效果不错。

image

网易云音乐

网易云音乐.app.zip

macOS 原生的网易云音乐性能似乎有些问题,以前我一直用的网页版,也相当不错。

image

YouTube

YouTube.app.zip

YouTube 可以正常打包使用,但是性能上似乎有点问题,加载渲染速度有点慢。应该不是我网速问题。

image

Gmail and Outlook

Gmail.app.zip

很可惜,这二者有些问题。只能加载基础 HTML 版本的网页,Gmail 报告说是旧版浏览器不支持新版界面。不过也能用就是了。

image

Outlook 类似,就不放图了。

通过标题栏拖动窗口存在一些问题

问题描述

我发现代码中设置了 with_titlebar_transparent,同时也发现代码中有做 drag_window 的监听事件,但使用下来,发现窗口依旧很难通过标题栏拖动,只有在左上角的特定位置可以进行拖动,很难找到这个点

Kapture.2022-10-15.at.11.23.40.mp4

关于窗口拖动

发现有部分网站是没法拖动的如reddit,还有部分网页打开链接是打开新页面的也没法使用

TAURI_SKIP_DEVSERVER_CHECK

'TAURI_SKIP_DEVSERVER_CHECK' 不是内部或外部命令,也不是可运行的程序
或批处理文件
有遇到过这种情况吗,怎么处理的

M1 MacBook打包问题

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 的包吗?

WhatsApp 提示需要 Safari11 +

系统: macOS Monterey 12.6
处理器:M1 Pro

问题:

下载并运行提供的 WhatsApp 包后,提示 WhatsApp works with Safari 11+ 并提示升级浏览器

image

其他提供的示例 app 并没有遇到此问题

更改窗口外观

我目前使用的是 Pake 的竞品之一 Nativefier。相比之下,Pake 的内存占用显然更小。

但是有一个比较重要的功能感觉还是缺失的,就是自定义窗口外观,Nativefier 可以设置 browserwindow-option ,来实现移动红绿灯位置,以及 macOS 系统的窗口毛玻璃效果。

不过这些功能是基于 electron 的 API, 不知道 Tauri 能否实现。

讓 devtools 變成一個 feature

這樣子就不需要使用者手動 uncomment/comment 程式碼,也方便之後的 GUI 製作~

我有興趣完成這個部分,很快發 PR。

⭐️ Pake 共建计划

缘起

业余时间在开源妙言的主线上,起了两个支线任务,一个是 Pake,一个是潮流周刊,前者增长速度突破我的想象,好几次在 Github Rust 日榜首,5天 Star 就到了1.5K,比妙言猛了不少,但难度不到妙言的 1/10,适合开源新手,有不少可以做的事情,由于后面业余时间有限,重点还是弄妙言,期待可以每月一个新版本,Pake 也很有搞头,欢迎大家参与,参与有价值 PR 超过5次,可以加你成为开发者。

Todolist

  • 1、代码架构优化,可以将注入的 css、注入的 js 通过文件方式分开,同时所有配置可以放到 tauri.config.json 里面
  • 2、使用 Github Actions 支持 Pake 自动打常用包提交到 Release
  • 3、支持 Windows 的打包,可以和其他项结合起来
  • 4、通过命令行 Pake 可以直接生成指定包,无需 fork 仓库的那种,类似 https://github.com/nativefier/nativefier
  • 5、搭建简单官网,支持常用应用的分系统下载和预览
  • 6、回复issue,解决用户疑问

领取

  • 对于想支持的同学,可以直接领取一个 Todo,你作为负责人,我这边来一个 Pake 开发群到时候讨论即可。
  • 可以直接回复 Issue 进行报名
  • 开源过程是一件很有趣的事情,我 10 年前大学刚开始学习技术的时候,超级感谢 github 的帮助,请自由地享受和参与开源。

简单探讨

可以看出内部是使用iframe嵌套网页的形式,这种方案对比 pwd 和 直接在浏览器打开有什么优点么,我下载了
微信读书,感觉和用浏览器没区别啊,打开会有一段时间白屏

twitter 滑动到最下面会导致推文消失

image

我试过去掉twitter.css里的东西直接编译一个新的app,这个问题还是有

复现方式是用滚轮一直往下滚动,等他刷新两次到三次之后,推文就消失了,此时如果滚动回最开始,推文又会出现。

对页面进行放大似乎会增加这个问题的出现概率,不确定。

设备信息:

  • Apple M1 Pro
  • MacOS 13.0 (22A380)

自定义字体支持

比如在 css 部分植入

        * {
          font-family: LXGW WenKai Mono !important;
        }

本地测试微信读书效果很棒, 但是需要再机器上安装该字体

关于返回操作

可以加一个返回操作吗,也就是浏览器的后退。如果能收拾操作就更好了

请问微信读书中正文的字体能否调小一些

非常好的应用,赞一个!👍

微信读书中打开一本书,对于正文的文本,默认比浏览器中打开的文本字体要大不少,
能否把默认字体调小一些,或者增加调节字体大小的快捷键呢?

`npm run build` failed,need help

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.

请问有否防止跳出的功能

例如用这个软件打包一个学习网站给小孩,然后用家长管理只允许打开这个app,能够禁止小孩跳出app的网站,当成一个浏览器玩别的。

您好,我想请教一下如何把微信的搜一搜功能做成一个独立的应用(最好在PC端使用)

现在中文百度搜索的内容质量很差。很多一手产业信息,公司动态,报告PPT都是通过公众号传播,微信的搜一搜反而变成了重要的高质量信息来源。但是只在微信手机端吸收信息,效率太低。微信PC端搜一搜功能不好用,不能同时看多次搜索的结果,不能同时看多篇文章,我希望能做一个微信搜一搜的浏览器版本。

您可以做一个,或者给我讲讲技术路线,我自己尝试做一个。谢谢!

Windows 编译失败

与这个类似: 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 执行失败

☺ 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)

build出来的App无法运行

run dev可以正常运行,但是run build后生成dmg,复制到Applications文件夹后点击打开,dock图标出现0.5s左右直接消失,随后也没有错误弹窗。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.