Commit Graph

76 Commits

Author SHA1 Message Date
Justin SB
6a031c1daf Merge branch 'android_faster' into devel
Conflicts:
	tools/commands-cordova.js
2014-10-02 21:09:53 -07:00
Justin SB
afad6e0e43 Work on ios --getready 2014-10-02 21:08:57 -07:00
Sashko Stubailo
d30ee0a69e Fix backcompat for isopack.json, try releasing again 2014-10-01 20:08:43 -07:00
Justin SB
21adbca461 Check the AVD exists, create if not, launch using android-launch 2014-10-01 18:33:43 -07:00
Emily Stark
3b86a3c7a3 Work around fstream weirdnesses.
Before this fix, we were producing tarballs that npm 'tar' couldn't
untar if the first file inside the top-level directory was not
writeable. (Which was indeed the case since the unipackage -> isopack
change, which resulted in isopack.json being the first file in built
package tarballs.) See comment for more explanation.
2014-10-01 18:33:43 -07:00
Emily Stark
5e02e2dade Work around fstream weirdnesses.
Before this fix, we were producing tarballs that npm 'tar' couldn't
untar if the first file inside the top-level directory was not
writeable. (Which was indeed the case since the unipackage -> isopack
change, which resulted in isopack.json being the first file in built
package tarballs.) See comment for more explanation.
2014-10-01 15:19:19 -07:00
Justin SB
6be55e61bf Creating android --getready command 2014-10-01 14:42:30 -07:00
Sashko Stubailo
a3860bb115 Make isopack backwards- and forwards-compatible 2014-09-29 17:12:00 -07:00
Sashko Stubailo
7cd12072ea Rename unipackage to isopack in almost all cases 2014-09-29 16:01:08 -07:00
David Glasser
a8e8995c91 Support comments in .meteor/.id file
Make project.rootDir be absolute in 'meteor create'
2014-08-22 18:04:24 -07:00
David Glasser
ec3ecb3523 Remove work-around for fstream bug
Now fixed upstream.
2014-08-19 14:10:00 -07:00
David Glasser
883fc8516d files.OfflineError prettier than [object Object]
(It should also be caught at every httpHelpers.getUrl call and handled
properly, but this is a start.)
2014-08-18 20:10:52 -07:00
David Glasser
f3085db2d2 Work around a node-tar bug
See https://github.com/npm/fstream/issues/26
2014-08-18 15:10:15 -07:00
David Glasser
26f9b283a5 Tree hashes of builds now ignore package.json
We were finding that npm was inconsistently including various fields (eg
"readme") in package.json, leading to spurious "must update the version
number" errors in publish-release --from-checkout. This should be good
enough, as any actual package change should also have some other file
changed!
2014-07-30 15:44:12 -07:00
Emily Stark
ecff10c23e 'springboard' selftest passes. 2014-06-25 22:16:55 -07:00
David Glasser
ce4f2d65f6 New download mechanism
Unlike the last one, this actually tracks what builds we have
downloaded, and merges new ones in. It also doesn't waste space with
extra unnecessary downloaded-builds directories.

Should still fix the greedy algorithm in getBuildsForArches.

Still needs better error handling/reporting

publish-for-arch now works again (for non-release non-includeTool
packages) and you can actually download multiple builds of a version!
2014-06-20 17:09:06 -07:00
David Glasser
60059c2bd1 $TREE_HASH_DEBUG 2014-06-16 14:49:13 -07:00
David Glasser
f190d83731 Finish removing include from files.cp_r 2014-06-16 14:49:13 -07:00
David Glasser
7a23a2c988 stop using cp_r for non-recursive publishs source
This lets us rip out the weird 'include' argument and go back to just
stat'ing things instead of lstat'ing.

While we're at it, be more streamy when doing these copies.
2014-06-13 16:21:35 -07:00
David Glasser
286023adfe move getLines from utils to files 2014-06-10 18:09:56 -07:00
David Glasser
8bdcdbc518 maybe background symlink update works
however, bundling is brokenish

due to buildTimeDeps when building apps not being release-sensitive

(ekate understands what I mean)
2014-05-20 18:58:15 -07:00
David Glasser
b0d9061ca7 don't let files.cp_r get confused by symlinks
at least, by symlinks that it's skipping anyway

also, get rid of file.cp_r's unused return value
2014-05-19 17:39:04 -07:00
David Glasser
35bad76bc5 'meteor admin make-bootstrap-tarballs'
other changes:

- defaultReleaseVersion is not synced using 'collections' any more,
  since it is a singleton and has different merge logic
- publish-release --fromCheckout renamed to --from-checkout
- $METEOR_SAVE_TMPDIRS env var to not delete files.mkdtemp stuff
- release.latestDownloaded() now comes from tropohouse

we recognized that the cross-linking stuff in
Tropohouse.maybeDownloadPackageForArchitectures doesn't quite work so we
changed it to not quite work in a different way (which allows us to
leave downloaded-builds out of the bootstrap tarball and decrease its
size by 50%).  will fix later.
2014-05-14 11:40:43 -07:00
David Glasser
55f996fc6c use tree hash instead of tarball hash
less sensitive to mtime, uid, etc
2014-05-07 15:44:11 -07:00
David Glasser
b4bd24b113 'meteor create' should output writable files
(this is a followup to the commit where we made files.cp_r preserve
exectubility, which was messing up the +x bit on the meteor-tool
package)
2014-05-07 13:42:36 -07:00
David Glasser
9d70ff64c9 springboard almost works
springboarding happens infinitely because of build ids

have to manually bootstrap a tropohouse

fixed some other things:

 - store package server token in correct domain
 - copy files (eg packages pre-publish) with +x flags
 - catalog.getReleaseTrack works
 - don't pass release to uniload (Meteor.release will always
   end up 'UNILOAD')
 - fix building meteor-tool again
 - stop supporting apps without .meteor/release
 - merging unipackages with tools works

springboarding to warehouse releases totally not supported
2014-05-05 19:18:34 -07:00
David Glasser
f9bd956ee9 uniload works in built and git!
we still need a concept of releases in order to actually bundle apps
from a built tool
2014-04-28 19:53:26 -07:00
David Glasser
4702e9ff16 adjust paths for new tools layout
disable springboarding
2014-04-28 17:17:05 -07:00
David Glasser
0d7de14f2c first stab at including tool in unipackage 2014-04-25 18:37:19 -07:00
David Glasser
3b21c2d9a7 Merge branch 'devel' into publish-packages
Conflicts:
	packages/domutils/package.js
	packages/handlebars/package.js
	packages/htmljs/package.js
	packages/liverange/package.js
	packages/madewith/package.js
	packages/meteor-developer/meteor_developer_server.js
	packages/preserve-inputs/package.js
	packages/spark/package.js
	packages/universal-events/package.js
	tools/commands.js
	tools/files.js
	tools/help.txt
	tools/packages.js
2014-04-24 16:27:21 -07:00
Stephen Darnell
a9f65f0759 Stop node tar from including proprietary tags
The linux tar whinges about unrecognised headers (though newer versions
include an option to not warn).
By building tar files without proprietary, we will be able to use
files.createTarball() in more places.
For example, undo commits 1c36bbaa79 and
1e2a40ef2b
2014-04-21 18:45:21 -07:00
David Glasser
dfa497188d change how builds/arches work
- builds are downloaded to
  ~/.meteor/downloaded-builds/foo/1.0.0/browser+os
- but this is not where packages are loaded from
- instead, we "merge" multiple packages together and move them into
  ~/.meteor/packages

This commit does not yet implement "oh, we need another arch now?
ok. download and merge it."  Well, it implements "download it" but not
"merge it".

This drops catalog.getAnyBuild and a reference to "browser+os" in
packages.js, yay
2014-03-07 02:32:54 -08:00
David Glasser
6f6f186715 fix source tarball generation with subdirectories 2014-03-06 01:24:06 -08:00
Emily Stark
c339c6b516 Create package source tarball from actual source files.
* Get the source files by getting a package from the library with
  'forceRebuild'.
* Add an option to files.cp_r for whitelisting particular files to copy.
2014-03-05 18:52:24 -08:00
David Glasser
11a1981dee Write data file atomically 2014-03-05 14:32:49 -08:00
Emily Stark
d50049777f A quick-and-dirty 'meteor publish' command.
It more or less works, but needs lots of cleanup.
2014-02-28 02:03:02 -08:00
Emily Stark
ce84c228e0 Avoid returning twice on error in files.run 2014-02-24 20:52:55 -08:00
David Glasser
00a3dbeb5d Remove unused cp_r preserveMode option
I had originally created a commit which let preserveMode reuse the
return value of the fs.statSync a few lines up in the file, but since
the code is dead, there was no way to test it. Removing the dead code
seemed like a better approach.  (If you want to revert this commit, I
recommend reusing the stat buffer!)
2014-01-30 20:17:18 -05:00
Geoff Schmidt
5f7393b3a4 Autoupdater tests! They pass. 2014-01-27 02:31:39 -08:00
Geoff Schmidt
89d778a622 Hey cool! A springboarding test! 2014-01-26 20:48:20 -08:00
Geoff Schmidt
0c69701a32 sandbox tests. for now, just the .meteorsession file. 2014-01-22 02:54:10 -08:00
Geoff Schmidt
b940e06006 make getSettings report problems cleanly
(using buildmessages rather exceptions)
2014-01-08 17:18:32 -08:00
Geoff Schmidt
088d70da36 runner refactor - WIP (break runner.js up into several files) 2014-01-03 20:36:13 -08:00
Geoff Schmidt
88ea71f4c2 style: 'function ()' rather than 'function()' 2013-12-30 07:04:45 -08:00
Geoff Schmidt
95e3959165 The period goes outside the parens (like this).
(Except when the parenthetical is a complete sentence.)
2013-12-30 06:20:49 -08:00
Geoff Schmidt
9db5fec711 files: update code style 2013-12-30 06:11:04 -08:00
Geoff Schmidt
aee56f0523 Eliminate context.appDir. Introduce requiresApp. 2013-12-29 21:12:14 -08:00
Nick Martin
3177d9ad41 Use http_proxy environment variable so meteor update and deploy work behind an http proxy. 2013-09-27 15:06:43 -07:00
David Glasser
52948bed50 fix HTML sort hack. run-tools-tests passes! 2013-07-31 22:56:57 -07:00
David Glasser
f84fc21e8f checkpoint for initFromAppDir rewrite 2013-07-31 22:56:38 -07:00