mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-30 12:27:29 +09:00
Issue #1454 - Add MOZ_PKG_SPECIAL to UpdateUtils
This commit is contained in:
parent
44da82db2a
commit
11efe7888c
2 changed files with 5 additions and 0 deletions
|
|
@ -3,6 +3,9 @@
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
#filter substitution
|
#filter substitution
|
||||||
|
#if !MOZ_PKG_SPECIAL
|
||||||
|
#define MOZ_PKG_SPECIAL false
|
||||||
|
#endif
|
||||||
|
|
||||||
this.EXPORTED_SYMBOLS = ["UpdateUtils"];
|
this.EXPORTED_SYMBOLS = ["UpdateUtils"];
|
||||||
|
|
||||||
|
|
@ -70,6 +73,7 @@ this.UpdateUtils = {
|
||||||
url = url.replace(/%VERSION%/g, Services.appinfo.version);
|
url = url.replace(/%VERSION%/g, Services.appinfo.version);
|
||||||
url = url.replace(/%BUILD_ID%/g, Services.appinfo.appBuildID);
|
url = url.replace(/%BUILD_ID%/g, Services.appinfo.appBuildID);
|
||||||
url = url.replace(/%BUILD_TARGET%/g, Services.appinfo.OS + "_" + this.ABI);
|
url = url.replace(/%BUILD_TARGET%/g, Services.appinfo.OS + "_" + this.ABI);
|
||||||
|
url = url.replace(/%BUILD_SPECIAL%/g, "@MOZ_PKG_SPECIAL@");
|
||||||
url = url.replace(/%OS_VERSION%/g, this.OSVersion);
|
url = url.replace(/%OS_VERSION%/g, this.OSVersion);
|
||||||
url = url.replace(/%WIDGET_TOOLKIT%/g, "@MOZ_WIDGET_TOOLKIT@");
|
url = url.replace(/%WIDGET_TOOLKIT%/g, "@MOZ_WIDGET_TOOLKIT@");
|
||||||
url = url.replace(/%CHANNEL%/g, this.UpdateChannel);
|
url = url.replace(/%CHANNEL%/g, this.UpdateChannel);
|
||||||
|
|
|
||||||
|
|
@ -139,6 +139,7 @@ for var in ('ANDROID_PACKAGE_NAME',
|
||||||
'MOZ_APP_VERSION_DISPLAY',
|
'MOZ_APP_VERSION_DISPLAY',
|
||||||
'MOZ_MACBUNDLE_NAME',
|
'MOZ_MACBUNDLE_NAME',
|
||||||
'MOZ_WIDGET_TOOLKIT',
|
'MOZ_WIDGET_TOOLKIT',
|
||||||
|
'MOZ_PKG_SPECIAL',
|
||||||
'DLL_PREFIX',
|
'DLL_PREFIX',
|
||||||
'DLL_SUFFIX',
|
'DLL_SUFFIX',
|
||||||
'DEBUG_JS_MODULES'):
|
'DEBUG_JS_MODULES'):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue