From 9663c82e1d9a18c23a43234a3a70740ecaed2a31 Mon Sep 17 00:00:00 2001 From: zjt003 Date: Sun, 19 Jan 2025 17:44:45 +0800 Subject: [PATCH] Update package-osx.sh --- package-osx.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/package-osx.sh b/package-osx.sh index 042e29b7..a7543d43 100755 --- a/package-osx.sh +++ b/package-osx.sh @@ -55,4 +55,8 @@ create-dmg \ --hide-extension "v2rayN.app" \ --app-drop-link 500 185 \ "v2rayN-${Arch}.dmg" \ - "$PackagePath/v2rayN.app" \ No newline at end of file + "$PackagePath/v2rayN.app" + +# 为生成的 DMG 文件创建 SHA256 校验值文件 +SHA256File="v2rayN-${Arch}.dmg.sha256" +shasum -a 256 "v2rayN-${Arch}.dmg" > "$SHA256File"