Skip to content

[Bug] MacOS用dmg包安装替换旧版本后,提示已损坏,无法打开。 #18

Description

@dc0012

OS Version - 操作系统

MacOS

Launcher Version Details - 启动器版本信息

0.2.3

DSH Instance & Profile - DSH 实例与 profile

0.1.1-rc.2

Existing behavior - 现有行为

安装的 app 文件本身是完整、正确的:

/Applications/dsh-launcher.app 与 GitHub 官方 release DMG 里的 app 二进制完全一致(md5 相同),Info.plist、图标也一致
版本:0.2.3(正式版,非 dev.79),arm64,下载来源是官方 dsh-plugins/dsh-launcher releases
"已损坏"的真实原因:这个 app 是 adhoc 签名(linker-signed,TeamIdentifier=not set),即开发者没有做 Apple 公证(notarization)。macOS 对这类 app 的规则是:

app 自带 com.apple.quarantine 隔离标记(Chrome 下载产生的,xattr 里能看到)
双击启动 → Gatekeeper 校验 → 不通过 → 提示"已损坏,无法打开,请将其移到废纸篓"
这不是安装坏了——任何在 macOS 上直接双击带隔离标记、未公证的 app 都这样。签名校验报的 code has no resources but signature indicates they must be present 是 adhoc 签名的正常现象(链接器临时签名,无独立资源签名),与文件损坏无关。

Expected behavior - 预期行为

更新一下MacOS包的升级方式,另外主窗口点击右上角关闭后,无法再打开,必须右键退出才行,右上角的最小化,关闭按钮用的还是windows的,没有适配MacOS

To Reproduce - 复现问题

No response

Checks - 检查项

  • I have searched the issue tracker and confirmed that there is no identical issue. 我已经搜索问题追踪器并且确认没有相同的 Issue。
  • I admit that I previously checked all options without thorough verification and directly submitted this Issue, and I agree that it can be closed directly. 我承认此前未充分核实便勾选了所有选项并直接提交此 Issue ,且同意该 Issue 可被直接关闭。
  • I confirm that I am currently using the latest release or dev version of DSH Launcher. If not, this issue can be closed directly. 我确认当前使用的是 DSH Launcher 的最新正式版或开发版,若非如此,此 Issue 可被直接关闭。
  • I promise to provide a detailed description of the encountered issue, along with relevant logs and screenshots, rather than offering incomplete or vague information. 我承诺将详细描述遇到的问题,并提供相关日志与截图,而非提供不完整或模糊的信息。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐛 BugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions