diff --git a/.github/workflows/microsoft-test-react-native-macos-init.yml b/.github/workflows/microsoft-test-react-native-macos-init.yml index cf5543cb372a..e9cfd19d0fe4 100644 --- a/.github/workflows/microsoft-test-react-native-macos-init.yml +++ b/.github/workflows/microsoft-test-react-native-macos-init.yml @@ -62,9 +62,6 @@ jobs: run: | set -eox pipefail npm install ${{ runner.temp }}/react-native-macos.tgz - # yarn pack strips execute bits from shell scripts. - # publishConfig.executableFiles could fix this but doesn't support globs. - find node_modules/react-native-macos/scripts -name '*.sh' -exec chmod +x {} + - name: Apply macOS template working-directory: ${{ runner.temp }}/testcli diff --git a/packages/react-native/package.json b/packages/react-native/package.json index 874cc2cb47f8..b8408b9a3d7f 100644 --- a/packages/react-native/package.json +++ b/packages/react-native/package.json @@ -27,6 +27,27 @@ "react-native": "cli.js", "react-native-macos": "cli.js" }, + "publishConfig": { + "executableFiles": [ + "scripts/find-node-for-xcode.sh", + "scripts/ios-configure-glog.sh", + "scripts/node-binary.sh", + "scripts/packager.sh", + "scripts/react-native-xcode.sh", + "scripts/react_native_pods_utils/script_phases.sh", + "scripts/update-ruby.sh", + "scripts/xcode/ccache-clang.sh", + "scripts/xcode/ccache-clang++.sh", + "scripts/xcode/with-environment.sh", + "sdks/hermes-engine/utils/build-apple-framework.sh", + "sdks/hermes-engine/utils/build-hermes-xcode.sh", + "sdks/hermes-engine/utils/build-hermesc-xcode.sh", + "sdks/hermes-engine/utils/build-ios-framework.sh", + "sdks/hermes-engine/utils/build-mac-framework.sh", + "sdks/hermes-engine/utils/copy-hermes-xcode.sh", + "sdks/hermes-engine/utils/create-dummy-hermes-xcframework.sh" + ] + }, "main": "./index.js", "types": "types", "exports": {