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:
Родитель
2726564bf3
Коммит
fd8f8d7680
0
.circleci/Dockerfiles/scripts/run-android-docker-instrumentation-tests.sh
Normal file → Executable file
0
.circleci/Dockerfiles/scripts/run-android-docker-instrumentation-tests.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,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,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'});
|
||||
}
|
Загрузка…
Ссылка в новой задаче