message: ci: publish separate binaries for universal build
diff: @@ -396,9 +396,27 @@ fi
  # Check if we need to publish the binaries
  if [[ $PUBLISH_BINARY == true && $LIBCURL_RELEASE == $LATEST_LIBCURL_RELEASE ]]; then
  echo "Publish binary is true - Testing and publishing package with pregyp"
  + if [[ "$MACOS_UNIVERSAL_BUILD" == "true" ]]; then
  + # Need to publish two binaries when doing a universal build.
  + #
  + # Could also publish the universal build twice instead, but it might not
  + # play well with electron-builder which will try to lipo native add-ons
  + # for different architectures.
  + # --
  + # Build and publish x64 package
  + lipo build/Release/node_libcurl.node -thin x86_64 -output lib/binding/node_libcurl.node
  + npm_config_target_arch=x64 yarn pregyp package testpackage --verbose
  + npm_config_target_arch=x64 node scripts/module-packaging.js --publish "$(yarn --silent pregyp reveal staged_tarball --silent)"
  +
  + # Build and publish arm64 package.
  + lipo build/Release/node_libcurl.node -thin arm64 -output lib/binding/node_libcurl.node
  + npm_config_target_arch=x64 yarn pregyp package --verbose # Can't testpackage for arm64 yet.
  + npm_config_target_arch=arm64 node scripts/module-packaging.js --publish "$(yarn --silent pregyp reveal staged_tarball --silent)"
  + else
  yarn pregyp package testpackage --verbose
  node scripts/module-packaging.js --publish "$(yarn --silent pregyp reveal staged_tarball --silent)"
  fi
  +fi
  # In case we published the binaries, verify if we can download them, and that they work
  # Otherwise, unpublish them
  