added version.bat file for windows, bumped to 0.0.4
diff --git a/package.json b/package.json
index 2b1567c..e0b3f92 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "cordova-platform-test",
- "version": "0.0.3",
+ "version": "0.0.4",
"description": "Platform that simply stubs the platformAPI for testing and education",
"create": "src/bin/create",
"main": "src/cordova/Api.js",
diff --git a/src/config.xml b/src/config.xml
index 57946d3..d9bfc45 100644
--- a/src/config.xml
+++ b/src/config.xml
@@ -17,11 +17,12 @@
-->
<widget xmlns = "http://www.w3.org/ns/widgets"
id = "io.cordova.helloCordova"
- version = "2.0.0">
- <name>Hello Cordova</name>
+ version = "0.0.4">
+ <name>Test Cordova Platform</name>
<description>
- A sample Apache Cordova application that responds to the deviceready event.
+ This is a basic implementation of the platform API and demonstrates the minimum
+ that any new platform must implement.
</description>
<author href="http://cordova.io" email="dev@cordova.apache.org">
diff --git a/src/cordova/version.bat b/src/cordova/version.bat
new file mode 100755
index 0000000..3610c17
--- /dev/null
+++ b/src/cordova/version.bat
@@ -0,0 +1,26 @@
+:: Licensed to the Apache Software Foundation (ASF) under one
+:: or more contributor license agreements. See the NOTICE file
+:: distributed with this work for additional information
+:: regarding copyright ownership. The ASF licenses this file
+:: to you under the Apache License, Version 2.0 (the
+:: "License"); you may not use this file except in compliance
+:: with the License. You may obtain a copy of the License at
+::
+:: http://www.apache.org/licenses/LICENSE-2.0
+::
+:: Unless required by applicable law or agreed to in writing,
+:: software distributed under the License is distributed on an
+:: "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+:: KIND, either express or implied. See the License for the
+:: specific language governing permissions and limitations
+:: under the License.
+
+@ECHO OFF
+SET script_path="%~dp0version"
+IF EXIST %script_path% (
+ node %script_path% %*
+) ELSE (
+ ECHO.
+ ECHO ERROR: Could not find 'version' script in 'cordova' folder, aborting...>&2
+ EXIT /B 1
+)