Meke autoupdate service work for me

This commit is contained in:
Fedor 2020-01-21 13:26:11 +03:00
parent 5b3d6f5b1e
commit 93f487041c
5 changed files with 8 additions and 19 deletions

View File

@ -24,7 +24,7 @@ pref("app.releaseNotesURL", "about:blank");
// Vendor home page
pref("app.vendorURL", "about:");
pref("app.update.url", "");
pref("app.update.url", "https://raw.githubusercontent.com/Feodor2/Updserv/master/%PRODUCT%/%BUILD_TARGET%/%LOCALE%/update.xml");
// URL user can browse to manually if for some reason all update installation
// attempts fail.

View File

@ -15,20 +15,8 @@ if test "$OS_ARCH" = "WINNT" -o \
MOZ_BUNDLED_FONTS=1
fi
# For Basilisk we want to use 52.9.YYYY.MM.DD as MOZ_APP_VERSION in release
# builds so add-on developers have something to target while maintaining
# Firefox compatiblity.
# To enable add "export CENTAURY_VERSION=1" to the .mozconfig file.
# However, this will cause a full rebuild at 00:00 UTC every day so
# don't export the variable if you are in development or don't care.
# When not exported we fall back the value in the version*.txt file.
if test -n "$CENTAURY_VERSION" ; then
MOZ_APP_VERSION=52.9.`date --utc '+%Y.%m.%d'`
MOZ_APP_VERSION_DISPLAY=`date --utc '+%Y.%m.%d'`
else
MOZ_APP_VERSION=`cat ${_topsrcdir}/$MOZ_BUILD_APP/config/version.txt`
MOZ_APP_VERSION_DISPLAY=`cat ${_topsrcdir}/$MOZ_BUILD_APP/config/version_display.txt`
fi
MOZ_APP_VERSION=52.9.`date --utc '+%Y.%m.%d'`
MOZ_APP_VERSION_DISPLAY=`date --utc '+%Y.%m.%d'`
MOZ_EXTENSIONS_DEFAULT=" gio"

View File

@ -13,4 +13,4 @@ pref("general.useragent.compatMode.firefox", true);
// Updates disabled
pref("app.update.enabled", false);
pref("app.update.url", "");
pref("app.update.url", "https://raw.githubusercontent.com/Feodor2/Updserv/master/%PRODUCT%/%BUILD_TARGET%/%LOCALE%/update.xml");

View File

@ -2582,8 +2582,7 @@ Checker.prototype = {
// Otherwise, construct the update URL from component parts.
if (!url) {
url = Services.prefs.getDefaultBranch(null).
getCharPref(PREF_APP_UPDATE_URL, "");
url = Services.prefs.getCharPref(PREF_APP_UPDATE_URL, "");
}
if (!url || url == "") {

View File

@ -55,7 +55,7 @@ dir-stage := $(call mkdir_deps,$(STAGE_DIR))
complete-patch:: $(dir-stage)
ifeq ($(OS_TARGET), WINNT)
test -f $(UNPACKAGE)
# test -f $(UNPACKAGE)
$(RM) -rf '$(PACKAGE_DIR)'
cd $(PACKAGE_BASE_DIR) && $(INNER_UNMAKE_PACKAGE)
endif
@ -66,6 +66,8 @@ endif
ifdef MOZ_SIGN_CMD
$(MOZ_SIGN_CMD) -f mar '$(DIST)/$(COMPLETE_MAR)'
endif
shasum --algorithm 512 '$(DIST)/$(COMPLETE_MAR)'
wc -c '$(DIST)/$(COMPLETE_MAR)'
partial-patch:: $(dir-stage)
MAR=$(MAR_BIN) \