diff --git a/github.sh b/github.sh index 05444baa1c748903155c33f7087d984dab65f411..ec9306c2583451187b54e4c199cc8e5cb6882da8 100755 --- a/github.sh +++ b/github.sh @@ -53,10 +53,10 @@ case "$1" in ### Sending files echo "Uploading files to GitHub..." dirname=`pwd` - curl -i -u $2 -H 'Content-Type: application/zip' -T $dirname/platforms/web/build/cesium-web-$current.zip $upload_url?name=cesium-v$current-web.zip - curl -i -u $2 -H 'Content-Type: application/zip' -T $dirname/platforms/firefoxos/build/package.zip $upload_url?name=cesium-v$current-firefoxos.zip + curl -i -u $2 -H 'Content-Type: application/zip' -T $dirname/platforms/web/build/cesium-v$current-web.zip $upload_url?name=cesium-v$current-web.zip curl -i -u $2 -H 'Content-Type: application/vnd.android.package-archive' -T $dirname/platforms/android/build/outputs/apk/android-release.apk $upload_url?name=cesium-v$current-android.apk - curl -i -u $2 -H 'Content-Type: application/x-debian-package' -T $dirname/platforms/ubuntu/native/cesium_${current}_amd64.deb $upload_url?name=cesium-v${current}-ubuntu-amd64.deb + # curl -i -u $2 -H 'Content-Type: application/zip' -T $dirname/platforms/firefoxos/build/package.zip $upload_url?name=cesium-v$current-firefoxos.zip + # curl -i -u $2 -H 'Content-Type: application/x-debian-package' -T $dirname/platforms/ubuntu/native/cesium_${current}_amd64.deb $upload_url?name=cesium-v${current}-ubuntu-amd64.deb echo "Successfully uploading files" release_url=`echo "$result" | grep -P "\"url\": \"[^\"]+" | grep -oP "https://api.github.com/repos/[a-z0-9/.]+"` diff --git a/gulpfile.js b/gulpfile.js index 7e38cff2bb1ffa4f73f8c76da010849d378d7113..8617ae001d7b8ea9daa8470554670f4056e4ca91 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -571,14 +571,14 @@ gulp.task('zip:web', ['clean-unused-directories:web'], function() { .pipe(header('\ufeff')) .pipe(txtFilter.restore) - .pipe(zip('cesium-web-'+version+'.zip')) + .pipe(zip('cesium-v'+version+'-web.zip')) .pipe(gulp.dest('./platforms/web/build')); }); gulp.task('build:web', ['git-check', 'zip:web'], function() { var version = JSON.parse(fs.readFileSync('./package.json', 'utf8')).version; - gutil.log(gutil.colors.green("Build for web created at: 'plateforms/web/build/cesium-web-" + version + ".zip'")); + gutil.log(gutil.colors.green("Build for web created at: 'plateforms/web/build/cesium-v" + version + "-web.zip'")); return del(['tmp']); });