Skip to content

Commit 2f9f4c6

Browse files
committed
Directly pass in the value of AC_USERNAME.
1 parent bb35b07 commit 2f9f4c6

File tree

1 file changed

+7
-1
lines changed
  • .github/scripts/release/macos

1 file changed

+7
-1
lines changed

.github/scripts/release/macos/sign.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,12 @@ function sign_with_gon {
8181
echo "Signing ${filepath}"
8282
local log_file="/tmp/gon-$(basename "${filepath}").log"
8383

84+
# Expand @env:AC_USERNAME since gon's expansion is unreliable
85+
local tmp_config="/tmp/gon-config-$(basename "${filepath}")"
86+
sed "s|@env:AC_USERNAME|${AC_USERNAME}|g" "${filepath}" > "${tmp_config}"
87+
8488
# Use debug log level to capture notarization submission IDs for debugging
85-
"${gon_cmd}" -log-level=debug "${filepath}" 2>&1 | tee "${log_file}" || {
89+
"${gon_cmd}" -log-level=debug "${tmp_config}" 2>&1 | tee "${log_file}" || {
8690
echo ""
8791
echo "❌ Signing/notarization failed for ${filepath}"
8892

@@ -104,6 +108,8 @@ function sign_with_gon {
104108
echo ""
105109
exit 1
106110
}
111+
112+
rm -f "${tmp_config}"
107113
done
108114
}
109115

0 commit comments

Comments
 (0)