Merge pull request #165 from bgilbert/releases

Update for GitHub-hosted release binaries
This commit is contained in:
iangilman 2013-08-01 10:53:49 -07:00
commit 8e36f9eead
2 changed files with 6 additions and 4 deletions

View File

@ -58,7 +58,7 @@ module.exports = function(grunt) {
build: ["build"], build: ["build"],
package: [packageDir], package: [packageDir],
release: { release: {
src: [releaseRoot + '*', '!' + releaseRoot + 'releases'], src: [releaseRoot],
options: { options: {
force: true force: true
} }
@ -168,8 +168,6 @@ module.exports = function(grunt) {
grunt.file.recurse("images", function(abspath, rootdir, subdir, filename) { grunt.file.recurse("images", function(abspath, rootdir, subdir, filename) {
grunt.file.copy(abspath, "build/openseadragon/images/" + (subdir || "") + filename); grunt.file.copy(abspath, "build/openseadragon/images/" + (subdir || "") + filename);
}); });
grunt.file.copy("changelog.txt", "build/changelog.txt");
}); });
// ---------- // ----------
@ -191,6 +189,10 @@ module.exports = function(grunt) {
// Copies the contents of the build folder into the release folder. // Copies the contents of the build folder into the release folder.
grunt.registerTask("copy:release", function() { grunt.registerTask("copy:release", function() {
grunt.file.recurse("build", function(abspath, rootdir, subdir, filename) { grunt.file.recurse("build", function(abspath, rootdir, subdir, filename) {
if (subdir === 'releases') {
return;
}
var dest = releaseRoot var dest = releaseRoot
+ (subdir ? subdir + "/" : '/') + (subdir ? subdir + "/" : '/')
+ filename; + filename;

View File

@ -6,7 +6,7 @@ See it in action and get started using it at http://openseadragon.github.io/.
## Stable Builds ## Stable Builds
See our [releases page](http://openseadragon.github.io/releases/). See the [GitHub releases page](https://github.com/openseadragon/openseadragon/releases).
## Development ## Development