我需要更新package.appmanifest的windows 10应用程序通过科多瓦插件使用cmd线。下面是我在plugin.xml中的代码片段,它应该更新app清单,但不能工作。
<config-file target="package.appxmanifest" parent="/Package/Capabilities">
<DeviceCapability Name="webcam"/>
<DeviceCapability Name="microphone"/>
</config-file>Windows版本: 4.4.3 科多瓦版本: 6.4.0
另外,请让我知道如何改变应用程序图标?我试过跟随,但这也不起作用。
<config-file target="package.appxmanifest" parent="/Package/Applications/Application">
<uap:VisualElements
DisplayName="MyApp"
Description="My description"
BackgroundColor="#464646"
Square150x150Logo="images\Square150x150Logo.png"
Square44x44Logo="images\Square44x44Logo.png">
<uap:SplashScreen Image="images\splashscreen.png" />
<uap:DefaultTile ShortName="MyAppName"
Square310x310Logo="images\Square310x310Logo.png"
Square71x71Logo="images\Square71x71Logo.png"
Wide310x150Logo="images\Wide310x150Logo.png" />
</uap:VisualElements>
</config-file>更新:
我也尝试过把目标作为target="package.windows10.appxmanifest",但这也不起作用。
发布于 2017-07-20 02:49:06
我需要更新package.appmanifest的windows 10应用程序通过科多瓦插件使用cmd线。下面是我在plugin.xml中的代码片段,它应该更新app清单,但不能工作。
请确保您在正确的位置添加了config-file:
plugin.xml的一个例子
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
id="cordova-plugin-test"
version="1.0.0">
<name>TestPlugin</name>
<description>Cordova Test Plugin</description>
<license>Apache 2.0</license>
<!-- windows -->
<platform name="windows">
<config-file target="package.appxmanifest" parent="/Package/Capabilities">
<Capability Name="picturesLibrary" />
<DeviceCapability Name="webcam" />
</config-file>
</platform>
</plugin>注意:生成后,您可以在platforms\windows\package.appxmanifest中检查结果。
另外,请让我知道如何改变应用程序图标?
若要更改应用程序图标,请参阅自定义应用程序图标。
https://stackoverflow.com/questions/45183753
复制相似问题