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

* Add postInstall step to restore the executable bit on scripts.

* Removed comma
This commit is contained in:
Tom Underhill 2020-01-29 17:59:18 -08:00 коммит произвёл GitHub
Родитель 2726564bf3
Коммит fd8f8d7680
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
25 изменённых файлов: 17 добавлений и 1 удалений

Просмотреть файл

Просмотреть файл

0
Folly/build/fbcode_builder/docker_build_with_ccache.sh Normal file → Executable file
Просмотреть файл

0
Folly/build/fbcode_builder/travis_docker_build.sh Normal file → Executable file
Просмотреть файл

0
Folly/folly/build/bootstrap-osx-homebrew.sh Normal file → Executable file
Просмотреть файл

0
Folly/folly/build/build_debs_ubuntu_14.04.sh Normal file → Executable file
Просмотреть файл

0
Folly/folly/build/deps_ubuntu_12.04.sh Normal file → Executable file
Просмотреть файл

Просмотреть файл

0
glog/ltmain.sh Normal file → Executable file
Просмотреть файл

0
glog/packages/deb.sh Normal file → Executable file
Просмотреть файл

0
glog/packages/rpm.sh Normal file → Executable file
Просмотреть файл

0
glog/src/demangle_unittest.sh Normal file → Executable file
Просмотреть файл

0
glog/src/logging_striplog_test.sh Normal file → Executable file
Просмотреть файл

0
glog/src/signalhandler_unittest.sh Normal file → Executable file
Просмотреть файл

0
glog/src/windows/preprocess.sh Normal file → Executable file
Просмотреть файл

Просмотреть файл

@ -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"

0
scripts/clone-sdxplatform.sh Normal file → Executable file
Просмотреть файл

9
scripts/fixmacscripts.sh Executable file
Просмотреть файл

@ -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 {} \;

0
scripts/generate-rncore.sh Normal file → Executable file
Просмотреть файл

0
scripts/logging.sh Normal file → Executable file
Просмотреть файл

0
scripts/node-binary.sh Normal file → Executable file
Просмотреть файл

6
scripts/postInstall.js Normal file
Просмотреть файл

@ -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'});
}

0
scripts/vsto-test-ci.sh Normal file → Executable file
Просмотреть файл

0
scripts/vsto-test-cleanup.sh Normal file → Executable file
Просмотреть файл

0
scripts/vsto-test-setup.sh Normal file → Executable file
Просмотреть файл