将node-webkit app(exe)打包到Win 8.1 appx

时间:2014-09-29 10:34:01

标签: windows-8.1 executable node-webkit

我正在尝试将我创建的已构建的node-webkit应用程序转换为可执行的appx Win 8.1 Metro App。

创建我的appx包并签名后,创建我的AppxManifest.xml文件:

<?xml version="1.0" encoding="utf-8"?>
<Package xmlns="http://schemas.microsoft.com/appx/2010/manifest">
    <Identity Name="bouveret" Version="1.0.0.0" Publisher="CN=Mc" />
    <Properties>
        <DisplayName>iMotion</DisplayName>
        <PublisherDisplayName>XXX</PublisherDisplayName>
        <Logo>logo.png</Logo>
    </Properties>
    <Prerequisites>
        <OSMinVersion>6.2.1</OSMinVersion>
        <OSMaxVersionTested>6.2.1</OSMaxVersionTested>
    </Prerequisites>
    <Resources>
        <Resource Language="fr" />
    </Resources>
    <Applications>
        <Application Id="bouveret" Executable="bouveret.exe" EntryPoint="WinMain">
            <VisualElements DisplayName="iMotion" Logo="logo.png" SmallLogo="logo.png" Description="iMotion" ForegroundText="light" BackgroundColor="#000000" ToastCapable="false">
                <DefaultTile ShowName="allLogos" ShortName="iMotion" WideLogo="logo.png" />
                <SplashScreen Image="logo.png" />
                <InitialRotationPreference>
                    <Rotation Preference="portrait" />
                </InitialRotationPreference>
            </VisualElements>
        </Application>
    </Applications>
</Package>

我设法通过Powershell安装它,但我怀疑它没有设法运行应用程序的入口点。 NW应用程序没有可用于设置正确入口点的C#接口。

任何人都知道应该设置哪个入口点?可执行文件正确启动,但appx软件包没有启动任何东西:我在黑色背景上看到徽标,然后在没有任何调试跟踪的情况下最小化到桌面。

谢谢。

0 个答案:

没有答案
相关问题