diff --git a/Rakefile b/Rakefile index ffb21c054..dde454e25 100644 --- a/Rakefile +++ b/Rakefile @@ -15,7 +15,9 @@ desc "Create xcode project from gyp file" task "create-xcode-project" => ["update-cef", "update-node"] do `rm -rf atom.xcodeproj` `script/generate-sources-gypi` - `gyp --depth=. -D CODE_SIGN="#{ENV['CODE_SIGN']}" atom.gyp` + version = %{-D version="#{ENV['VERSION']}"} if ENV['VERSION'] + code_sign = %{-D code_sign="#{ENV['CODE_SIGN']}"} if ENV['CODE_SIGN'] + `gyp --depth=. #{code_sign} #{version} atom.gyp` end desc "Update CEF to the latest version specified by the prebuilt-cef submodule" diff --git a/atom.gyp b/atom.gyp index b8ce02cc3..21675fd86 100644 --- a/atom.gyp +++ b/atom.gyp @@ -2,6 +2,8 @@ 'variables': { 'pkg-config': 'pkg-config', 'chromium_code': 1, + 'version%': "