diff --git a/Rakefile b/Rakefile index 4738d367f..a6cc7a56a 100644 --- a/Rakefile +++ b/Rakefile @@ -15,7 +15,8 @@ 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'] + `gyp --depth=. -D CODE_SIGN="#{ENV['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..625578233 100644 --- a/atom.gyp +++ b/atom.gyp @@ -2,6 +2,7 @@ 'variables': { 'pkg-config': 'pkg-config', 'chromium_code': 1, + 'version%': "