mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Add The Setup's env when Xcode copy files to bundle.
This commit is contained in:
8
atom.gyp
8
atom.gyp
@@ -144,9 +144,7 @@
|
||||
{
|
||||
'postbuild_name': 'Copy and Compile Static Files',
|
||||
'action': [
|
||||
'rake',
|
||||
'--trace',
|
||||
'copy-files-to-bundle',
|
||||
'script/copy-files-to-bundle'
|
||||
],
|
||||
},
|
||||
{
|
||||
@@ -326,9 +324,7 @@
|
||||
{
|
||||
'postbuild_name': 'Copy and Compile Static Files',
|
||||
'action': [
|
||||
'rake',
|
||||
'--trace',
|
||||
'copy-files-to-bundle',
|
||||
'script/copy-files-to-bundle'
|
||||
],
|
||||
},
|
||||
],
|
||||
|
||||
12
script/copy-files-to-bundle
Executable file
12
script/copy-files-to-bundle
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
# This can only be run by xcodebuild!
|
||||
|
||||
# Because of the way xcodebuild invokes external scripts we need to load
|
||||
# The Setup's environment ourselves. If this isn't done, things like the
|
||||
# node shim won't be able to find the stuff they need.
|
||||
|
||||
if [ -f /opt/github/env.sh ]; then
|
||||
source /opt/github/env.sh
|
||||
fi
|
||||
|
||||
rake --trace copy-files-to-bundle
|
||||
Reference in New Issue
Block a user