Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add postInstall step to restore the executable bit on scripts. #244

Merged
merged 2 commits into from
Jan 30, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file.
Empty file modified .circleci/Dockerfiles/scripts/run-android-docker-unit-tests.sh
100644 → 100755
Empty file.
Empty file modified Folly/build/fbcode_builder/docker_build_with_ccache.sh
100644 → 100755
Empty file.
Empty file modified Folly/build/fbcode_builder/travis_docker_build.sh
100644 → 100755
Empty file.
Empty file modified Folly/folly/build/bootstrap-osx-homebrew.sh
100644 → 100755
Empty file.
Empty file modified Folly/folly/build/build_debs_ubuntu_14.04.sh
100644 → 100755
Empty file.
Empty file modified Folly/folly/build/deps_ubuntu_12.04.sh
100644 → 100755
Empty file.
Empty file modified Folly/folly/experimental/symbolizer/test/gnu_debuglink_test.sh
100644 → 100755
Empty file.
Empty file modified glog/ltmain.sh
100644 → 100755
Empty file.
Empty file modified glog/packages/deb.sh
100644 → 100755
Empty file.
Empty file modified glog/packages/rpm.sh
100644 → 100755
Empty file.
Empty file modified glog/src/demangle_unittest.sh
100644 → 100755
Empty file.
Empty file modified glog/src/logging_striplog_test.sh
100644 → 100755
Empty file.
Empty file modified glog/src/signalhandler_unittest.sh
100644 → 100755
Empty file.
Empty file modified glog/src/windows/preprocess.sh
100644 → 100755
Empty file.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@
"test-android-unit": "yarn run docker-build-android && yarn run test-android-run-unit",
"test-android-e2e": "yarn run docker-build-android && yarn run test-android-run-e2e",
"build-ios-e2e": "detox build -c ios.sim.release",
"test-ios-e2e": "detox test -c ios.sim.release RNTester/e2e"
"test-ios-e2e": "detox test -c ios.sim.release RNTester/e2e",
"postinstall": "node scripts/postInstall.js"
},
"peerDependencies": {
"react": "16.8.6"
Expand Down
Empty file modified scripts/clone-sdxplatform.sh
100644 → 100755
Empty file.
9 changes: 9 additions & 0 deletions scripts/fixmacscripts.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/sh

# npm publish is currently performed on Windows build agents and loses the executable bit on files.
# restore the executable bit during npm postinstall

echo "Fixing the executable bit on macOS scripts"

find . -iname \*.sh -exec chmod +x {} \;
find . -iname \*.command -exec chmod +x {} \;
Empty file modified scripts/generate-rncore.sh
100644 → 100755
Empty file.
Empty file modified scripts/logging.sh
100644 → 100755
Empty file.
Empty file modified scripts/node-binary.sh
100644 → 100755
Empty file.
6 changes: 6 additions & 0 deletions scripts/postInstall.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
const child_process = require('child_process');

const isMacOS = process.platform === 'darwin';
if (isMacOS) {
child_process.execSync('source scripts/fixmacscripts.sh', {stdio: 'inherit'});
}
Empty file modified scripts/vsto-test-ci.sh
100644 → 100755
Empty file.
Empty file modified scripts/vsto-test-cleanup.sh
100644 → 100755
Empty file.
Empty file modified scripts/vsto-test-setup.sh
100644 → 100755
Empty file.