mac m2安装 aria2 以及对应图形化界面 AriaNg 文件损坏

安装

直接用命令行进行安装

bash 复制代码
brew install aria2

应用

bash 复制代码
aria2c -c -o ~/Videos/CCTV/新闻联播.mp4 "https://xxx.m3u8" --header "Referer:https://tv.cctv.com"

抓直播流

bash 复制代码
brew install ffmpeg
ffmpeg -i input.ts -c:v copy -c:a copy ~/Videos/CCTV/直播录制.mp4

可视化软件

bash 复制代码
# 方法1:Homebrew(推荐)
brew install --cask ariang
# 方法2:官网下载dmg拖入应用程序:https://github.com/mayswind/AriaNg-GUI/releases

# 启动 RPC(后台运行,保存配置到 ~/.aria2/aria2.conf)
aria2c --enable-rpc --rpc-listen-all=true --rpc-allow-origin-all -D

安装后不能使用

安装后 在程序里面就有

AriaNg Native

但是打开 显示 文件损坏 ,在安全里面也没有仍然打开如有可尝试

系统设置确认 Gatekeeper 放行(macOS 15+ 必需)

苹果图标 → 系统设置 → 隐私与安全性 → 下滑到 "安全性"。

若有 "已请求关闭应用程序评估",点击关闭(仅临时,可随时恢复)。

若提示 "无法验证开发者",点击仍要打开。

通过终端临时关闭 Gatekeeper(重启 Mac 后会自动恢复开启,不影响系统安全),无效

sudo spctl --master-disable

不用再测试永久关闭签名校验。不死心的可以尝试

关闭永久校验:

bash 复制代码
sudo spctl --master-disable
sudo defaults write /Library/Preferences/com.apple.security GKAutoRearm -bool NO

恢复系统默认(重新开启校验):

bash 复制代码
sudo spctl --master-enable
sudo defaults delete /Library/Preferences/com.apple.security GKAutoRearm

执行后重启 Mac,即可生效。

尝试 使用启用 Rosetta 2(M2 转译 Intel 应用) 无效,无此选项 ,如有可尝试

  1. 右键 AriaNg → 显示简介 → 勾选使用 Rosetta 打开。
  2. 重新右键打开,即可正常启动。

最终解决方案(执行后可用)

bash 复制代码
xattr -cr /Applications/AriaNg.app
相关推荐
Lancker12 小时前
没有 Mac 也能上架 iOS:GitHub Actions 全自动构建 + 签名 + TestFlight 送审实录
macos·ios·github
fei_sun1 天前
RIB、FIB、MAC 、ARP 表
服务器·网络·macos
Highcharts.js1 天前
如何在macOS桌面应用集成Highcharts
macos·highcharts·前端可视化·交互图表
zaemyn20201 天前
macOS 上 AccessClient 无法唤起?排查 Python 架构与 Windows App 识别问题
windows·python·macos·远程桌面·accessclient
应用市场3 天前
把旧 Pixel 变成相册备份中转站(上):Mac 到安卓的照片传输工具设计——流式上传、sha256 校验、adb forward 与 Bonjour
android·macos·adb·kotlin·swift
Peter(阿斯拉)4 天前
[macOS Tahoe 26]_[使用SmartSVN访问库路径报错的问题]
macos·svn·tahoe·smartsvn·macos26
andyweike4 天前
iOS语法原理
macos·objective-c·cocoa
传奇开心果编程4 天前
【SwiftUI提高练中学】第8课 网络层架构:拦截器、重试、缓存与离线优先
学习·macos·ui·ios·swiftui
xUxIAOrUIII4 天前
日常笔记-1005-1
linux·笔记·python·macos
传奇开心果编程5 天前
【Compose Multiplatform 跨端开发学与练】第9课 测试与调试
android·学习·macos·ios·kotlin·web·composer