update templates to support winjs and testing outside of uwp env
This commit is contained in:
committed by
Joshua Granick
parent
5a513c0ab5
commit
89fee086e9
@@ -4,6 +4,14 @@
|
||||
(function () {
|
||||
"use strict";
|
||||
|
||||
if(typeof Windows !== "undefined") {
|
||||
initUWP();
|
||||
} else {
|
||||
lime.embed ("::APP_FILE::", "content", ::WIN_WIDTH::, ::WIN_HEIGHT::);
|
||||
}
|
||||
|
||||
|
||||
function initUWP() {
|
||||
var app = WinJS.Application;
|
||||
var activation = Windows.ApplicationModel.Activation;
|
||||
var isFirstActivation = true;
|
||||
@@ -59,5 +67,7 @@
|
||||
};
|
||||
|
||||
app.start();
|
||||
}
|
||||
|
||||
|
||||
})();
|
||||
|
||||
@@ -32,8 +32,8 @@
|
||||
StartPage="index.html">
|
||||
|
||||
<uap:VisualElements
|
||||
DisplayName="HelloJS"
|
||||
Description="HelloJS"
|
||||
DisplayName="::APP_TITLE::"
|
||||
Description="::APP_TITLE::"
|
||||
BackgroundColor="transparent"
|
||||
Square150x150Logo="images\Square150x150Logo.png"
|
||||
Square44x44Logo="images\Square44x44Logo.png">
|
||||
|
||||
@@ -61,6 +61,7 @@
|
||||
<SubType>Designer</SubType>
|
||||
</AppxManifest>
|
||||
<Content Include="index.html" />
|
||||
<Content Include="*.js" />
|
||||
<Content Include="images\**\*.*" />
|
||||
<Content Include="js\**\*.*" />
|
||||
<Content Include="fonts\**\*.*" />
|
||||
|
||||
Reference in New Issue
Block a user