橙光2017近期更新到了2.4.8.0425,调整了一下程序的目录结构.
对于本地打包的影响是,h5目录下的bin目录取消了,直接提到了h5一级
所以有一点小小的变化.
(我的是这样,据说有人的还是有bin一级目录,那就和2.4.7一样哈)
假设我们的游戏准备安装到"c:\avg1"目录
复制h5到c:\avg1\h5目录
工程另存为c:\avg\我的作品1
关键的三个参数变成了
c:/avg1/h5/index.html?mark=pc
或者c:/avg1/h5/bin/index.html?mark=pc, 关系不大
c:/avg1/我的作品1
c:/avg1/h5/userData
对应的cmd
AVG_Web_Browser %%7B%%22OpenWindow%%22%%3A%%7B%%22Width%%22%%3A%%22962%%22%%2C%%22Height%%22%%3A%%22571%%22%%2C%%22Pathname%%22%%3A%%22c%%253A%%252Favg1%%252Fh5%%252Findex.html%%253Fmark%%253Dpc%%22%%2C%%22Local%%22%%3A%%22True%%22%%2C%%22Protocol%%22%%3A%%22file%%3A%%22%%2C%%22Slashes%%22%%3A%%22True%%22%%2C%%22ProjectName%%22%%3A%%22%%E6%%88%%91%%E7%%9A%%84%%E4%%BD%%9C%%E5%%93%%811%%22%%2C%%22TitleBarStyle%%22%%3A%%22%%22%%2C%%22SkipTaskbar%%22%%3A%%22False%%22%%2C%%22Guid%%22%%3A%%22%%22%%2C%%22Uid%%22%%3A%%220%%22%%2C%%22Gindex%%22%%3A%%220%%22%%2C%%22SessionID%%22%%3A%%22%%22%%2C%%22MSource%%22%%3A%%2210%%22%%2C%%22AlwaysOnTop%%22%%3A%%22False%%22%%2C%%22OpenGame%%22%%3A%%7B%%22ProjectWidth%%22%%3A960%%2C%%22ProjectHeight%%22%%3A540%%2C%%22MapID%%22%%3A1%%2C%%22ProjectPath%%22%%3A%%22c%%253A%%252Favg1%%252F%%25E6%%2588%%2591%%25E7%%259A%%2584%%25E4%%25BD%%259C%%25E5%%2593%%25811%%22%%2C%%22FilePath%%22%%3A%%22c%%253A%%252Favg1%%252Fh5%%252FuserData%%22%%7D%%7D%%7D
如果作品名称修改了,记得用在线工具转为对应的编码
发布的时候,只要把avg1目录压缩打包即可
注意,在其他机器也要解压缩为c:\avg1目录.