【发布时间】:2017-07-20 10:49:06
【问题描述】:
我需要使用 cmd 行通过 cordova 插件更新 Windows 10 应用程序的 package.appmanifest。 下面是我在 plugin.xml 中的代码 sn-p,它应该更新 appmanifest 但不起作用。
<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",但这也没有用。
【问题讨论】:
标签: cordova uwp windows-10 phonegap-plugins cordova-plugins