web update

”’

tmp file to save last directory version info

”’

 

import os;
myver = “1.0.1”
”’
head
”’
os.system(“layacmd resourceVersion -i assets -o . -n “+myver);
f = open(“.record”,”r”,encoding=”utf8″);
s = f.read();
s1 = s.replace(“</manifest></record>”,””);
f.close();

mani = open(“manifest.json”,encoding=”utf8″);
m = mani.read();
m1 = m.replace(“}”,”,”);
mani.close();
”’
middle
”’
try:
tmp = open(“jsTmp”,”r”,encoding=”utf8″);
if tmp:
print(“jsTmp”);
f = open(“.record”,”w”,encoding=”utf8″);
f.write(tmp.read());
f.close();
tmp.close();
except Exception as e:
print(” jsTmp is not exist”)

try:
tmp = open(“jsMTmp”,”r”,encoding=”utf8″);
if tmp:
print(“jsMtmp”);
f = open(“manifest.json”,”w”,encoding=”utf8″);
f.write(tmp.read());
f.close();
tmp.close();
except Exception as e:
print(” jsMtmp is not exist”)

os.system(“layacmd resourceVersion -i js -o . -n “+myver);
f = open(“.record”,”r”,encoding=”utf8″);
s = f.read();
sm = s[s.index(“<file”):s.index(“</manifest></record>”)]

f.seek(0);
tmp = open(“jsTmp”,”w+”,encoding=”utf8″);
tmp.write(s);
tmp.close();

f.close();
s1=s1+sm;
mani = open(“manifest.json”,encoding=”utf8″);
m = mani.read();
mm = m[m.index(‘”‘):m.index(“}”)];

mani.seek(0);
tmp = open(“jsMTmp”,”w+”,encoding=”utf8″);
tmp.write(m);
tmp.close();

mani.close();
m1= m1+mm+”,”;
”’
end
”’
try:
tmp = open(“resTmp”,”r”,encoding=”utf8″);
if tmp:
print(“resTmp”);
f = open(“.record”,”w”,encoding=”utf8″);
f.write(tmp.read());
f.close();
tmp.close();
except Exception as e:
print(” resTmp is not exist”)

try:

tmp = open(“resMTmp”,”r”,encoding=”utf8″);
if tmp:
print(“resMTmp”);
f = open(“manifest.json”,”w”,encoding=”utf8″);
f.write(tmp.read());
f.close();
tmp.close();
except Exception as e:
print(” resMTmp is not exist”)

os.system(“layacmd resourceVersion -i res -o . -n “+myver);
f = open(“.record”,”r”,encoding=”utf8″);
s = f.read();
f.close();

tmp = open(“resTmp”,”w+”,encoding=”utf8″);
tmp.write(s);
tmp.close();

s2 = s[s.index(“<file”):]
s3 = s1+s2
f = open(“.record”,”w”,encoding=”utf8″);
f.write(s3);
f.close();

mani = open(“manifest.json”,encoding=”utf8″);
m = mani.read();
m2 = m[m.index(‘”‘):]
mani.close();
m3 = m1+m2

tmp = open(“resMTmp”,”w+”,encoding=”utf8″);
tmp.write(m);
tmp.close();

mani = open(“manifest.json”,”w”,encoding=”utf8″);
mani.write(m3);
mani.close();

test ver

layacmd -resourceVersion -i inputRes -o outputDir -n 1.0.4

 

用法:
layadcc 输入目录 [options]
options:
-cache 生成cache.
-lwr 文件路径全部转为小写。
-url url 生成cache的话,对应的url.
-cout outpath cache的输出目录,如果不设置的话,就是在资源目录下。
例如:
layadcc d:/game/wow -cache -url www.game.com

 

除了update目录拷贝 —其它资源怎么处理例如新加的文件

2—————-
layadccout/cache目录要不要也上传到服务器去

除了update目录拷贝 —其它资源怎么处理例如新加的文件?
有两种方法:
1.在本地打好dcc的话需要把update目录拷贝到服务器上,同时新增的文件也要手动拷贝到服务器上
2.先把文件拷贝到服务器上,然后在服务器上打dcc

 

layadccout/cache目录要不要也上传到服务器去?
这个不用传,也不能传

Node timerLoop

public function init():void

{

for(var i:int = 1;i<6;i++)
{
var sp:Sprite = new Sprite();
sp.timerOnce(i*500,sp,function(s:Sprite)
{
s.timerLoop(50,s,doIt,[s])
},[sp]);

sp.graphics.drawCircle(0, 0, 15, “#00ffff”);
sp.y = 70*i;
stage.addChild(sp);
}

}
public function doIt(s:Sprite):void
{
s.x += 5;
if(s.x>300)
{
s.x = 0;
s.clearTimer(this,arguments.callee);
}

}

<?php
$password = ‘123456’;

$hash = crypt($password, ‘$1$rasmusle$’);
echo $hash;
?>

SVN Server

htpasswd

-m  默认apache htpassswd命令采用MD5算法对密码进行加密

Flash Player不更新

大家都说它要死了,那很多游戏公司依赖它作为媒介要怎么生存。

有些公司已经跟着不更新相应的产品了。有人收购Adobe这款产品为它续命吗?

那些大佬们 出手吗

那么多文档,作品要消失吗?