Add test appcast deploy (#415)

* Add test appcast deploy

* Small fix
This commit is contained in:
Semyon Bezrukov
2022-02-10 18:06:24 +03:00
committed by GitHub
parent a10932d055
commit 5acfa19b8a
2 changed files with 17 additions and 4 deletions

View File

@ -25,6 +25,7 @@ VCREDIST += $(VCREDIST15)
EXE_UPDATE += $(BUILD_DIR)/update/editors_update_$(WIN_ARCH)$(WIN_ARCH_SUFFIX:%=_%).exe
APPCAST := $(BUILD_DIR)/update/appcast.xml
APPCAST_PROD := $(BUILD_DIR)/update/appcast-prod.xml
CHANGES_EN := $(BUILD_DIR)/update/changes.html
CHANGES_RU := $(BUILD_DIR)/update/changes_ru.html
CHANGES_DIR := $(BRANDING_DIR)/$(BUILD_DIR)/update/changes/$(PRODUCT_VERSION)
@ -37,7 +38,7 @@ PACKAGES += $(DESKTOP_EDITORS_ZIP)
WINSPARKLE += $(EXE_UPDATE)
ifndef _WIN_XP
ifeq ($(WIN_ARCH), x64)
WINSPARKLE += $(APPCAST)
WINSPARKLE += $(APPCAST) $(APPCAST_PROD)
ifeq ($(COMPANY_NAME), ONLYOFFICE)
WINSPARKLE += $(CHANGES_EN)
endif
@ -128,9 +129,14 @@ $(BUILD_DIR)/%.zip:
AWK_PARAMS += -v Version="$(PRODUCT_VERSION)"
AWK_PARAMS += -v Build="$(BUILD_NUMBER)"
AWK_PARAMS += -v Branch="$(RELEASE_BRANCH)"
AWK_PARAMS += -v Timestamp="$(shell date +%s)"
AWK_PARAMS += -i "$(BRANDING_DIR)/win-linux/package/windows/update/branding.awk"
%/appcast-prod.xml: %/appcast.xml.awk
LANG=en_US.UTF-8 \
awk $(AWK_PARAMS) -v Prod=1 -f $< > $@
%/appcast.xml: %/appcast.xml.awk
LANG=en_US.UTF-8 \
awk $(AWK_PARAMS) -f $< > $@

View File

@ -3,9 +3,16 @@ BEGIN {
# Appcast Vars
AppcastProductTitle = "ONLYOFFICE Desktop Editors";
AppcastBaseUrl = "https://download.onlyoffice.com/install/desktop/editors/windows/onlyoffice";
AppcastChangesPath = AppcastBaseUrl "/changes";
AppcastUpdatesPath = AppcastBaseUrl "/updates";
if (Prod) {
AppcastBaseUrl = "https://download.onlyoffice.com/install/desktop/editors/windows/onlyoffice";
AppcastChangesPath = AppcastBaseUrl "/changes";
AppcastUpdatesPath = AppcastBaseUrl "/updates";
}
else {
AppcastBaseUrl = "https://s3.eu-west-1.amazonaws.com/repo-doc-onlyoffice-com/onlyoffice/" Branch "/windows/" Version "-" Build "/desktop";
AppcastChangesPath = AppcastBaseUrl;
AppcastUpdatesPath = AppcastBaseUrl;
}
# Changes Vars
ChangesProductTitle = "ONLYOFFICE Desktop Editors";