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 没有签名导致从网页下载时显示文件损坏 | Unsigned macOS File Corruption on Download #29

Open
uiYzzi opened this issue Jan 13, 2025 · 3 comments
Labels
enhancement New feature or request

Comments

@uiYzzi
Copy link

uiYzzi commented Jan 13, 2025

问题描述

如果没有苹果开发者账号,可以尝试使用临时代码签名的方式避免这个问题,在tauri.conf.json 中添加:

  "bundle": {
    "macOS": {
      "signingIdentity": "-"
    }
  }

参考:
tauri-apps/tauri#8763


If you do not have an Apple Developer account, you can try using a temporary code signing method to avoid this issue. Add the following to your tauri.conf.json:

  "bundle": {
    "macOS": {
      "signingIdentity": "-"
    }
  }

Reference:
tauri-apps/tauri#8763

预期行为

实际行为

截图或录屏

图片

工具版本号

0.5

其他

No response

@uiYzzi uiYzzi added the bug Something isn't working label Jan 13, 2025
@uiYzzi
Copy link
Author

uiYzzi commented Jan 13, 2025

使用临时代码签名即时在没有苹果开发者账号的情况下也不会出现“已损坏”

@lanyeeee lanyeeee added enhancement New feature or request and removed bug Something isn't working labels Jan 13, 2025
@lanyeeee
Copy link
Owner

感谢建议,看起来挺简单的,不过我没有mac,没法验证是否有效
我刚通过github action在这里生成了一批添加了"signingIdentity": "-"的安装包,如果你方便的话可以下载来试试是否有效。或者你通过自己的方式build也行
如果你确定有效的话,欢迎提交PR

@uiYzzi
Copy link
Author

uiYzzi commented Jan 13, 2025

感谢建议,看起来挺简单的,不过我没有mac,没法验证是否有效 我刚通过github action在这里生成了一批添加了"signingIdentity": "-"的安装包,如果你方便的话可以下载来试试是否有效。或者你通过自己的方式build也行 如果你确定有效的话,欢迎提交PR

我测试了你 build 的安装包是有效的,不再显示已损坏了,并且我自己的项目也在使用这个方法
图片

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Development

No branches or pull requests

2 participants