小程序
小游戏
企业微信
微信支付
扫描小程序码分享
"REMOTE_SERVER_ROOT=*******;orientation=landscape;appid=*******" --build后按这个弄得参数填的微信小游戏选项发布出来有问题。
3 个回答
加粗
标红
插入代码
插入链接
插入图片
上传视频
你是用了别的引擎打包发布微信小游戏?
你好,麻烦通过点击下方“反馈信息”按钮,提供出现问题的。
cocos creator 构建发布
那这个似乎是cocos creator的问题
orientation - native 平台(不含微信小游戏)下的旋转选项 [portrait, upsideDown, landscapeLeft, landscapeRight] 因为这是一个 object, 所以定义会特殊一些:
orientation
orientation={'landscapeLeft': true} 或
orientation={'landscapeLeft': true, 'portrait': true}
wechatgame是和这个一样的吧,生成不对。
麻烦给下小游戏的appid,具体代码、相关截图也提供下
def releaseClientPacker():
rmTsFile(sdkDestPath)
SvnExport(sdkSourcePath,sdkDestPath)
CopyFile(sdkSourcePath,sdkDestPath)
curPath = os.getcwd()
cmd =cocoscreate
if IsWindows() == True:
CdPath(cocoscreate)
cmd ="CocosCreator.exe"
cmd += " --path " + clientPath
cmd += " --build \"autoCompile="+autoCompile
cmd += ";platform="+ releaseplatform
cmd += ";debug=" + debug
cmd += ";buildPath="+buildPath
cmd += ";title="+title
cmd += ";startScene="+startScene
cmd += ";inlineSpriteFrames="+inlineSpriteFrames
cmd += ";mergeStartScene="+mergeStartScene
cmd += ";optimizeHotUpdate="+optimizeHotUpdate
cmd += ";sourceMaps="+sourceMaps
cmd += ";md5Cache="+md5Cache
#cmd += ";wechatgame={'appid':\"wx636863e199733058\",'REMOTE_SERVER_ROOT':\"211.159.202.117:80/snake\",'orientation':\"landscape\"}"
cmd += ";wechatgame={'appid':"+appid
cmd += ",'REMOTE_SERVER_ROOT':"+REMOTE_SERVER_ROOT
cmd += ",'orientation':"+orientation
cmd +="}\""
os.system(cmd)
CdPath(curPath)
跟前面不一样
关注后,可在微信内接收相应的重要提醒。
请使用微信扫描二维码关注 “微信开放社区” 公众号
你是用了别的引擎打包发布微信小游戏?
cocos creator 构建发布
那这个似乎是cocos creator的问题
orientation
- native 平台(不含微信小游戏)下的旋转选项 [portrait, upsideDown, landscapeLeft, landscapeRight] 因为这是一个 object, 所以定义会特殊一些:orientation={'landscapeLeft': true} 或
orientation={'landscapeLeft': true, 'portrait': true}
wechatgame是和这个一样的吧,生成不对。
麻烦给下小游戏的appid,具体代码、相关截图也提供下
def releaseClientPacker():
rmTsFile(sdkDestPath)
SvnExport(sdkSourcePath,sdkDestPath)
CopyFile(sdkSourcePath,sdkDestPath)
curPath = os.getcwd()
cmd =cocoscreate
if IsWindows() == True:
CdPath(cocoscreate)
cmd ="CocosCreator.exe"
cmd += " --path " + clientPath
cmd += " --build \"autoCompile="+autoCompile
cmd += ";platform="+ releaseplatform
cmd += ";debug=" + debug
cmd += ";buildPath="+buildPath
cmd += ";title="+title
cmd += ";startScene="+startScene
cmd += ";inlineSpriteFrames="+inlineSpriteFrames
cmd += ";mergeStartScene="+mergeStartScene
cmd += ";optimizeHotUpdate="+optimizeHotUpdate
cmd += ";sourceMaps="+sourceMaps
cmd += ";md5Cache="+md5Cache
#cmd += ";wechatgame={'appid':\"wx636863e199733058\",'REMOTE_SERVER_ROOT':\"211.159.202.117:80/snake\",'orientation':\"landscape\"}"
cmd += ";wechatgame={'appid':"+appid
cmd += ",'REMOTE_SERVER_ROOT':"+REMOTE_SERVER_ROOT
cmd += ",'orientation':"+orientation
cmd +="}\""
os.system(cmd)
CdPath(curPath)
跟前面不一样