Skip to content

Commit 2852f9c

Browse files
committed
fix(release): ad-hoc sign packaged binaries
1 parent 3bebbf2 commit 2852f9c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/build-release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ for product in "${products[@]}"; do
102102
cp "$source_path" "$target_path"
103103
chmod +x "$target_path"
104104
if command -v codesign >/dev/null 2>&1; then
105-
codesign --remove-signature "$target_path" >/dev/null 2>&1 || true
105+
codesign --force --sign - "$target_path" >/dev/null
106106
fi
107107
done
108108

scripts/package-universal.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ for product in "${products[@]}"; do
110110
lipo -create -output "$target" "$arm_bin/$product" "$x86_bin/$product"
111111
chmod +x "$target"
112112
if command -v codesign >/dev/null 2>&1; then
113-
codesign --remove-signature "$target" >/dev/null 2>&1 || true
113+
codesign --force --sign - "$target" >/dev/null
114114
fi
115115
done
116116

0 commit comments

Comments
 (0)