打包增加海外渠道参数
parent
d42419d7cd
commit
5b89076af8
|
|
@ -45,6 +45,11 @@ internal class BatchBuild
|
|||
/// </summary>
|
||||
private const string Pre_PostUrl = "http://pre_openapi.kedrgame.com/api/v1/";
|
||||
|
||||
/// <summary>
|
||||
/// 海外Release上传地址
|
||||
/// </summary>
|
||||
private const string Oversea_Release_PostUrl = "http://intl_openapi.kedrgame.com/api/v1/";
|
||||
|
||||
/// <summary>
|
||||
/// Release上传地址
|
||||
/// </summary>
|
||||
|
|
@ -82,6 +87,7 @@ internal class BatchBuild
|
|||
httpKey = YooAssetBuildBase.httpKey,
|
||||
version = YooAssetBuildBase.appVersion,
|
||||
isDev = YooAssetBuildBase.isDev,
|
||||
isOversea = YooAssetBuildBase.isOversea,
|
||||
buildTicks = DateTime.Now.Ticks,
|
||||
buildCode = bundleVersionCode,
|
||||
};
|
||||
|
|
@ -275,13 +281,20 @@ internal class BatchBuild
|
|||
{
|
||||
if (PackDataInst.Inst.localInfo.isDev)
|
||||
{
|
||||
HttpHelper.PostAsync($"{Dev_PostUrl}version", loginKeyData, headData).Forget();
|
||||
HttpHelper.PostAsync($"{Release_PostUrl}version", loginKeyData, headData).Forget(); // 兼容特殊渠道,比如稳定服,不走正式发版
|
||||
if (PackDataInst.Inst.localInfo.isOversea)
|
||||
HttpHelper.PostAsync($"{Oversea_Release_PostUrl}version", loginKeyData, headData).Forget(); // 暂时海外dev也使用Release
|
||||
else
|
||||
HttpHelper.PostAsync($"{Dev_PostUrl}version", loginKeyData, headData).Forget();
|
||||
}
|
||||
else
|
||||
{
|
||||
HttpHelper.PostAsync($"{Pre_PostUrl}version", loginKeyData, headData).Forget();
|
||||
HttpHelper.PostAsync($"{Release_PostUrl}version", loginKeyData, headData).Forget();
|
||||
if (PackDataInst.Inst.localInfo.isOversea)
|
||||
HttpHelper.PostAsync($"{Oversea_Release_PostUrl}version", loginKeyData, headData).Forget();
|
||||
else
|
||||
{
|
||||
HttpHelper.PostAsync($"{Pre_PostUrl}version", loginKeyData, headData).Forget();
|
||||
HttpHelper.PostAsync($"{Release_PostUrl}version", loginKeyData, headData).Forget();
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception e)
|
||||
|
|
@ -340,8 +353,11 @@ internal class BatchBuild
|
|||
private class ChannelConfig
|
||||
{
|
||||
public List<string> Define_list { get; set; }
|
||||
|
||||
public string PackageName { get; set; }
|
||||
|
||||
public bool IsOversea { get; set; }
|
||||
|
||||
public int BuildCode { get; set; }
|
||||
|
||||
public string ConfigAccessKeyId { get; set; }
|
||||
|
|
@ -420,6 +436,8 @@ internal class BatchBuild
|
|||
}
|
||||
}
|
||||
|
||||
YooAssetBuildBase.isOversea = config.IsOversea;
|
||||
|
||||
// 处理BuildCode
|
||||
if (config.BuildCode != 0)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -127,6 +127,7 @@ class BuildLauncher
|
|||
httpKey = YooAssetBuildBase.httpKey,
|
||||
version = YooAssetBuildBase.appVersion,
|
||||
isDev = YooAssetBuildBase.isDev,
|
||||
isOversea = YooAssetBuildBase.isOversea,
|
||||
buildTicks = DateTime.Now.Ticks,
|
||||
buildCode = BatchBuild.GetBundleVersionCode(),
|
||||
};
|
||||
|
|
@ -168,6 +169,7 @@ class BuildLauncher
|
|||
httpKey = YooAssetBuildBase.httpKey,
|
||||
version = YooAssetBuildBase.appVersion,
|
||||
isDev = YooAssetBuildBase.isDev,
|
||||
isOversea = YooAssetBuildBase.isOversea,
|
||||
buildTicks = DateTime.Now.Ticks,
|
||||
buildCode = BatchBuild.GetBundleVersionCode(),
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit 86cf15d6e6f0e2ca3e5463eb1142995acce4d3b3
|
||||
Subproject commit b2041b0694ec7705df77ca78bfc9a302aa9fee51
|
||||
|
|
@ -7,6 +7,9 @@ Define_list:
|
|||
# 应用包名
|
||||
PackageName: "com.kedrgame.xuesong"
|
||||
|
||||
# 是否海外渠道
|
||||
IsOversea: true
|
||||
|
||||
# 多语言配置
|
||||
Language: "Lan_CN"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue