2
我使用sencha create app命令创建了我的应用程序。它在本地机器上以及我们的Web服务器上工作。我试图建立生产应用程序,但下面的命令是不是为我工作:sencha应用程序构建生产不起作用
煎茶的应用程序建立生产
我没有收到任何错误消息或输出任何责任。目录中没有任何更改。
下面的命令:
煎茶构建-p appname.jsb3 -v -d。
生成jsb3文件。但是,我的index.html从不更新以加载新文件。根据我在网上找到的信息,我的index.html应该更新为指向新文件。
我想我错过了某个地方的东西,但我找不到任何在线教程,为我工作。任何人都可以将我指向正确的方向吗?我的index.html贴在下面,如果这有助于确定我做错了什么。
<!DOCTYPE HTML>
<html manifest="" lang="en-US">
<head>
<meta charset="UTF-8">
<title>EGL Mobile</title>
<style type="text/css">
/**
* Example of an initial loading indicator.
* It is recommended to keep this as minimal as possible to provide instant feedback
* while other resources are still being loaded for the first time
*/
html, body {
height: 100%;
}
#appLoadingIndicator {
position: absolute;
top: 50%;
left: 50%;
margin-top: -10px;
margin-left: -50px;
width: 100px;
height: 20px;
}
#appLoadingIndicator > * {
background-color: #FFFFFF;
float: left;
height: 20px;
margin-left: 11px;
width: 20px;
-webkit-animation-name: appLoadingIndicator;
-webkit-border-radius: 13px;
-webkit-animation-duration: 0.8s;
-webkit-animation-iteration-count: infinite;
-webkit-animation-direction: linear;
opacity: 0.3
}
#appLoadingIndicator > :nth-child(1) {
-webkit-animation-delay: 0.18s;
}
#appLoadingIndicator > :nth-child(2) {
-webkit-animation-delay: 0.42s;
}
#appLoadingIndicator > :nth-child(3) {
-webkit-animation-delay: 0.54s;
}
@-webkit-keyframes appLoadingIndicator{
0% {
opacity: 0.3
}
50% {
opacity: 1;
background-color:#1985D0
}
100% {
opacity:0.3
}
}
</style>
<script id="microloader" type="text/javascript" src="sdk/microloader/development.js"></script>
</head>
<body>
<div id="appLoadingIndicator">
<div></div>
<div></div>
<div></div>
</div>
</body>
</html>
你运行的是最新版本的SDK工具?什么版本的Sencha Touch?什么OS? – rdougan
我在大约一个月前运行了最新版本的SDK工具。我正在使用MAC。 – creatvepro
SDK工具不应更新index.html。相反,它应该根据您的构建类型(您的情况下的生产)将您的应用程序构建到'builds'文件夹中。你有没有尝试创建一个新的新构建,并试图建立呢? – rdougan