rake creatfile is dependant on bootstrap task

This commit is contained in:
Corey Johnson
2012-10-16 08:56:33 -07:00
parent a736063e7e
commit e5a732c6ff

View File

@@ -4,16 +4,8 @@ ATOM_SRC_PATH = File.dirname(__FILE__)
DOT_ATOM_PATH = ENV['HOME'] + "/.atom"
BUILD_DIR = 'atom-build'
desc "Create xcode project from gyp file"
task "create-project" do
`rm -rf atom.xcodeproj`
`gyp --depth=. atom.gyp`
end
desc "Build Atom via `xcodebuild`"
task :build => "create-project" do
`script/bootstrap`
command = "xcodebuild -target Atom configuration=Release SYMROOT=#{BUILD_DIR}"
output = `#{command}`
if $?.exitstatus != 0
@@ -22,6 +14,16 @@ task :build => "create-project" do
end
end
desc "Create xcode project from gyp file"
task "create-project" => "bootstrap" do
`rm -rf atom.xcodeproj`
`gyp --depth=. atom.gyp`
end
task "bootstrap" do
`script/bootstrap`
end
desc "Creates symlink from `application_path() to /Applications/Atom and creates `atom` cli app"
task :install => :build do
path = application_path()