Git Product home page Git Product logo

pake's Introduction

English | 简体中文

Pake

Turn any webpage into a desktop app with Rust with ease.

Pake supports Mac, Windows, and Linux. Check out README for Popular Packages, Command-Line Packaging, and Customized Development information. Feel free to share your suggestions in Discussions.

Features

  • 🎐 Nearly 20 times smaller than an Electron package (around 5M!)
  • 🚀 With Rust Tauri, Pake is much more lightweight and faster than JS-based frameworks.
  • 📦 Battery-included package — shortcut pass-through, immersive windows, and minimalist customization.
  • 👻 Pake is just a simple tool — replace the old bundle approach with Tauri (though PWA is good enough).

Popular Packages

WeRead Mac Windows Linux Twitter Mac Windows Linux
ChatGPT Mac Windows Linux Poe Mac Windows Linux
YouTube Music Mac Windows Linux YouTube Mac Windows Linux
LiZhi Mac Windows Linux ProgramMusic Mac Windows Linux
Qwerty Mac Windows Linux CodeRunner Mac Windows Linux
Flomo Mac Windows Linux XiaoHongShu Mac Windows Linux
🏂 You can download more applications from Releases. Click here to expand the shortcuts reference!
Mac Windows/Linux Function
+ [ Ctrl + Return to the previous page
+ ] Ctrl + Go to the next page
+ Ctrl + Auto scroll to top of page
+ Ctrl + Auto scroll to bottom of page
+ r Ctrl + r Refresh Page
+ w Ctrl + w Hide window, not quite
+ - Ctrl + - Zoom out the page
+ + Ctrl + + Zoom in the page
+ = Ctrl + = Zoom in the Page
+ 0 Ctrl + 0 Reset the page zoom

In addition, double-click the title bar to switch to full-screen mode. For Mac users, you can also use the gesture to go to the previous or next page and drag the title bar to move the window.

Before starting

  1. For beginners: Play with Popular Packages to find out Pake's capabilities, or try to pack your application with GitHub Actions. Don't hesitate to reach for assistance at Discussion!
  2. For developers: “Command-Line Packaging” supports macOS fully. For Windows/Linux users, it requires some tinkering. Configure your environment before getting started.
  3. For hackers: For people who are good at both front-end development and Rust, how about customizing your apps' function more with the following Customized Development?

Command-Line Packaging

Pake

Pake provides a command line tool, making the flow of package customization quicker and easier. See documentation for more information.

# Install with npm
npm install -g pake-cli

# Command usage
pake url [OPTIONS]...

# Feel free to play with Pake! It might take a while to prepare the environment the first time you launch Pake.
pake https://weekly.tw93.fun --name Weekly --transparent

If you are new to the command line, you can compile packages online with GitHub Actions. See the Tutorial for more information.

Development

Prepare your environment before starting. Make sure you have Rust >=1.63 and Node >=16 (e.g., 16.18.1) installed on your computer. For installation guidance, see Tauri documentation.

If you are unfamiliar with these, it is better to try out the above tool to pack with one click.

# Install Dependencies
npm i

# Local development [Right-click to open debug mode.]
npm run dev

# Pack application
npm run build

Advanced Usage

  1. You can refer to the codebase structure before working on Pake, which will help you much in development.
  2. Modify the url and productName fields in the pake.json file under the src-tauri directory, the "domain" field in the tauri.config.json file needs to be modified synchronously, as well as the icon and identifier fields in the tauri.xxx.conf.json file. You can select an icon from the icons directory or download one from macOSicons to match your product needs.
  3. For configurations on window properties, you can modify the pake.json file to change the value of width, height, fullscreen (or not), resizable (or not) of the windows property. To adapt to the immersive header on Mac, change transparent to true, look for the Header element, and add the padding-top property.
  4. For advanced usages such as style rewriting, advertisement removal, JS injection, container message communication, and user-defined shortcut keys, see Advanced Usage of Pake.

Developers

Pake's development can not be without these Hackers. They contributed a lot of capabilities for Pake. Also, welcome to follow them! ❤️

tw93
Tw93
Tlntin
Tlntin
jeasonnow
Santree
pan93412
Pan93412
wanghanzhen
Volare
liby
Bryan Lee
essesoul
Essesoul
AielloChan
Aiello
m1911star
Horus
Pake-Actions
Pake Actions
exposir
孟世博
QingZ11
Steam
hetz
贺天卓
piaoyidage
Ranger
liusishan
Liusishan
liudonghua123
Liudonghua
lakca
Null
houhoz
Hyzhao
geekvest
Null
princemaple
Po Chen
Milo123459
Milo
eltociear
Ikko Eltociear Ashimine
Fechin
Fechin
turkyden
Dengju Deng
nekomeowww
Ayaka Neko
kidylee
An Li
imabutahersiddik
Abu Taher Siddik
ACGNnsj
Null
2nthony
2nthony

Support

  1. I have two cats, TangYuan and Coke. If you think Pake delights your life, you can feed them some canned food 🥩.
  2. If you like Pake, you can star it on GitHub. Also, welcome to recommend Pake to your friends.
  3. You can follow my Twitter to get the latest news of Pake or join our Telegram chat group.
  4. I hope that you enjoy playing with it. Let us know if you find a website that would be great for a Mac App!

pake's People

Contributors

2nthony avatar acgnnsj avatar aiellochan avatar eltociear avatar essesoul avatar exposir avatar fechin avatar geekvest avatar hetz avatar houhoz avatar imabutahersiddik avatar jeasonnow avatar kidylee avatar lakca avatar liby avatar liudonghua123 avatar liusishan avatar m1911star avatar milo123459 avatar nekomeowww avatar pake-actions avatar pan93412 avatar piaoyidage avatar princemaple avatar qingz11 avatar tlntin avatar turkyden avatar tw93 avatar wanghanzhen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pake's Issues

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

问题描述

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

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

关于返回操作

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

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...

求助!谢谢

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 并没有遇到此问题

简单探讨

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

请问有否防止跳出的功能

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

build出来的App无法运行

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

TAURI_SKIP_DEVSERVER_CHECK

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

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

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

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

更改窗口外观

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

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

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

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

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

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

关于窗口拖动

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

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

image

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

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

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

设备信息:

  • Apple M1 Pro
  • MacOS 13.0 (22A380)

讓 devtools 變成一個 feature

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

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

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)

一些新包:微博,网易云音乐,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 类似,就不放图了。

自定义字体支持

比如在 css 部分植入

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

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

⭐️ 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 的帮助,请自由地享受和参与开源。

`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.

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.