mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
rake creatfile is dependant on bootstrap task
This commit is contained in:
18
Rakefile
18
Rakefile
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user