Skip to content

Commit fd8f8d7

Browse files
authored
Add postInstall step to restore the executable bit on scripts. (#244)
* Add postInstall step to restore the executable bit on scripts. * Removed comma
1 parent 2726564 commit fd8f8d7

25 files changed

+17
-1
lines changed

.circleci/Dockerfiles/scripts/run-android-docker-instrumentation-tests.sh

100644100755
File mode changed.

.circleci/Dockerfiles/scripts/run-android-docker-unit-tests.sh

100644100755
File mode changed.

Folly/build/fbcode_builder/docker_build_with_ccache.sh

100644100755
File mode changed.

Folly/build/fbcode_builder/travis_docker_build.sh

100644100755
File mode changed.

Folly/folly/build/bootstrap-osx-homebrew.sh

100644100755
File mode changed.

Folly/folly/build/build_debs_ubuntu_14.04.sh

100644100755
File mode changed.

Folly/folly/build/deps_ubuntu_12.04.sh

100644100755
File mode changed.

Folly/folly/experimental/symbolizer/test/gnu_debuglink_test.sh

100644100755
File mode changed.

glog/ltmain.sh

100644100755
File mode changed.

glog/packages/deb.sh

100644100755
File mode changed.

glog/packages/rpm.sh

100644100755
File mode changed.

glog/src/demangle_unittest.sh

100644100755
File mode changed.

glog/src/logging_striplog_test.sh

100644100755
File mode changed.

glog/src/signalhandler_unittest.sh

100644100755
File mode changed.

glog/src/windows/preprocess.sh

100644100755
File mode changed.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@
7979
"test-android-unit": "yarn run docker-build-android && yarn run test-android-run-unit",
8080
"test-android-e2e": "yarn run docker-build-android && yarn run test-android-run-e2e",
8181
"build-ios-e2e": "detox build -c ios.sim.release",
82-
"test-ios-e2e": "detox test -c ios.sim.release RNTester/e2e"
82+
"test-ios-e2e": "detox test -c ios.sim.release RNTester/e2e",
83+
"postinstall": "node scripts/postInstall.js"
8384
},
8485
"peerDependencies": {
8586
"react": "16.8.6"

scripts/clone-sdxplatform.sh

100644100755
File mode changed.

scripts/fixmacscripts.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/sh
2+
3+
# npm publish is currently performed on Windows build agents and loses the executable bit on files.
4+
# restore the executable bit during npm postinstall
5+
6+
echo "Fixing the executable bit on macOS scripts"
7+
8+
find . -iname \*.sh -exec chmod +x {} \;
9+
find . -iname \*.command -exec chmod +x {} \;

scripts/generate-rncore.sh

100644100755
File mode changed.

scripts/logging.sh

100644100755
File mode changed.

scripts/node-binary.sh

100644100755
File mode changed.

scripts/postInstall.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
const child_process = require('child_process');
2+
3+
const isMacOS = process.platform === 'darwin';
4+
if (isMacOS) {
5+
child_process.execSync('source scripts/fixmacscripts.sh', {stdio: 'inherit'});
6+
}

scripts/vsto-test-ci.sh

100644100755
File mode changed.

scripts/vsto-test-cleanup.sh

100644100755
File mode changed.

scripts/vsto-test-setup.sh

100644100755
File mode changed.

0 commit comments

Comments
 (0)