Skip to content
Snippets Groups Projects
Commit 083d087d authored by Benoit Lavenier's avatar Benoit Lavenier
Browse files

Fix release script

parent afbf3f32
No related branches found
No related tags found
No related merge requests found
Pipeline #8681 failed
...@@ -27,7 +27,7 @@ To build Cesium, you will have to: ...@@ -27,7 +27,7 @@ To build Cesium, you will have to:
3. Installing node build tools, as global dependencies: 3. Installing node build tools, as global dependencies:
```bash ```bash
npm install -g yarn gulp cordova @ionic/cli npm install -g yarn gulp cordova @ionic/cli web-ext
``` ```
## Get the source code and dependencies ## Get the source code and dependencies
......
...@@ -269,9 +269,7 @@ function pluginSass() { ...@@ -269,9 +269,7 @@ function pluginSass() {
function webClean() { function webClean() {
return del([ return del([
'./dist/web/www', './dist/web/www'
'./dist/web/ext',
'./dist/web/build'
]); ]);
} }
...@@ -694,10 +692,17 @@ function webExtensionZip() { ...@@ -694,10 +692,17 @@ function webExtensionZip() {
function webBuildSuccess(done) { function webBuildSuccess(done) {
var version = JSON.parse(fs.readFileSync('./package.json', 'utf8')).version; var version = JSON.parse(fs.readFileSync('./package.json', 'utf8')).version;
log(colors.green("Web artifacts created at: 'dist/web/build/cesium-v" + version + "-web.zip' and 'dist/web/build/cesium-v" + version + "-extension.zip'")); log(colors.green("Web artifact created at: 'dist/web/build/cesium-v" + version + "-web.zip'"));
done(); done();
} }
function webExtBuildSuccess(done) {
var version = JSON.parse(fs.readFileSync('./package.json', 'utf8')).version;
log(colors.green("Web extension artifact created at: 'dist/web/build/cesium-v" + version + "-extension.zip'"));
done();
}
/* -------------------------------------------------------------------------- /* --------------------------------------------------------------------------
-- Define gulp public tasks -- Define gulp public tasks
--------------------------------------------------------------------------*/ --------------------------------------------------------------------------*/
...@@ -757,7 +762,7 @@ gulp.task('webExtensionClean', [], webExtensionClean); ...@@ -757,7 +762,7 @@ gulp.task('webExtensionClean', [], webExtensionClean);
gulp.task('webExtensionCopyFiles', ['webExtensionClean', 'webCleanUnusedDirectories'], webExtensionCopyFiles); gulp.task('webExtensionCopyFiles', ['webExtensionClean', 'webCleanUnusedDirectories'], webExtensionCopyFiles);
gulp.task('webExtensionZip', ['webExtensionCopyFiles'], webExtensionZip); gulp.task('webExtensionZip', ['webExtensionCopyFiles'], webExtensionZip);
gulp.task('webBuild', ['webZip', 'webExtensionZip'], webBuildSuccess); gulp.task('webBuild', ['webZip'], webBuildSuccess);
gulp.task('build:web', ['webBuild']); // = webBuild gulp.task('build:web', ['webBuild']); // = webBuild
gulp.task('webExtBuild', ['webExtensionZip']); gulp.task('webExtBuild', ['webExtensionZip']);
......
...@@ -15,7 +15,7 @@ if [ "_$CESIUM_DIR" = "_" ]; then ...@@ -15,7 +15,7 @@ if [ "_$CESIUM_DIR" = "_" ]; then
fi fi
latest_version() { latest_version() {
echo "v1.6.2-alpha" #lastest echo "v1.6.2" #lastest
} }
api_release_url() { api_release_url() {
......
...@@ -34,7 +34,7 @@ fi ...@@ -34,7 +34,7 @@ fi
echo "Current Android version: $currentAndroid" echo "Current Android version: $currentAndroid"
# Check version format # Check version format
if [[ ! $2 =~ ^[0-9]+.[0-9]+.[0-9]+((a|b)[0-9]+)?$ || ! $3 =~ ^[0-9]+$ ]]; then if [[ ! $2 =~ ^[0-9]+.[0-9]+.[0-9]+(-(alpha|beta|rc)[-0-9]*)?$ || ! $3 =~ ^[0-9]+$ ]]; then
echo "Wrong version format" echo "Wrong version format"
echo "Usage:" echo "Usage:"
echo " > ./release.sh [pre|rel] <version> <android-version> <release_description>" echo " > ./release.sh [pre|rel] <version> <android-version> <release_description>"
...@@ -117,7 +117,7 @@ cd ${PROJECT_DIR} || exit 1 ...@@ -117,7 +117,7 @@ cd ${PROJECT_DIR} || exit 1
# Run web build # Run web build
gulp config --env default gulp config --env default
gulp webBuild --release gulp webBuild webExtBuild --release
if [[ $? -ne 0 ]]; then if [[ $? -ne 0 ]]; then
exit 1 exit 1
fi fi
......
...@@ -98,7 +98,7 @@ angular.module("cesium.config", []) ...@@ -98,7 +98,7 @@ angular.module("cesium.config", [])
} }
}, },
"version": "1.6.2-alpha", "version": "1.6.2-alpha",
"build": "2020-04-13T18:04:09.778Z", "build": "2020-04-13T18:21:09.482Z",
"newIssueUrl": "https://git.duniter.org/clients/cesium-grp/cesium/issues/new" "newIssueUrl": "https://git.duniter.org/clients/cesium-grp/cesium/issues/new"
}) })
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment