File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
.github/scripts/release/macos Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments