Commit Graph

170 Commits

Author SHA1 Message Date
Kevin Sawicki
b0ec0cda7f Merge remote-tracking branch 'origin/dev' into cefode 2013-03-07 11:44:46 -08:00
probablycorey
0c067b55ba Make rake install build with default configuration 2013-03-05 14:32:51 -08:00
Adam Roben
8394852f07 Remove the :package rake task
We don't need this anymore since Constructicon takes care of packaging
the app.
2013-03-05 14:32:51 -08:00
Cheng Zhao
fe7f43155a Use the dowload script of prebuilt-cef. 2013-03-05 15:04:17 +01:00
Cheng Zhao
f170d37479 Use cefode's CEF binary. 2013-03-05 09:10:04 +01:00
Kevin Sawicki
69f79b940b Update nof task for new package generator naming scheme 2013-03-04 20:05:42 -08:00
Joshua Peek
04ec1b01be Fallback to /usr/local/bin/atom 2013-03-04 14:45:24 -06:00
Adam Roben
83ee2d23b3 Use gyp's rules functionality to compile .coffee/.cson files
Instead of finding and compiling all .coffee/.cson files in
script/copy-files-to-bundle, we now tell gyp how to do this for us. It
works like this:

1. Rakefile invokes the new script/generate-sources-gypi script to
   generate sources.gypi. This file lists all the .coffee/.cson files in
   the src, static, and vendor directories, as well as a new
   compiled_sources_dir variable that specifies where the compiled
   versions of the files should be placed.
2. atom.gyp includes sources.gypi.
3. atom.gyp has a new target, generated_sources, which contains all the
   .coffee/.cson files, and uses two rules to tell gyp how to compile
   them. The rules invoke the new script/compile-coffee and
   script/compile-cson files once for each file.
4. gyp generates one Makefile for each rule to actually perform the
   compilation.
5. script/copy-files-to-bundle now takes the compiled_sources_dir
   variable as an argument, and copies files both from there and from
   the repository into the Resources directory.

By putting the compilation into a different target, we can do it in
parallel with compiling/linking our binaries. And gyp automatically runs
make using -j$(sysctl -n hw.ncpu), so compilation of .coffee/.cson files
happens in parallel, too.

These changes reduce clean build time on my MacBook Pro from 55 seconds
to 46 seconds.
2013-03-04 11:32:06 -05:00
Adam Roben
c96e9acb64 Merge pull request #326 from github/framework
Move all code and resources into Atom.framework
2013-03-04 06:10:27 -08:00
probablycorey
4e971b085e Now that specs can handle symlinks, put atom-build in /tmp 2013-03-01 13:54:19 -08:00
Adam Roben
225aca016b Preserve symlinks during rake install
This prevents resources within Atom.framework from getting duplicated
within the bundle.

This shrinks a `rake install`-ed Atom.app from 124MB to 82MB.
2013-03-01 16:35:47 -05:00
Adam Roben
1c13ab8511 Add "rake download-cef-symbols" to...download CEF symbols 2013-03-01 13:19:23 -05:00
Corey Johnson & Kevin Sawicki
352607f9b4 Remove bump-patch-number from Rakefile 2013-02-28 10:16:01 -08:00
Corey Johnson
40d50c58c4 Remove worthless line from Rakefile
/cc @aroben
2013-02-28 09:26:51 -08:00
Corey Johnson
9454cce157 Calling rake package will codesign the app 2013-02-26 16:43:15 -08:00
Corey Johnson
2b3bd11a46 Use tar.bz2 instead of zip to package Atom.app
zip was modifying some framework binaries, which causes codesigning to fail
2013-02-26 15:07:11 -08:00
Kevin Sawicki & Nathan Sobo
99c1819ceb Install cli to /opt/boxen if it exists 2013-02-25 12:40:59 -08:00
Corey Johnson
8b92b15b58 💄 2013-02-25 09:24:31 -08:00
Kevin Sawicki
74ac77e0eb Install atom.sh when running rake install
This was removed in commit d35c871e17
but shouldn't have been.
2013-02-24 08:16:16 -08:00
Kevin Sawicki
d35c871e17 Install atom executable during window.startup()
Previously this was done during `rake install`.

Also default to `~/github/atom` as the default resource path
when no `--resource-path` argument is specified.  This argument
will now be required when running in dev mode if the repository
is not at the default location.

Closes #300
2013-02-22 21:19:34 -08:00
Corey Johnson & Kevin Sawicki
8e6ae81169 Add rake deploy 2013-02-22 16:17:39 -08:00
Corey Johnson
052b7923ac Add bump patch number to rakefile 2013-02-22 16:16:21 -08:00
Corey Johnson & Kevin Sawicki
aeac64ce68 Open with -a instead of application path 2013-02-22 15:52:51 -08:00
Corey Johnson & Kevin Sawicki
31d8151c3e Copy themes to ~/.atom/themes when config loads 2013-02-22 14:46:30 -08:00
Corey Johnson
b14099c10d Add update-cef dependency on rake test 2013-02-20 13:56:39 -08:00
Corey Johnson
eb7ed3df33 rake test uses source as its resource dir 2013-02-19 10:57:04 -08:00
Corey Johnson
c5a049dd0f Make rake test work again 2013-02-19 10:57:04 -08:00
Adam Roben
0599f83959 Show output from prebuilt-cef/script/download 2013-02-18 08:13:59 -05:00
Adam Roben
668921d336 Remove CEF from the repo and download it as needed
We now use github/prebuilt-cef to download CEF from S3, then build
against that. This means we no longer need to have CEF committed to the
repo.

Fixes #280.
2013-02-17 11:59:06 -05:00
Corey Johnson
a2bcea7d06 rake nof ignores package-generator spec templates 2013-02-14 11:37:55 -08:00
Corey Johnson
71246dde1b Remove rake run
Fixes #273
2013-02-13 13:09:49 -08:00
Corey Johnson
4b7e8b6a37 Clean up .atom creation 2013-02-13 13:09:49 -08:00
Corey Johnson
c370a027ff Rename create-project to create-xcode-project 2013-02-13 13:09:49 -08:00
Nathan Sobo
9973fb14e8 Run rake clean prior to running rake install 2013-02-07 12:23:37 -07:00
Will Farrington
b333cf2734 rake clean should kill the compiled scripts directory 2013-02-06 15:10:25 -08:00
Jon Rohan
c2af8712d1 Creating GitHub_Dark and GitHub_Light. 2013-01-31 19:01:44 -05:00
Justin Palmer
2982c5e51a need -r when copying packages directory 2013-01-31 10:22:36 -08:00
Justin Palmer
30103b66fc move old atom.coffee to user.coffee on rake install if it exists 2013-01-31 10:18:25 -08:00
Justin Palmer
389ecc0b4a copy over user.coffee in rake task 2013-01-30 15:34:26 -08:00
Kevin Sawicki
154d2306ce Specify resource path when running test task
Now that the release build is generated from rake
install the RESOURCE_PATH is no longer defined so
explicitly set it via an argument to the launched
application.
2013-01-28 16:49:41 -08:00
Kevin Sawicki
6218b58fd4 Use valid configuration option syntax 2013-01-28 13:02:27 -08:00
Jon Rohan
28e6ca5fa7 updating the rakefile to pull in the atom dark/light themes into the .atom directory 2013-01-22 13:29:16 -08:00
Kevin Sawicki
88b0b90073 Include vendor folder when generating tags 2013-01-16 09:25:07 -08:00
Kevin Sawicki
3e8913f518 Be quiet 2013-01-04 08:18:52 -08:00
Kevin Sawicki
b0d38d0ac7 Sync submodules before updating 2013-01-04 08:18:52 -08:00
Kevin Sawicki
4078046ac6 Vendor textmate bundles as submodules 2013-01-04 08:18:52 -08:00
Nathan Sobo
2b6ee54a81 Move all bundles in ~/.atom/bundles to packages if that dir exists
This fixes a bug where we always moved the `bundles` dir inside the
`packages` dir if it existed, which caused a load error trying to load
the `bundles` dir as if it were a package.
2012-12-31 12:40:39 -06:00
Nathan Sobo
e11c7e21fb This code didn't do what the comment said it did. 2012-12-31 12:35:26 -06:00
Corey Johnson
d77fc88ff4 Merge remote-tracking branch 'origin/master' into config 2012-12-27 10:38:24 -08:00
Kevin Sawicki
6d5ae9fcb9 Add json bundle to Rakefile 2012-12-26 21:08:09 -08:00