From 5aefd432b425dad9b539efb8db146b5d37f02c3b Mon Sep 17 00:00:00 2001 From: blavenie <benoit.lavenier@e-is.pro> Date: Wed, 29 Nov 2017 15:24:20 +0100 Subject: [PATCH] [fix] Fix build process --- github.sh | 6 +++--- gulpfile.js | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/github.sh b/github.sh index 05444baa1..ec9306c25 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 7e38cff2b..8617ae001 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']); }); -- GitLab