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 11无法打开软件 #120

Closed
niuhuan opened this issue Jan 14, 2022 · 9 comments
Closed

macOS 11无法打开软件 #120

niuhuan opened this issue Jan 14, 2022 · 9 comments
Labels
bug Something isn't working

Comments

@niuhuan
Copy link

niuhuan commented Jan 14, 2022

操作系统

macOS Big Sur (11.6)

网络环境

问题描述

无法打开

复现步骤

拖到Applications文件夹并从Launcher中打开

日志提交

无日志

截图

QQ20220114-131828

@niuhuan niuhuan added the bug Something isn't working label Jan 14, 2022
@niuhuan
Copy link
Author

niuhuan commented Jan 14, 2022

类似 #79

@tonquer
Copy link
Owner

tonquer commented Jan 14, 2022

类似 #79

试试 #110

@niuhuan
Copy link
Author

niuhuan commented Jan 14, 2022

可以了 @tonquer , 这个打包的时候做好呢? 如果不能的话, 要不要PIN一个issue 😊

@tonquer
Copy link
Owner

tonquer commented Jan 14, 2022

这个是macos限制的,没签名的软件是这样的,你从浏览器下载的话,他会修改你的文件,标识从浏览器下载的,打开就会提示文件损坏
如果是通过scp、ftp、wget之类的下载,安装打开就不会有这个提示

@tonquer tonquer pinned this issue Jan 14, 2022
@niuhuan
Copy link
Author

niuhuan commented Jan 14, 2022

我也经常打包dmg上传到github, 但是没有遇到过此类问题, 命令行不知道能不能对你提供帮助。

# 清理旧的
rm -rf appimage
# 创建要打包的文件夹
mkdir appimage
# 将Applications文件将链接到appimage内
ln -sf /Applications appimage/
# 同步文件
rsync -ax build/abc.app/ appimage/abc.app/
# 打包
hdiutil create -volname abc -srcfolder appimage -ov -format UDBZ abc-v1.1.1.dmg

会提示用户在安全选项内允许应用的运行

@tonquer
Copy link
Owner

tonquer commented Jan 14, 2022

image
试了是一样的

@niuhuan
Copy link
Author

niuhuan commented Jan 14, 2022

这不一样

  • pikapika是提示安全问题, 并且设置中会出现被禁止的软件提示,去设置安全选项设置一下就能用了, 网络传输后的软件大都一样, 大部分人知道怎么设置。

  • picacg-qt是直接提示损坏, 必须命令行修复(至少我的macos 11 是这样), 安全选项不会出现设置, 还要翻看issue或查找帮助。

1
3

2

我并不知道为什么会这样

tonquer added a commit that referenced this issue Jan 14, 2022
@tonquer
Copy link
Owner

tonquer commented Jan 14, 2022

执行这个打包

xattr -cr dist/PicACG.app

测试了不会再出现已损坏提示。

@niuhuan
Copy link
Author

niuhuan commented Jan 14, 2022

可以把pin去掉,然后把这个关掉了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants