Skip to content
Snippets Groups Projects
Commit e2185c40 authored by Mathias Chouet's avatar Mathias Chouet
Browse files

Fix #383 - update Cordova config.xml

parent 6ab93e3c
No related branches found
No related tags found
No related merge requests found
<?xml version='1.0' encoding='utf-8'?> <?xml version='1.0' encoding='utf-8'?>
<widget id="fr.irstea.cassiopee" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0"> <widget id="fr.irstea.cassiopee" version="4.10.3" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>Cassiopée</name> <name>Cassiopée</name>
<description> <description>
A sample Apache Cordova application that responds to the deviceready event. Hydraulic calculators / Modules de calcul d'hydraulique
</description> </description>
<author email="dev@cordova.apache.org" href="http://cordova.io"> <author email="bug@cassiopee.g-eau.fr" href="https://cassiopee.g-eau.fr">
Apache Cordova Team UMR G-EAU
</author> </author>
<content src="index.html" /> <content src="index.html" />
<icon src="src/android-chrome-512x512.png" /> <icon src="src/android-chrome-512x512.png" />
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
"build": "npm run preprocess && npm run mkdocs2pdf && npm run ng build -- --prod", "build": "npm run preprocess && npm run mkdocs2pdf && npm run ng build -- --prod",
"update-dist-index-mimetypes": "node scripts/update-dist-index-mimetypes.js", "update-dist-index-mimetypes": "node scripts/update-dist-index-mimetypes.js",
"build-cordova": "npm run build-no-pdf && npm run update-dist-index-mimetypes && node scripts/add-cordova-script.js", "build-cordova": "npm run build-no-pdf && npm run update-dist-index-mimetypes && node scripts/add-cordova-script.js",
"release-android": "npm run build-cordova && \"node_modules/.bin/cordova\" platform add android; node scripts/remove-duplicate-sitemap.js && \"node_modules/.bin/cordova\" build android && node scripts/move-cordova-release.js", "release-android": "node scripts/bump-cordova-version.js && npm run build-cordova && \"node_modules/.bin/cordova\" platform add android; node scripts/remove-duplicate-sitemap.js && \"node_modules/.bin/cordova\" build android && node scripts/move-cordova-release.js",
"electron": "npm run update-dist-index-mimetypes && \"node_modules/.bin/electron\" .", "electron": "npm run update-dist-index-mimetypes && \"node_modules/.bin/electron\" .",
"release-linux-nocompile": "npm run update-dist-index-mimetypes && \"node_modules/.bin/electron-builder\"", "release-linux-nocompile": "npm run update-dist-index-mimetypes && \"node_modules/.bin/electron-builder\"",
"release-linux": "npm run build-no-pdf && npm run release-linux-nocompile", "release-linux": "npm run build-no-pdf && npm run release-linux-nocompile",
...@@ -120,4 +120,4 @@ ...@@ -120,4 +120,4 @@
"android" "android"
] ]
} }
} }
\ No newline at end of file
'use strict';
const fs = require('fs');
const path = "./config.xml";
const version = require("../package.json").version;
const contents = fs.readFileSync(path, "utf-8");
fs.writeFileSync(path, contents.replace(/version="[0-9]+\.[0-9]+\.[0-9]+"/, 'version="' + version + '"'));
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