奇迹自动更新

2016-10-21 10:37
270
修改D:\WWW\NewVersion\QMQJ\version.xml

<?xml version="1.0" encoding="utf-8"?>
<Config URL="http://muhon.gnway.net:808/Android/mu14x/">
  <Application VerText="Beta 1" VerCode="20150516" />      ----------修改这个值(列如:20150517)
  <Resource VerText="Beta 1" VerCode="20150510" />
  <PackageType IsMiniPack="false" />
  <AppLevelUp VerCode="1410" linkurl="" isOpen="1" msg="" />
  <Info serverip="muhon.gnway.net" voiceserverip="muhon.gnway.net:808/yy/audiochat/" pushserverip="muhon.gnway.net:28461/2/" serverlisturl="muhon.gnway.net:808/serverlist/GetServerList.aspx" verifyaccountserverip="muhon.gnway.net:808/" versionurl="muhon.gnway.net:808/Version/Android/" bakurl="muhon.gnway.net:808/QMQJLogin/" updateclientname="ANZHImini_2015_4_22_15_56.apk" serverid="1" gameid="local" login="1" lang="0" isolateresid="1" roleNum="0" deleteRole="1" loginport="4402" gameport="3001" />
  <Test TestURL="http://muhon.gnway.net:808/NewVersion/QMQJ/" />
</Config>



更新客户端需要更新的文件,在修改客户端version.xml文件


<?xml version="1.0" encoding="utf-8"?>
<Config URL="http://muhon.gnway.net:808/Android/mu14x/">
  <Application VerText="Beta 1" VerCode="20150516" />      ----------修改这个值(列如:20150517)
  <Resource VerText="Beta 1" VerCode="20150510" />
  <PackageType IsMiniPack="false" />
  <AppLevelUp VerCode="1410" linkurl="" isOpen="1" msg="" />
  <Info serverip="muhon.gnway.net" voiceserverip="muhon.gnway.net:808/yy/audiochat/" pushserverip="muhon.gnway.net:28461/2/" serverlisturl="muhon.gnway.net:808/serverlist/GetServerList.aspx" verifyaccountserverip="muhon.gnway.net:808/" versionurl="muhon.gnway.net:808/Version/Android/" bakurl="muhon.gnway.net:808/QMQJLogin/" updateclientname="ANZHImini_2015_4_22_15_56.apk" serverid="1" gameid="local" login="1" lang="0" isolateresid="1" roleNum="0" deleteRole="1" loginport="4402" gameport="3001" />
  <Test TestURL="http://muhon.gnway.net:808/NewVersion/QMQJ/" />
</Config>



修改好后打包客户端,修改客户端名字为ANZHImini_2015_4_22_15_56.apk放到网站D:\WWW\Android\mu14x目录下即可实现自动更新

收藏
0 条回帖
需要登陆后才可进行回复 登录
*滑动验证:

返回顶部
现在加入我们,注册一个账号 账号登陆 QQ账号登陆 微博账号登陆

微信扫一扫,马上找工作

在线客服