Commit 17275eb8 authored by Nolan Waite's avatar Nolan Waite

Move shell script creation out of installer

parent fcbef0fc
...@@ -219,14 +219,8 @@ module Pod ...@@ -219,14 +219,8 @@ module Pod
build_phase.files << libfile.buildFiles.new build_phase.files << libfile.buildFiles.new
end end
copy_resources = app_project.objects.add(Xcode::Project::PBXShellScriptBuildPhase, { copy_resources = app_project.add_shell_script_build_phase('Copy Pods Resources',
'name' => 'Copy Pods Resources', "${SRCROOT}/Pods/Pods-resources.sh\n")
'files' => [],
'inputPaths' => [],
'outputPaths' => [],
'shellPath' => '/bin/sh',
'shellScript' => "${SRCROOT}/Pods/Pods-resources.sh\n"
})
app_project.targets.each { |target| target.buildPhases << copy_resources } app_project.targets.each { |target| target.buildPhases << copy_resources }
app_project.save_as(projpath) app_project.save_as(projpath)
......
...@@ -627,6 +627,17 @@ module Pod ...@@ -627,6 +627,17 @@ module Pod
}) })
end end
def add_shell_script_build_phase(name, script_path)
objects.add(Xcode::Project::PBXShellScriptBuildPhase, {
'name' => name,
'files' => [],
'inputPaths' => [],
'outputPaths' => [],
'shellPath' => '/bin/sh',
'shellScript' => script_path
})
end
def build_files def build_files
objects.select_by_class(PBXBuildFile) objects.select_by_class(PBXBuildFile)
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment