Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🍎 macOS 优化 #221

Open
zty012 opened this issue Dec 29, 2024 · 9 comments
Open

🍎 macOS 优化 #221

zty012 opened this issue Dec 29, 2024 · 9 comments

Comments

@zty012
Copy link
Contributor

zty012 commented Dec 29, 2024

No description provided.

@522247020
Copy link

下载版本 Project.Graph_0.0.0-nightly.a1a8078ce9ce84c617e2f4369af8f690c736bbce_x64.dmg
一样是打开界面后,鼠标左右键点击在画布上,下面状态栏会显示对应的提示,但是画布无响应。
多点击几次程序会报错退出。
CPU 占用率依然很高。

系统版本: 15.1.1 (24B91)
CPU:inter

@522247020
Copy link

按照 README 文档内容更改

  "app": {
    "windows": [
      {
        "title": "Project Graph",
        "width": 1200,
        "height": 800,
        "decorations": true,  // 修改
        "transparent": false,  // 修改
        "visible": false,  // 添加此项
        "dragDropEnabled": false
      }
    ],
    "macOSPrivateApi": true,  // 添加此项
    "security": {
      "csp": null,
      "capabilities": []
    }
  },

更改后再本地执行 pnpm tauri dev 可以正常使用。构建后的程序安装后打开无界面。
使用开发模式观看屏幕 FPS 不会超出 60 帧,而下载的正式版帧率会跳到 100帧以上。

@hulyhulyhuly
Copy link

下载版本 Project.Graph_0.0.0-nightly.a1a8078ce9ce84c617e2f4369af8f690c736bbce_x64.dmg 一样是打开界面后,鼠标左右键点击在画布上,下面状态栏会显示对应的提示,但是画布无响应。 多点击几次程序会报错退出。 CPU 占用率依然很高。

系统版本: 15.1.1 (24B91) CPU:inter

Mac (M1)
稳定版, 开发版 亦是如此

:(

@hulyhulyhuly
Copy link

hulyhulyhuly commented Dec 31, 2024

Mac (M1)

按照 README 修改 src-tauri/tauri.conf.json 後,

  • pnpm tauri dev 正常使用

  • pnpm tauri build 构建失敗

    src/components/ui/Box.tsx:15:41 - error TS2344: Type 'E' does not satisfy the constraint 'keyof IntrinsicElements | ForwardRefExoticComponent<any> | (new (props: any) => Component<any, {}, any>) | ((props: any) => ReactNode)'.
      Type 'FunctionComponent<any>' is not assignable to type 'keyof IntrinsicElements | ForwardRefExoticComponent<any> | (new (props: any) => Component<any, {}, any>) | ((props: any) => ReactNode)'.
        Property '$$typeof' is missing in type 'FunctionComponent<any>' but required in type 'ForwardRefExoticComponent<any>'.
    
    15 const Box = forwardRef<React.ElementRef<E>, BoxProps<E>>(
                                               ~
    
      node_modules/.pnpm/@[email protected]/node_modules/@types/react/index.d.ts:562:18
        562         readonly $$typeof: symbol;
                             ~~~~~~~~
        '$$typeof' is declared here.
    
    
    Found 1 error in src/components/ui/Box.tsx:15
    
     ELIFECYCLE  Command failed with exit code 2.
    beforeBuildCommand `pnpm build` failed with exit code 2
        Error beforeBuildCommand `pnpm build` failed with exit code 2
     ELIFECYCLE  Command failed with exit code 1.
    

@zty012
Copy link
Contributor Author

zty012 commented Jan 5, 2025

现在的mac版本不用修改json文件手动构建了

@xkwxdyy
Copy link

xkwxdyy commented Jan 8, 2025

mac m1,macOS 15.1,稳定版和开发版的用了教程里的终端命令后都无法打开,也不弹出什么 apple 的闪退信息了,直接是打不开,app 图标跳了一下就没动静了

@kortin99
Copy link

kortin99 commented Jan 8, 2025

mac m1,macOS 15.1,稳定版和开发版的用了教程里的终端命令后都无法打开,也不弹出什么 apple 的闪退信息了,直接是打不开,app 图标跳了一下就没动静了

same issue, MacBook Pro M1 Pro

@earmer
Copy link

earmer commented Jan 11, 2025

截至目前这个版本在手动构建之后软件仍然可用但只能是pnpm tauri dev的状态。甚是奇怪。

@earmer
Copy link

earmer commented Jan 11, 2025

此外各个快捷键也都没有适配,例如{Ctrl}的某些操作应当映射到{Command}上。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants