You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by sg...@apache.org on 2014/11/05 23:38:56 UTC
[8/8] git commit: Windows: logic to specify target build version via
config
Windows: logic to specify target build version via config
As per cahnges in Windows Universal Apps logic:
* no --store80 switch anymore;
* target version is specified via config.xml:
<preference name="windows-target-version" value="VERSION" />
Project: http://git-wip-us.apache.org/repos/asf/cordova-medic/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-medic/commit/e1b6492e
Tree: http://git-wip-us.apache.org/repos/asf/cordova-medic/tree/e1b6492e
Diff: http://git-wip-us.apache.org/repos/asf/cordova-medic/diff/e1b6492e
Branch: refs/heads/master
Commit: e1b6492ef9ee0e4ee097cfa3a5d6a8b33a2ee027
Parents: 9382064
Author: sgrebnov <v-...@microsoft.com>
Authored: Tue Aug 12 12:53:37 2014 +0400
Committer: Vladimir Kotikov <v-...@microsoft.com>
Committed: Wed Oct 1 12:07:53 2014 +0400
----------------------------------------------------------------------
build_windows8.js | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-medic/blob/e1b6492e/build_windows8.js
----------------------------------------------------------------------
diff --git a/build_windows8.js b/build_windows8.js
index a03ee6b..b7bb821 100644
--- a/build_windows8.js
+++ b/build_windows8.js
@@ -30,6 +30,18 @@ buildinfo('Windows8', BRANCH, function (error, sha ) {
console.log('[WINDOWS8] ' + msg + ' (sha: ' + sha + ')');
}
+ function setTargetStoreVersion(version) {
+ log('setting target store version to ' + version);
+
+ var configPath = 'mobilespec/config.xml';
+ configContent = fs.readFileSync(configPath, "utf8");
+
+ var versionPreference = '<preference name="windows-target-version" value="' + version + '" />';
+ configContent = configContent.replace ('</widget>', versionPreference + '\r\n</widget>')
+
+ fs.writeFileSync(configPath, configContent, "utf8");
+ }
+
if(error) {
TEST_OK=false;
} else {
@@ -39,6 +51,14 @@ buildinfo('Windows8', BRANCH, function (error, sha ) {
var build_target = argv.phone ? "phone" : argv.store80 ? "store80" : "store";
log(build_target);
+ if (build_target == "store80") {
+ build_target == "store";
+ //setTargetStoreVersion('8.0'); // this value is used by default
+ } else if (build_target == "store") {
+ // store target configuration is specified via config.xml
+ setTargetStoreVersion('8.1');
+ }
+
windows8(output_location, sha, config.app.entry, config.couchdb.host, test_timeout, build_target).then(function() {
console.log('Windows8 test execution completed');
}, function(err) {
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org