зеркало из https://github.com/mozilla/pjs.git
bug 453840: fix up pretty name support for win32. r=ted.mielczarek, patch=me
This commit is contained in:
Родитель
2c7403d02a
Коммит
48395ca9fe
|
@ -68,8 +68,8 @@ BRANDING_FILES = \
|
|||
|
||||
DEFINES += \
|
||||
-DAB_CD=$(AB_CD) \
|
||||
-DPKG_BASENAME=$(PKG_BASENAME) \
|
||||
-DPKG_INST_BASENAME=$(PKG_INST_BASENAME) \
|
||||
-DPKG_BASENAME="$(PKG_BASENAME)" \
|
||||
-DPKG_INST_BASENAME="$(PKG_INST_BASENAME)" \
|
||||
-DMOZ_APP_VERSION=$(MOZ_APP_VERSION) \
|
||||
-DMOZ_APP_NAME=$(MOZ_APP_NAME) \
|
||||
-DMOZ_APP_DISPLAYNAME=${MOZ_APP_DISPLAYNAME} \
|
||||
|
|
|
@ -110,17 +110,26 @@ MOZ_PKG_APPNAME = $(MOZ_APP_DISPLAYNAME)
|
|||
endif
|
||||
MOZ_PKG_APPNAME_LC = $(shell echo $(MOZ_PKG_APPNAME) | tr '[A-Z]' '[a-z]')
|
||||
|
||||
|
||||
ifndef MOZ_PKG_LONGVERSION
|
||||
MOZ_PKG_LONGVERSION = $(MOZ_PKG_VERSION)
|
||||
MOZ_PKG_LONGVERSION = $(shell echo $(MOZ_PKG_VERSION) |\
|
||||
sed -e 's/a\([0-9][0-9]*\)$/ Alpha \1/' |\
|
||||
sed -e 's/b\([0-9][0-9]*\)$/ Beta \1/' |\
|
||||
sed -e 's/rc\([0-9][0-9]*\)$/ RC \1/')
|
||||
endif
|
||||
|
||||
ifeq (,$(filter-out Darwin OS2 WINNT, $(OS_ARCH)))
|
||||
ifeq (,$(filter-out Darwin OS2, $(OS_ARCH))) # Mac and OS2
|
||||
PKG_BASENAME = $(MOZ_PKG_APPNAME) $(MOZ_PKG_LONGVERSION)
|
||||
PKG_INST_BASENAME = $(MOZ_PKG_APPNAME) Setup $(MOZ_PKG_LONGVERSION)
|
||||
else
|
||||
ifeq (,$(filter-out WINNT, $(OS_ARCH))) # Windows
|
||||
PKG_BASENAME = $(MOZ_PKG_APPNAME_LC)-$(MOZ_PKG_VERSION)
|
||||
PKG_INST_BASENAME = $(MOZ_PKG_APPNAME) Setup $(MOZ_PKG_LONGVERSION)
|
||||
else # unix (actually, not Windows, Mac or OS/2)
|
||||
PKG_BASENAME = $(MOZ_PKG_APPNAME_LC)-$(MOZ_PKG_VERSION)
|
||||
PKG_INST_BASENAME = $(MOZ_PKG_APPNAME_LC)-setup-$(MOZ_PKG_VERSION)
|
||||
endif
|
||||
endif
|
||||
PKG_PATH = $(MOZ_PKG_PLATFORM)/$(AB_CD)/
|
||||
PKG_INST_PATH = $(PKG_PATH)
|
||||
PKG_UPDATE_BASENAME = $(MOZ_PKG_APPNAME_LC)-$(MOZ_PKG_VERSION)
|
||||
|
|
|
@ -72,8 +72,8 @@ installer::
|
|||
cd $(DEPTH)/installer-stage && $(CYGWIN_WRAPPER) 7z a -r -t7z $(ABS_CONFIG_DIR)/app.7z -mx -m0=BCJ2 -m1=LZMA:d24 -m2=LZMA:d19 -m3=LZMA:d19 -mb0:1 -mb0s1:2 -mb0s2:3
|
||||
$(MAKE) $(CONFIG_DIR)/7zSD.sfx
|
||||
$(NSINSTALL) -D $(DIST)/$(PKG_INST_PATH)
|
||||
cat $(CONFIG_DIR)/7zSD.sfx $(CONFIG_DIR)/app.tag $(CONFIG_DIR)/app.7z > $(DIST)/$(PKG_INST_PATH)$(PKG_INST_BASENAME).exe
|
||||
chmod 0755 $(DIST)/$(PKG_INST_PATH)$(PKG_INST_BASENAME).exe
|
||||
cat $(CONFIG_DIR)/7zSD.sfx $(CONFIG_DIR)/app.tag $(CONFIG_DIR)/app.7z > "$(DIST)/$(PKG_INST_PATH)$(PKG_INST_BASENAME).exe"
|
||||
chmod 0755 "$(DIST)/$(PKG_INST_PATH)$(PKG_INST_BASENAME).exe"
|
||||
|
||||
# For building the uninstaller during the application build so it can be
|
||||
# included for mar file generation.
|
||||
|
|
Загрузка…
Ссылка в новой задаче