You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by pu...@apache.org on 2014/08/15 21:41:29 UTC
[1/2] git commit: CB-6976 Reflect new switch name to project structure
Repository: cordova-windows
Updated Branches:
refs/heads/master e02282621 -> bdc4af329
CB-6976 Reflect new switch name to project structure
For consistence reason.
1. Produce correct artefact names: Windows instead of Store
before: CordovaApp.Store_0.0.1.0_anycpu_debug
after: CordovaApp.Windows_0.0.1.0_anycpu_debug
2. Use <Windows> instead of <Store> suffix for file names to be consistent with terminology used in config.xml and command line switch and be more understanable for developers
Project: http://git-wip-us.apache.org/repos/asf/cordova-windows/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-windows/commit/bdc4af32
Tree: http://git-wip-us.apache.org/repos/asf/cordova-windows/tree/bdc4af32
Diff: http://git-wip-us.apache.org/repos/asf/cordova-windows/diff/bdc4af32
Branch: refs/heads/master
Commit: bdc4af329c02658ed989b3e9b4013f81c3626cd6
Parents: 735f929
Author: sgrebnov <v-...@microsoft.com>
Authored: Fri Aug 15 14:00:51 2014 +0400
Committer: sgrebnov <v-...@microsoft.com>
Committed: Fri Aug 15 18:54:45 2014 +0400
----------------------------------------------------------------------
windows/bin/lib/create.js | 2 +-
windows/template/CordovaApp.Store.jsproj | 102 -------------------
windows/template/CordovaApp.Store80.jsproj | 93 -----------------
windows/template/CordovaApp.Windows.jsproj | 102 +++++++++++++++++++
windows/template/CordovaApp.Windows80.jsproj | 93 +++++++++++++++++
windows/template/CordovaApp.sln | 4 +-
windows/template/CordovaApp.vs2012.sln | 2 +-
.../cordova/lib/ApplyPlatformConfig.ps1 | 4 +-
windows/template/cordova/lib/build.js | 4 +-
windows/template/cordova/lib/package.js | 4 +-
windows/template/cordova/lib/run.js | 8 +-
windows/template/package.store.appxmanifest | 49 ---------
windows/template/package.store80.appxmanifest | 50 ---------
windows/template/package.windows.appxmanifest | 49 +++++++++
windows/template/package.windows80.appxmanifest | 50 +++++++++
15 files changed, 308 insertions(+), 308 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-windows/blob/bdc4af32/windows/bin/lib/create.js
----------------------------------------------------------------------
diff --git a/windows/bin/lib/create.js b/windows/bin/lib/create.js
index 31941b8..9b0b486 100644
--- a/windows/bin/lib/create.js
+++ b/windows/bin/lib/create.js
@@ -54,7 +54,7 @@ module.exports.run = function (argv) {
shell.cp("-rf", path.join(root, 'VERSION'), projectPath);
// replace specific values in manifests' templates
- ["package.store.appxmanifest", "package.store80.appxmanifest", "package.phone.appxmanifest"].forEach(function (file) {
+ ["package.windows.appxmanifest", "package.windows80.appxmanifest", "package.phone.appxmanifest"].forEach(function (file) {
var fileToReplace = path.join(projectPath, file);
shell.sed('-i', /\$guid1\$/g, guid, fileToReplace);
shell.sed('-i', /\$safeprojectname\$/g, safeAppName, fileToReplace);
http://git-wip-us.apache.org/repos/asf/cordova-windows/blob/bdc4af32/windows/template/CordovaApp.Store.jsproj
----------------------------------------------------------------------
diff --git a/windows/template/CordovaApp.Store.jsproj b/windows/template/CordovaApp.Store.jsproj
deleted file mode 100644
index ae11a29..0000000
--- a/windows/template/CordovaApp.Store.jsproj
+++ /dev/null
@@ -1,102 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
- 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.
--->
-<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <PropertyGroup>
- <OutputPath>build\store\$(Configuration)\$(Platform)\</OutputPath>
- <IntermediateOutputPath>build\store\bld\</IntermediateOutputPath>
- </PropertyGroup>
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|AnyCPU">
- <Configuration>Debug</Configuration>
- <Platform>AnyCPU</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Debug|ARM">
- <Configuration>Debug</Configuration>
- <Platform>ARM</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Debug|x64">
- <Configuration>Debug</Configuration>
- <Platform>x64</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Debug|x86">
- <Configuration>Debug</Configuration>
- <Platform>x86</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|AnyCPU">
- <Configuration>Release</Configuration>
- <Platform>AnyCPU</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|ARM">
- <Configuration>Release</Configuration>
- <Platform>ARM</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|x64">
- <Configuration>Release</Configuration>
- <Platform>x64</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|x86">
- <Configuration>Release</Configuration>
- <Platform>x86</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>58950fb6-2f93-4963-b9cd-637f83f3efbf</ProjectGuid>
- </PropertyGroup>
- <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
- <PropertyGroup Condition="'$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' < '12.0'">
- <VisualStudioVersion>12.0</VisualStudioVersion>
- </PropertyGroup>
- <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\$(WMSJSProjectDirectory)\Microsoft.VisualStudio.$(WMSJSProject).Default.props" />
- <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\$(WMSJSProjectDirectory)\Microsoft.VisualStudio.$(WMSJSProject).props" />
- <PropertyGroup>
- <TargetPlatformIdentifier>Windows</TargetPlatformIdentifier>
- <TargetPlatformVersion>8.1</TargetPlatformVersion>
- <RequiredPlatformVersion>8.1</RequiredPlatformVersion>
- <MinimumVisualStudioVersion>12.0</MinimumVisualStudioVersion>
- <DefaultLanguage>en-US</DefaultLanguage>
- <PackageCertificateKeyFile>CordovaApp_TemporaryKey.pfx</PackageCertificateKeyFile>
- </PropertyGroup>
- <ItemGroup>
- <AppxManifest Include="package.store.appxmanifest">
- <SubType>Designer</SubType>
- </AppxManifest>
- <Content Include="images\logo.png" />
- <Content Include="images\smalllogo.png" />
- <Content Include="images\splashscreen.png" />
- <Content Include="images\storelogo.png" />
- <None Include="CordovaApp_TemporaryKey.pfx" />
- </ItemGroup>
- <ItemGroup>
- <SDKReference Include="Microsoft.WinJS.2.0, Version=1.0" />
- </ItemGroup>
- <Import Project="CordovaApp.projitems" Label="Shared" />
- <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\$(WMSJSProjectDirectory)\Microsoft.VisualStudio.$(WMSJSProject).targets" />
- <!-- To modify your build process, add your task inside one of the targets below then uncomment
- that target and the DisableFastUpToDateCheck PropertyGroup.
- Other similar extension points exist, see Microsoft.Common.targets.
- <Target Name="BeforeBuild">
- </Target>
- <Target Name="AfterBuild">
- </Target>
- <PropertyGroup>
- <DisableFastUpToDateCheck>true</DisableFastUpToDateCheck>
- </PropertyGroup>
- -->
-</Project>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-windows/blob/bdc4af32/windows/template/CordovaApp.Store80.jsproj
----------------------------------------------------------------------
diff --git a/windows/template/CordovaApp.Store80.jsproj b/windows/template/CordovaApp.Store80.jsproj
deleted file mode 100644
index e798fc0..0000000
--- a/windows/template/CordovaApp.Store80.jsproj
+++ /dev/null
@@ -1,93 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
- 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.
--->
-<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <PropertyGroup>
- <OutputPath>build\store80\$(Configuration)\$(Platform)\</OutputPath>
- <IntermediateOutputPath>build\store80\bld\</IntermediateOutputPath>
- </PropertyGroup>
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|AnyCPU">
- <Configuration>Debug</Configuration>
- <Platform>AnyCPU</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Debug|ARM">
- <Configuration>Debug</Configuration>
- <Platform>ARM</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Debug|x64">
- <Configuration>Debug</Configuration>
- <Platform>x64</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Debug|x86">
- <Configuration>Debug</Configuration>
- <Platform>x86</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|AnyCPU">
- <Configuration>Release</Configuration>
- <Platform>AnyCPU</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|ARM">
- <Configuration>Release</Configuration>
- <Platform>ARM</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|x64">
- <Configuration>Release</Configuration>
- <Platform>x64</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|x86">
- <Configuration>Release</Configuration>
- <Platform>x86</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>efffab2f-bfc5-4eda-b545-45ef4995f55a</ProjectGuid>
- </PropertyGroup>
- <PropertyGroup Condition="'$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' < '11.0'">
- <VisualStudioVersion>11.0</VisualStudioVersion>
- </PropertyGroup>
- <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
- <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\$(WMSJSProjectDirectory)\Microsoft.VisualStudio.$(WMSJSProject).Default.props" />
- <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\$(WMSJSProjectDirectory)\Microsoft.VisualStudio.$(WMSJSProject).props" />
- <PropertyGroup>
- <TargetPlatformIdentifier>Windows</TargetPlatformIdentifier>
- <TargetPlatformVersion>8.0</TargetPlatformVersion>
- <DefaultLanguage>en-US</DefaultLanguage>
- <PackageCertificateKeyFile>CordovaApp_TemporaryKey.pfx</PackageCertificateKeyFile>
- </PropertyGroup>
- <ItemGroup>
- <AppxManifest Include="package.store80.appxmanifest">
- <SubType>Designer</SubType>
- </AppxManifest>
- <Content Include="images\logo.png" />
- <Content Include="images\smalllogo.png" />
- <Content Include="images\splashscreen.png" />
- <Content Include="images\storelogo.png" />
- <None Include="CordovaApp_TemporaryKey.pfx" />
- </ItemGroup>
- <ItemGroup>
- <SDKReference Include="Microsoft.WinJS.1.0, Version=1.0" />
- </ItemGroup>
- <Import Project="CordovaApp.projitems" Label="Shared" />
- <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\$(WMSJSProjectDirectory)\Microsoft.VisualStudio.$(WMSJSProject).targets" />
- <PropertyGroup>
- <PreBuildEvent>
- </PreBuildEvent>
- </PropertyGroup>
-</Project>
http://git-wip-us.apache.org/repos/asf/cordova-windows/blob/bdc4af32/windows/template/CordovaApp.Windows.jsproj
----------------------------------------------------------------------
diff --git a/windows/template/CordovaApp.Windows.jsproj b/windows/template/CordovaApp.Windows.jsproj
new file mode 100644
index 0000000..70d4d06
--- /dev/null
+++ b/windows/template/CordovaApp.Windows.jsproj
@@ -0,0 +1,102 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ 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.
+-->
+<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <OutputPath>build\windows\$(Configuration)\$(Platform)\</OutputPath>
+ <IntermediateOutputPath>build\windows\bld\</IntermediateOutputPath>
+ </PropertyGroup>
+ <ItemGroup Label="ProjectConfigurations">
+ <ProjectConfiguration Include="Debug|AnyCPU">
+ <Configuration>Debug</Configuration>
+ <Platform>AnyCPU</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Debug|ARM">
+ <Configuration>Debug</Configuration>
+ <Platform>ARM</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Debug|x64">
+ <Configuration>Debug</Configuration>
+ <Platform>x64</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Debug|x86">
+ <Configuration>Debug</Configuration>
+ <Platform>x86</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Release|AnyCPU">
+ <Configuration>Release</Configuration>
+ <Platform>AnyCPU</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Release|ARM">
+ <Configuration>Release</Configuration>
+ <Platform>ARM</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Release|x64">
+ <Configuration>Release</Configuration>
+ <Platform>x64</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Release|x86">
+ <Configuration>Release</Configuration>
+ <Platform>x86</Platform>
+ </ProjectConfiguration>
+ </ItemGroup>
+ <PropertyGroup Label="Globals">
+ <ProjectGuid>58950fb6-2f93-4963-b9cd-637f83f3efbf</ProjectGuid>
+ </PropertyGroup>
+ <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
+ <PropertyGroup Condition="'$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' < '12.0'">
+ <VisualStudioVersion>12.0</VisualStudioVersion>
+ </PropertyGroup>
+ <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\$(WMSJSProjectDirectory)\Microsoft.VisualStudio.$(WMSJSProject).Default.props" />
+ <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\$(WMSJSProjectDirectory)\Microsoft.VisualStudio.$(WMSJSProject).props" />
+ <PropertyGroup>
+ <TargetPlatformIdentifier>Windows</TargetPlatformIdentifier>
+ <TargetPlatformVersion>8.1</TargetPlatformVersion>
+ <RequiredPlatformVersion>8.1</RequiredPlatformVersion>
+ <MinimumVisualStudioVersion>12.0</MinimumVisualStudioVersion>
+ <DefaultLanguage>en-US</DefaultLanguage>
+ <PackageCertificateKeyFile>CordovaApp_TemporaryKey.pfx</PackageCertificateKeyFile>
+ </PropertyGroup>
+ <ItemGroup>
+ <AppxManifest Include="package.windows.appxmanifest">
+ <SubType>Designer</SubType>
+ </AppxManifest>
+ <Content Include="images\logo.png" />
+ <Content Include="images\smalllogo.png" />
+ <Content Include="images\splashscreen.png" />
+ <Content Include="images\storelogo.png" />
+ <None Include="CordovaApp_TemporaryKey.pfx" />
+ </ItemGroup>
+ <ItemGroup>
+ <SDKReference Include="Microsoft.WinJS.2.0, Version=1.0" />
+ </ItemGroup>
+ <Import Project="CordovaApp.projitems" Label="Shared" />
+ <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\$(WMSJSProjectDirectory)\Microsoft.VisualStudio.$(WMSJSProject).targets" />
+ <!-- To modify your build process, add your task inside one of the targets below then uncomment
+ that target and the DisableFastUpToDateCheck PropertyGroup.
+ Other similar extension points exist, see Microsoft.Common.targets.
+ <Target Name="BeforeBuild">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
+ <PropertyGroup>
+ <DisableFastUpToDateCheck>true</DisableFastUpToDateCheck>
+ </PropertyGroup>
+ -->
+</Project>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-windows/blob/bdc4af32/windows/template/CordovaApp.Windows80.jsproj
----------------------------------------------------------------------
diff --git a/windows/template/CordovaApp.Windows80.jsproj b/windows/template/CordovaApp.Windows80.jsproj
new file mode 100644
index 0000000..a72ec70
--- /dev/null
+++ b/windows/template/CordovaApp.Windows80.jsproj
@@ -0,0 +1,93 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ 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.
+-->
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <OutputPath>build\windows80\$(Configuration)\$(Platform)\</OutputPath>
+ <IntermediateOutputPath>build\windows80\bld\</IntermediateOutputPath>
+ </PropertyGroup>
+ <ItemGroup Label="ProjectConfigurations">
+ <ProjectConfiguration Include="Debug|AnyCPU">
+ <Configuration>Debug</Configuration>
+ <Platform>AnyCPU</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Debug|ARM">
+ <Configuration>Debug</Configuration>
+ <Platform>ARM</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Debug|x64">
+ <Configuration>Debug</Configuration>
+ <Platform>x64</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Debug|x86">
+ <Configuration>Debug</Configuration>
+ <Platform>x86</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Release|AnyCPU">
+ <Configuration>Release</Configuration>
+ <Platform>AnyCPU</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Release|ARM">
+ <Configuration>Release</Configuration>
+ <Platform>ARM</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Release|x64">
+ <Configuration>Release</Configuration>
+ <Platform>x64</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Release|x86">
+ <Configuration>Release</Configuration>
+ <Platform>x86</Platform>
+ </ProjectConfiguration>
+ </ItemGroup>
+ <PropertyGroup Label="Globals">
+ <ProjectGuid>efffab2f-bfc5-4eda-b545-45ef4995f55a</ProjectGuid>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' < '11.0'">
+ <VisualStudioVersion>11.0</VisualStudioVersion>
+ </PropertyGroup>
+ <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
+ <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\$(WMSJSProjectDirectory)\Microsoft.VisualStudio.$(WMSJSProject).Default.props" />
+ <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\$(WMSJSProjectDirectory)\Microsoft.VisualStudio.$(WMSJSProject).props" />
+ <PropertyGroup>
+ <TargetPlatformIdentifier>Windows</TargetPlatformIdentifier>
+ <TargetPlatformVersion>8.0</TargetPlatformVersion>
+ <DefaultLanguage>en-US</DefaultLanguage>
+ <PackageCertificateKeyFile>CordovaApp_TemporaryKey.pfx</PackageCertificateKeyFile>
+ </PropertyGroup>
+ <ItemGroup>
+ <AppxManifest Include="package.windows80.appxmanifest">
+ <SubType>Designer</SubType>
+ </AppxManifest>
+ <Content Include="images\logo.png" />
+ <Content Include="images\smalllogo.png" />
+ <Content Include="images\splashscreen.png" />
+ <Content Include="images\storelogo.png" />
+ <None Include="CordovaApp_TemporaryKey.pfx" />
+ </ItemGroup>
+ <ItemGroup>
+ <SDKReference Include="Microsoft.WinJS.1.0, Version=1.0" />
+ </ItemGroup>
+ <Import Project="CordovaApp.projitems" Label="Shared" />
+ <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\$(WMSJSProjectDirectory)\Microsoft.VisualStudio.$(WMSJSProject).targets" />
+ <PropertyGroup>
+ <PreBuildEvent>
+ </PreBuildEvent>
+ </PropertyGroup>
+</Project>
http://git-wip-us.apache.org/repos/asf/cordova-windows/blob/bdc4af32/windows/template/CordovaApp.sln
----------------------------------------------------------------------
diff --git a/windows/template/CordovaApp.sln b/windows/template/CordovaApp.sln
index 9266334..71caade 100644
--- a/windows/template/CordovaApp.sln
+++ b/windows/template/CordovaApp.sln
@@ -25,9 +25,9 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "CordovaApp", "CordovaApp",
EndProject
Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "CordovaApp", "CordovaApp.shproj", "{9EBDB27F-D75B-4D8C-B53F-7BE4A1FE89F9}"
EndProject
-Project("{262852C6-CD72-467D-83FE-5EEB1973A190}") = "CordovaApp.Store80", "CordovaApp.Store80.jsproj", "{EFFFAB2F-BFC5-4EDA-B545-45EF4995F55A}"
+Project("{262852C6-CD72-467D-83FE-5EEB1973A190}") = "CordovaApp.Windows8.0", "CordovaApp.Windows80.jsproj", "{EFFFAB2F-BFC5-4EDA-B545-45EF4995F55A}"
EndProject
-Project("{262852C6-CD72-467D-83FE-5EEB1973A190}") = "CordovaApp.Store", "CordovaApp.Store.jsproj", "{58950FB6-2F93-4963-B9CD-637F83F3EFBF}"
+Project("{262852C6-CD72-467D-83FE-5EEB1973A190}") = "CordovaApp.Windows", "CordovaApp.Windows.jsproj", "{58950FB6-2F93-4963-B9CD-637F83F3EFBF}"
EndProject
Project("{262852C6-CD72-467D-83FE-5EEB1973A190}") = "CordovaApp.Phone", "CordovaApp.Phone.jsproj", "{31B67A35-9503-4213-857E-F44EB42AE549}"
EndProject
http://git-wip-us.apache.org/repos/asf/cordova-windows/blob/bdc4af32/windows/template/CordovaApp.vs2012.sln
----------------------------------------------------------------------
diff --git a/windows/template/CordovaApp.vs2012.sln b/windows/template/CordovaApp.vs2012.sln
index 300217c..60a27bc 100644
--- a/windows/template/CordovaApp.vs2012.sln
+++ b/windows/template/CordovaApp.vs2012.sln
@@ -19,7 +19,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# specific language governing permissions and limitations
# under the License.
#
-Project("{262852C6-CD72-467D-83FE-5EEB1973A190}") = "CordovaApp.Store8.0", "CordovaApp.Store80.jsproj", "{EFFFAB2F-BFC5-4EDA-B545-45EF4995F55A}"
+Project("{262852C6-CD72-467D-83FE-5EEB1973A190}") = "CordovaApp.Windows8.0", "CordovaApp.Windows80.jsproj", "{EFFFAB2F-BFC5-4EDA-B545-45EF4995F55A}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
http://git-wip-us.apache.org/repos/asf/cordova-windows/blob/bdc4af32/windows/template/cordova/lib/ApplyPlatformConfig.ps1
----------------------------------------------------------------------
diff --git a/windows/template/cordova/lib/ApplyPlatformConfig.ps1 b/windows/template/cordova/lib/ApplyPlatformConfig.ps1
index c179d5a..9e65a71 100644
--- a/windows/template/cordova/lib/ApplyPlatformConfig.ps1
+++ b/windows/template/cordova/lib/ApplyPlatformConfig.ps1
@@ -276,8 +276,8 @@ Function UpdateAssets ()
}
-UpdateManifest "$platformRoot\package.store.appxmanifest"
-UpdateManifest "$platformRoot\package.store80.appxmanifest"
+UpdateManifest "$platformRoot\package.windows.appxmanifest"
+UpdateManifest "$platformRoot\package.windows80.appxmanifest"
UpdateManifest "$platformRoot\package.phone.appxmanifest"
# replace splash screen images and icons
http://git-wip-us.apache.org/repos/asf/cordova-windows/blob/bdc4af32/windows/template/cordova/lib/build.js
----------------------------------------------------------------------
diff --git a/windows/template/cordova/lib/build.js b/windows/template/cordova/lib/build.js
index 9a661a3..0281dbb 100644
--- a/windows/template/cordova/lib/build.js
+++ b/windows/template/cordova/lib/build.js
@@ -29,8 +29,8 @@ var Q = require('Q'),
var ROOT = path.join(__dirname, '..', '..');
var projFiles = {
phone: 'CordovaApp.Phone.jsproj',
- win: 'CordovaApp.Store.jsproj',
- win80: 'CordovaApp.Store80.jsproj'
+ win: 'CordovaApp.Windows.jsproj',
+ win80: 'CordovaApp.Windows80.jsproj'
};
// parsed nopt arguments
var args;
http://git-wip-us.apache.org/repos/asf/cordova-windows/blob/bdc4af32/windows/template/cordova/lib/package.js
----------------------------------------------------------------------
diff --git a/windows/template/cordova/lib/package.js b/windows/template/cordova/lib/package.js
index 76175f1..95a15c2 100644
--- a/windows/template/cordova/lib/package.js
+++ b/windows/template/cordova/lib/package.js
@@ -75,7 +75,7 @@ module.exports.getInfo = function (packagePath) {
// This RE matches with package folder name like:
// CordovaApp.Phone_0.0.1.0_AnyCPU_Debug_Test
// Group: ( 1 ) ( 2 ) ( 3 ) ( 4 )
- var props = /.*\.(Phone|Store|Store80)_((?:\d\.)*\d)_(AnyCPU|x64|x86|ARM)(?:_(Debug))?_Test$/i.exec(path.basename(packagePath));
+ var props = /.*\.(Phone|Windows|Windows80)_((?:\d\.)*\d)_(AnyCPU|x64|x86|ARM)(?:_(Debug))?_Test$/i.exec(path.basename(packagePath));
if (props){
// return package info object inside of promise
return Q.resolve({path: packagePath,
@@ -104,7 +104,7 @@ module.exports.getAppId = function (platformPath) {
// return package name fetched from appxmanifest
// return rejected promise if appxmanifest not valid
module.exports.getPackageName = function (platformPath) {
- var manifest = path.join(platformPath, 'package.store.appxmanifest');
+ var manifest = path.join(platformPath, 'package.windows.appxmanifest');
try {
return Q.resolve(/Application Id="(.*?)"/gi.exec(fs.readFileSync(manifest, 'utf8'))[1]);
} catch (e) {
http://git-wip-us.apache.org/repos/asf/cordova-windows/blob/bdc4af32/windows/template/cordova/lib/run.js
----------------------------------------------------------------------
diff --git a/windows/template/cordova/lib/run.js b/windows/template/cordova/lib/run.js
index 58389b9..87fe36d 100644
--- a/windows/template/cordova/lib/run.js
+++ b/windows/template/cordova/lib/run.js
@@ -51,12 +51,12 @@ module.exports.run = function (argv) {
// Get build/deploy options
var buildType = args.release ? "release" : "debug",
buildArchs = args.archs ? args.archs.split(' ') : ["anycpu"],
- projectType = args.phone ? "phone" : "store",
+ projectType = args.phone ? "phone" : "windows",
deployTarget = args.target ? args.target : args.device ? "device" : "emulator";
- // for store switch we should correctly handle 8.0 and 8.1 version as per configuration
- if (projectType == 'store' && getWindowsTargetVersion() == '8.0') {
- projectType = 'store80'
+ // for win switch we should correctly handle 8.0 and 8.1 version as per configuration
+ if (projectType == 'windows' && getWindowsTargetVersion() == '8.0') {
+ projectType = 'windows80'
}
// if --nobuild isn't specified then build app first
http://git-wip-us.apache.org/repos/asf/cordova-windows/blob/bdc4af32/windows/template/package.store.appxmanifest
----------------------------------------------------------------------
diff --git a/windows/template/package.store.appxmanifest b/windows/template/package.store.appxmanifest
deleted file mode 100644
index 72a8d0e..0000000
--- a/windows/template/package.store.appxmanifest
+++ /dev/null
@@ -1,49 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
- 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.
--->
-<Package xmlns="http://schemas.microsoft.com/appx/2010/manifest" xmlns:m2="http://schemas.microsoft.com/appx/2013/manifest">
- <Identity Name="$guid1$" Version="1.0.0.0" Publisher="CN=$username$" />
- <Properties>
- <DisplayName>$projectname$</DisplayName>
- <PublisherDisplayName>$username$</PublisherDisplayName>
- <Logo>images\storelogo.png</Logo>
- </Properties>
- <Prerequisites>
- <OSMinVersion>6.3.0</OSMinVersion>
- <OSMaxVersionTested>6.3.0</OSMaxVersionTested>
- </Prerequisites>
- <Resources>
- <Resource Language="x-generate" />
- </Resources>
- <Applications>
- <Application Id="$safeprojectname$" StartPage="www/index.html">
- <m2:VisualElements DisplayName="$projectname$"
- Description="CordovaApp"
- ForegroundText="light"
- BackgroundColor="#464646"
- Square150x150Logo="images\Logo.png"
- Square30x30Logo="images\SmallLogo.png">
- <m2:SplashScreen Image="images\splashscreen.png" />
- </m2:VisualElements>
- </Application>
- </Applications>
- <Capabilities>
- <Capability Name="internetClient" />
- </Capabilities>
-</Package>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-windows/blob/bdc4af32/windows/template/package.store80.appxmanifest
----------------------------------------------------------------------
diff --git a/windows/template/package.store80.appxmanifest b/windows/template/package.store80.appxmanifest
deleted file mode 100644
index 9262457..0000000
--- a/windows/template/package.store80.appxmanifest
+++ /dev/null
@@ -1,50 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
- 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.
--->
-<Package xmlns="http://schemas.microsoft.com/appx/2010/manifest">
- <Identity Name="$guid1$" Version="1.0.0.0" Publisher="CN=$username$" />
- <Properties>
- <DisplayName>$projectname$</DisplayName>
- <PublisherDisplayName>$username$</PublisherDisplayName>
- <Logo>images\storelogo.png</Logo>
- </Properties>
- <Prerequisites>
- <OSMinVersion>6.2.1</OSMinVersion>
- <OSMaxVersionTested>6.2.1</OSMaxVersionTested>
- </Prerequisites>
- <Resources>
- <Resource Language="x-generate" />
- </Resources>
- <Applications>
- <Application Id="$safeprojectname$" StartPage="www/index.html">
- <VisualElements DisplayName="$projectname$"
- Logo="images\logo.png"
- SmallLogo="images\smalllogo.png"
- Description="CordovaApp"
- ForegroundText="light"
- BackgroundColor="#464646">
- <DefaultTile ShowName="allLogos" />
- <SplashScreen Image="images\splashscreen.png" />
- </VisualElements>
- </Application>
- </Applications>
- <Capabilities>
- <Capability Name="internetClient" />
- </Capabilities>
-</Package>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-windows/blob/bdc4af32/windows/template/package.windows.appxmanifest
----------------------------------------------------------------------
diff --git a/windows/template/package.windows.appxmanifest b/windows/template/package.windows.appxmanifest
new file mode 100644
index 0000000..72a8d0e
--- /dev/null
+++ b/windows/template/package.windows.appxmanifest
@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ 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.
+-->
+<Package xmlns="http://schemas.microsoft.com/appx/2010/manifest" xmlns:m2="http://schemas.microsoft.com/appx/2013/manifest">
+ <Identity Name="$guid1$" Version="1.0.0.0" Publisher="CN=$username$" />
+ <Properties>
+ <DisplayName>$projectname$</DisplayName>
+ <PublisherDisplayName>$username$</PublisherDisplayName>
+ <Logo>images\storelogo.png</Logo>
+ </Properties>
+ <Prerequisites>
+ <OSMinVersion>6.3.0</OSMinVersion>
+ <OSMaxVersionTested>6.3.0</OSMaxVersionTested>
+ </Prerequisites>
+ <Resources>
+ <Resource Language="x-generate" />
+ </Resources>
+ <Applications>
+ <Application Id="$safeprojectname$" StartPage="www/index.html">
+ <m2:VisualElements DisplayName="$projectname$"
+ Description="CordovaApp"
+ ForegroundText="light"
+ BackgroundColor="#464646"
+ Square150x150Logo="images\Logo.png"
+ Square30x30Logo="images\SmallLogo.png">
+ <m2:SplashScreen Image="images\splashscreen.png" />
+ </m2:VisualElements>
+ </Application>
+ </Applications>
+ <Capabilities>
+ <Capability Name="internetClient" />
+ </Capabilities>
+</Package>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-windows/blob/bdc4af32/windows/template/package.windows80.appxmanifest
----------------------------------------------------------------------
diff --git a/windows/template/package.windows80.appxmanifest b/windows/template/package.windows80.appxmanifest
new file mode 100644
index 0000000..9262457
--- /dev/null
+++ b/windows/template/package.windows80.appxmanifest
@@ -0,0 +1,50 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ 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.
+-->
+<Package xmlns="http://schemas.microsoft.com/appx/2010/manifest">
+ <Identity Name="$guid1$" Version="1.0.0.0" Publisher="CN=$username$" />
+ <Properties>
+ <DisplayName>$projectname$</DisplayName>
+ <PublisherDisplayName>$username$</PublisherDisplayName>
+ <Logo>images\storelogo.png</Logo>
+ </Properties>
+ <Prerequisites>
+ <OSMinVersion>6.2.1</OSMinVersion>
+ <OSMaxVersionTested>6.2.1</OSMaxVersionTested>
+ </Prerequisites>
+ <Resources>
+ <Resource Language="x-generate" />
+ </Resources>
+ <Applications>
+ <Application Id="$safeprojectname$" StartPage="www/index.html">
+ <VisualElements DisplayName="$projectname$"
+ Logo="images\logo.png"
+ SmallLogo="images\smalllogo.png"
+ Description="CordovaApp"
+ ForegroundText="light"
+ BackgroundColor="#464646">
+ <DefaultTile ShowName="allLogos" />
+ <SplashScreen Image="images\splashscreen.png" />
+ </VisualElements>
+ </Application>
+ </Applications>
+ <Capabilities>
+ <Capability Name="internetClient" />
+ </Capabilities>
+</Package>
\ No newline at end of file
[2/2] git commit: CB-6976 Changes switch name from '--store' to
'--win'
Posted by pu...@apache.org.
CB-6976 Changes switch name from '--store' to '--win'
Project: http://git-wip-us.apache.org/repos/asf/cordova-windows/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-windows/commit/735f9297
Tree: http://git-wip-us.apache.org/repos/asf/cordova-windows/tree/735f9297
Diff: http://git-wip-us.apache.org/repos/asf/cordova-windows/diff/735f9297
Branch: refs/heads/master
Commit: 735f92970431ffca015518611cd8c6b37fe09385
Parents: e022826
Author: sgrebnov <v-...@microsoft.com>
Authored: Fri Aug 15 13:27:10 2014 +0400
Committer: sgrebnov <v-...@microsoft.com>
Committed: Fri Aug 15 18:54:45 2014 +0400
----------------------------------------------------------------------
windows/template/cordova/lib/build.js | 38 ++++++++++++++++--------------
windows/template/cordova/lib/run.js | 21 ++++++++---------
2 files changed, 30 insertions(+), 29 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-windows/blob/735f9297/windows/template/cordova/lib/build.js
----------------------------------------------------------------------
diff --git a/windows/template/cordova/lib/build.js b/windows/template/cordova/lib/build.js
index 6dcf8f1..9a661a3 100644
--- a/windows/template/cordova/lib/build.js
+++ b/windows/template/cordova/lib/build.js
@@ -29,8 +29,8 @@ var Q = require('Q'),
var ROOT = path.join(__dirname, '..', '..');
var projFiles = {
phone: 'CordovaApp.Phone.jsproj',
- store: 'CordovaApp.Store.jsproj',
- store80: 'CordovaApp.Store80.jsproj'
+ win: 'CordovaApp.Store.jsproj',
+ win80: 'CordovaApp.Store80.jsproj'
};
// parsed nopt arguments
var args;
@@ -66,12 +66,14 @@ module.exports.run = function run (argv) {
// help/usage function
module.exports.help = function help() {
console.log("");
- console.log("Usage: build [ --debug | --release ] [--archs=\"<list of architectures...>\"]");
+ console.log("Usage: build [ --debug | --release ] [--archs=\"<list of architectures...>\"] [--phone | --win]");
console.log(" --help : Displays this dialog.");
- console.log(" --debug : builds project in debug mode. (Default)");
- console.log(" --release : builds project in release mode.");
- console.log(" -r : shortcut :: builds project in release mode.");
- console.log(" --archs : Builds project binaries for specific chip architectures. `anycpu` + `arm` + `x86` + `x64` are supported.");
+ console.log(" --debug : Builds project in debug mode. (Default)");
+ console.log(" --release : Builds project in release mode.");
+ console.log(" -r : Shortcut :: builds project in release mode.");
+ console.log(" --archs : Builds project binaries for specific chip architectures (`anycpu`, `arm`, `x86`, `x64`).");
+ console.log(" --phone, --win");
+ console.log(" : Specifies, what type of project to build");
console.log("examples:");
console.log(" build ");
console.log(" build --debug");
@@ -84,13 +86,13 @@ module.exports.help = function help() {
function parseAndValidateArgs(argv) {
// parse and validate args
args = nopt({'debug': Boolean, 'release': Boolean, 'archs': [String],
- 'phone': Boolean, 'store': Boolean}, {'-r': '--release'}, argv);
+ 'phone': Boolean, 'win': Boolean}, {'-r': '--release'}, argv);
// Validate args
if (args.debug && args.release) {
throw 'Only one of "debug"/"release" options should be specified';
}
- if (args.phone && args.store) {
- throw 'Only one of "phone"/"store" options should be specified';
+ if (args.phone && args.win) {
+ throw 'Only one of "phone"/"win" options should be specified';
}
// get build options/defaults
@@ -120,7 +122,7 @@ function buildTargets() {
build.arch = 'anycpu';
}
// msbuild 4.0 requires .sln file, we can't build jsproj
- if (msbuild.version == '4.0' && build.target == projFiles.store80) {
+ if (msbuild.version == '4.0' && build.target == projFiles.win80) {
build.target = 'CordovaApp.vs2012.sln';
}
return msbuild.buildProject(path.join(ROOT, build.target), buildType, build.arch);
@@ -138,23 +140,23 @@ function applyPlatformConfig() {
function getBuildTargets() {
var config = new ConfigParser(path.join(ROOT, 'config.xml'));
var targets = [];
- var noSwitches = !(args.phone || args.store);
-
- if (args.store || noSwitches) { // if --store or no arg
+ var noSwitches = !(args.phone || args.win);
+ // Windows
+ if (args.win || noSwitches) { // if --win or no arg
var windowsTargetVersion = config.getPreference('windows-target-version')
switch(windowsTargetVersion) {
case '8':
case '8.0':
- targets.push(projFiles.store80);
+ targets.push(projFiles.win80);
break;
case '8.1':
- targets.push(projFiles.store);
+ targets.push(projFiles.win);
break;
default:
throw new Error('Unsupported windows-target-version value: ' + windowsTargetVersion)
}
}
-
+ // Windows Phone
if (args.phone || noSwitches) { // if --phone or no arg
var windowsPhoneTargetVersion = config.getPreference('windows-phone-target-version')
switch(windowsPhoneTargetVersion) {
@@ -180,7 +182,7 @@ function filterSupportedTargets (targets) {
// MSBuild 4.0 does not support Windows 8.1 and Windows Phone 8.1
var supportedTargets = targets.filter(function(target) {
- return target != projFiles.store && target != projFiles.phone;
+ return target != projFiles.win && target != projFiles.phone;
});
// unsupported targets have been detected
http://git-wip-us.apache.org/repos/asf/cordova-windows/blob/735f9297/windows/template/cordova/lib/run.js
----------------------------------------------------------------------
diff --git a/windows/template/cordova/lib/run.js b/windows/template/cordova/lib/run.js
index ec1552c..58389b9 100644
--- a/windows/template/cordova/lib/run.js
+++ b/windows/template/cordova/lib/run.js
@@ -35,7 +35,7 @@ module.exports.run = function (argv) {
// parse args
var args = nopt({"debug": Boolean, "release": Boolean, "nobuild": Boolean,
"device": Boolean, "emulator": Boolean, "target": String, "archs": String,
- "phone": Boolean, "store": Boolean}, {"r" : "--release"}, argv);
+ "phone": Boolean, "win": Boolean}, {"r" : "--release"}, argv);
// Validate args
if (args.debug && args.release) {
@@ -44,8 +44,8 @@ module.exports.run = function (argv) {
if ((args.device && args.emulator) || ((args.device || args.emulator) && args.target)) {
return Q.reject('Only one of "device"/"emulator"/"target" options should be specified');
}
- if (args.phone && args.store) {
- return Q.reject('Only one of "phone"/"store" options should be specified');
+ if (args.phone && args.win) {
+ return Q.reject('Only one of "phone"/"win" options should be specified');
}
// Get build/deploy options
@@ -55,7 +55,7 @@ module.exports.run = function (argv) {
deployTarget = args.target ? args.target : args.device ? "device" : "emulator";
// for store switch we should correctly handle 8.0 and 8.1 version as per configuration
- if (projectType == 'store' && getStoreTargetVersion() == '8.0') {
+ if (projectType == 'store' && getWindowsTargetVersion() == '8.0') {
projectType = 'store80'
}
@@ -74,17 +74,16 @@ module.exports.run = function (argv) {
module.exports.help = function () {
console.log("\nUsage: run [ --device | --emulator | --target=<id> ] [ --debug | --release | --nobuild ]");
- console.log(" [ --x86 | --x64 | --arm ] [--phone | --store | --store81 | --store80]");
+ console.log(" [ --x86 | --x64 | --arm ] [--phone | --win]");
console.log(" --device : Deploys and runs the project on the connected device.");
console.log(" --emulator : Deploys and runs the project on an emulator.");
console.log(" --target=<id> : Deploys and runs the project on the specified target.");
console.log(" --debug : Builds project in debug mode.");
console.log(" --release : Builds project in release mode.");
- console.log(" --nobuild : Uses pre-built xap, or errors if project is not built.");
- console.log(" --x86, --x64, --arm");
- console.log(" : Specifies chip architecture.");
- console.log(" --phone, --store, --store81, --store80");
- console.log(" : Specifies, what type of project to deploy");
+ console.log(" --nobuild : Uses pre-built package, or errors if project is not built.");
+ console.log(" --archs : Specific chip architectures (`anycpu`, `arm`, `x86`, `x64`).");
+ console.log(" --phone, --win");
+ console.log(" : Specifies project type to deploy");
console.log("");
console.log("Examples:");
console.log(" run");
@@ -98,7 +97,7 @@ module.exports.help = function () {
};
-function getStoreTargetVersion() {
+function getWindowsTargetVersion() {
var config = new ConfigParser(path.join(ROOT, 'config.xml'));
var windowsTargetVersion = config.getPreference('windows-target-version')
switch(windowsTargetVersion) {