Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Cesium
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bpresles
Cesium
Commits
5aefd432
Commit
5aefd432
authored
7 years ago
by
Benoit Lavenier
Browse files
Options
Downloads
Patches
Plain Diff
[fix] Fix build process
parent
529ac5fd
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
github.sh
+3
-3
3 additions, 3 deletions
github.sh
gulpfile.js
+2
-2
2 additions, 2 deletions
gulpfile.js
with
5 additions
and
5 deletions
github.sh
+
3
−
3
View file @
5aefd432
...
@@ -53,10 +53,10 @@ case "$1" in
...
@@ -53,10 +53,10 @@ case "$1" in
### Sending files
### Sending files
echo
"Uploading files to GitHub..."
echo
"Uploading files to GitHub..."
dirname
=
`
pwd
`
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/web/build/cesium-v
$current
-web
.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/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/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"
echo
"Successfully uploading files"
release_url
=
`
echo
"
$result
"
|
grep
-P
"
\"
url
\"
:
\"
[^
\"
]+"
|
grep
-oP
"https://api.github.com/repos/[a-z0-9/.]+"
`
release_url
=
`
echo
"
$result
"
|
grep
-P
"
\"
url
\"
:
\"
[^
\"
]+"
|
grep
-oP
"https://api.github.com/repos/[a-z0-9/.]+"
`
...
...
This diff is collapsed.
Click to expand it.
gulpfile.js
+
2
−
2
View file @
5aefd432
...
@@ -571,14 +571,14 @@ gulp.task('zip:web', ['clean-unused-directories:web'], function() {
...
@@ -571,14 +571,14 @@ gulp.task('zip:web', ['clean-unused-directories:web'], function() {
.
pipe
(
header
(
'
\
ufeff
'
))
.
pipe
(
header
(
'
\
ufeff
'
))
.
pipe
(
txtFilter
.
restore
)
.
pipe
(
txtFilter
.
restore
)
.
pipe
(
zip
(
'
cesium-
web-
'
+
version
+
'
.zip
'
))
.
pipe
(
zip
(
'
cesium-
v
'
+
version
+
'
-web
.zip
'
))
.
pipe
(
gulp
.
dest
(
'
./platforms/web/build
'
));
.
pipe
(
gulp
.
dest
(
'
./platforms/web/build
'
));
});
});
gulp
.
task
(
'
build:web
'
,
[
'
git-check
'
,
'
zip:web
'
],
function
()
{
gulp
.
task
(
'
build:web
'
,
[
'
git-check
'
,
'
zip:web
'
],
function
()
{
var
version
=
JSON
.
parse
(
fs
.
readFileSync
(
'
./package.json
'
,
'
utf8
'
)).
version
;
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
'
]);
return
del
([
'
tmp
'
]);
});
});
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment