mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-12-27 03:55:41 +08:00
release: Fix create app store version
This commit is contained in:
parent
3c00099ed4
commit
27bdef34c7
|
@ -359,7 +359,7 @@ func prepareAppStore(ctx context.Context) error {
|
||||||
if localization.ID == "" {
|
if localization.ID == "" {
|
||||||
log.Info(string(platform), " ", tag, " no en-US localization found")
|
log.Info(string(platform), " ", tag, " no en-US localization found")
|
||||||
}
|
}
|
||||||
if localization.Attributes.WhatsNew == nil && *localization.Attributes.WhatsNew == "" {
|
if localization.Attributes == nil || localization.Attributes.WhatsNew == nil || *localization.Attributes.WhatsNew == "" {
|
||||||
log.Info(string(platform), " ", tag, " update localization")
|
log.Info(string(platform), " ", tag, " update localization")
|
||||||
_, _, err = client.Apps.UpdateAppStoreVersionLocalization(ctx, localization.ID, &asc.AppStoreVersionLocalizationUpdateRequestAttributes{
|
_, _, err = client.Apps.UpdateAppStoreVersionLocalization(ctx, localization.ID, &asc.AppStoreVersionLocalizationUpdateRequestAttributes{
|
||||||
PromotionalText: common.Ptr("Yet another distribution for sing-box, the universal proxy platform."),
|
PromotionalText: common.Ptr("Yet another distribution for sing-box, the universal proxy platform."),
|
||||||
|
@ -378,16 +378,14 @@ func prepareAppStore(ctx context.Context) error {
|
||||||
case http.StatusInternalServerError:
|
case http.StatusInternalServerError:
|
||||||
continue
|
continue
|
||||||
default:
|
default:
|
||||||
response.Write(os.Stderr)
|
return err
|
||||||
log.Info(string(platform), " ", tag, " unexpected response: ", response.Status)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
switch response.StatusCode {
|
switch response.StatusCode {
|
||||||
case http.StatusCreated:
|
case http.StatusCreated:
|
||||||
break fixSubmit
|
break fixSubmit
|
||||||
default:
|
default:
|
||||||
response.Write(os.Stderr)
|
return err
|
||||||
log.Info(string(platform), " ", tag, " unexpected response: ", response.Status)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user