tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

defines.nsi.in (5813B)


      1 #filter substitution
      2 #include @TOPOBJDIR@/buildid.h
      3 
      4 # This Source Code Form is subject to the terms of the Mozilla Public
      5 # License, v. 2.0. If a copy of the MPL was not distributed with this
      6 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
      7 
      8 # Defining FunnelcakeVersion will append the value of StubURLVersionAppend to
      9 # StubURLVersion, append the value of URLManualDownloadAppend to
     10 # URLManualDownload, and append the value of URLStubDownloadAppend to
     11 # URLStubDownload. The value of FunnelcakeVersion should not be defined when it
     12 # is not used and when it is defined its value should never be empty.
     13 # !define FunnelcakeVersion        "999"
     14 
     15 !ifdef FunnelcakeVersion
     16 !define URLManualDownloadAppend  "&f=${FunnelcakeVersion}"
     17 !define URLStubDownloadAppend    "-f${FunnelcakeVersion}"
     18 !define StubURLVersionAppend     "-${FunnelcakeVersion}"
     19 !else
     20 !define URLManualDownloadAppend  ""
     21 !define URLStubDownloadAppend    ""
     22 !define StubURLVersionAppend     ""
     23 !endif
     24 
     25 # These defines should match application.ini settings
     26 !define AppName               "Firefox"
     27 !define AppVersion            "@APP_VERSION@"
     28 !define GREVersion            @MOZILLA_VERSION@
     29 !define AB_CD                 "@AB_CD@"
     30 !define MOZ_BUILDID           "@MOZ_BUILDID@"
     31 
     32 !define FileMainEXE           "@MOZ_APP_NAME@.exe"
     33 !define PrivateBrowsingEXE    "private_browsing.exe"
     34 !define MainWindowClass       "MozillaWindowClass"
     35 !define DialogWindowClass     "MozillaDialogClass"
     36 !define DDEApplication        "Firefox"
     37 !define AppRegName            "Firefox"
     38 !define ToastAumidPrefix      "@MOZ_TOAST_APP_NAME@Toast-"
     39 
     40 !define BrandProductName      "Firefox"
     41 !ifndef DEV_EDITION
     42 !define BrandShortName        "@MOZ_APP_DISPLAYNAME@"
     43 !endif
     44 !ifndef BrandFullName
     45 !define BrandFullName         "${BrandFullNameInternal}"
     46 !endif
     47 
     48 ; The C++ defines in `nsNativeAppSupportWin.h` are 1-based.  The Windows
     49 ; resource IDs in the registry are 0-based.
     50 !define IDI_APPICON_ZERO_BASED       "0"
     51 !define IDI_DOCUMENT_ZERO_BASED      "1"
     52 !define IDI_PBICON_ZERO_BASED        "4"
     53 !define IDI_DOCUMENT_PDF_ZERO_BASED  "5"
     54 
     55 ; This one is the location of the Private Browsing icon in
     56 ; private_browsing.exe (as opposed to @MOZ_APP_NAME@.exe)
     57 !define IDI_PBICON_PB_EXE_ZERO_BASED "0"
     58 
     59 !define CERTIFICATE_NAME            "Mozilla Corporation"
     60 !define CERTIFICATE_ISSUER          "DigiCert Trusted G4 Code Signing RSA4096 SHA384 2021 CA1"
     61 ; Changing the name or issuer requires us to have both the old and the new
     62 ;  in the registry at the same time, temporarily.
     63 !define CERTIFICATE_NAME_PREVIOUS   "Mozilla Corporation"
     64 !define CERTIFICATE_ISSUER_PREVIOUS "DigiCert SHA2 Assured ID Code Signing CA"
     65 
     66 # LSP_CATEGORIES is the permitted LSP categories for the application. Each LSP
     67 # category value is ANDed together to set multiple permitted categories.
     68 # See http://msdn.microsoft.com/en-us/library/ms742253%28VS.85%29.aspx
     69 # The value below removes all LSP categories previously set.
     70 !define LSP_CATEGORIES "0x00000000"
     71 
     72 !if "@MOZ_UPDATE_CHANNEL@" == ""
     73 !define UpdateChannel "Unknown"
     74 !else
     75 !define UpdateChannel "@MOZ_UPDATE_CHANNEL@"
     76 !endif
     77 
     78 #ifdef MOZ_LAUNCHER_PROCESS
     79 !define MOZ_LAUNCHER_PROCESS
     80 !define MOZ_LAUNCHER_SUBKEY "Software\Mozilla\${AppName}\Launcher"
     81 #endif
     82 
     83 #ifdef RELEASE_OR_BETA
     84 !define RELEASE_OR_BETA
     85 #endif
     86 
     87 # Due to official and beta using the same branding this is needed to
     88 # differentiante between the url used by the stub for downloading.
     89 !if "@MOZ_UPDATE_CHANNEL@" == "beta"
     90 !define BETA_UPDATE_CHANNEL
     91 !endif
     92 
     93 !define BaseURLStubPing "http://download-stats.mozilla.org/stub"
     94 
     95 # ARCH is used when it is necessary to differentiate the x64 registry keys from
     96 # the x86 registry keys (e.g. the uninstall registry key).
     97 #ifdef HAVE_64BIT_BUILD
     98 !define HAVE_64BIT_BUILD
     99 #ifdef _ARM64_
    100 !define ARCH "AArch64"
    101 !define MinSupportedVer "Microsoft Windows 10 for ARM"
    102 #else
    103 !define ARCH "x64"
    104 !define MinSupportedVer "Microsoft Windows 10 x64"
    105 #endif
    106 #else
    107 !define MinSupportedVer "Microsoft Windows 10"
    108 !define ARCH "x86"
    109 #endif
    110 
    111 !define MinSupportedCPU "SSE2"
    112 
    113 #ifdef MOZ_MAINTENANCE_SERVICE
    114 !define MOZ_MAINTENANCE_SERVICE
    115 #endif
    116 
    117 #ifdef DESKTOP_LAUNCHER_ENABLED
    118 !define DESKTOP_LAUNCHER_ENABLED
    119 #endif
    120 
    121 #ifdef MOZ_BITS_DOWNLOAD
    122 !define MOZ_BITS_DOWNLOAD
    123 #endif
    124 
    125 #ifdef MOZ_DEFAULT_BROWSER_AGENT
    126 !define MOZ_DEFAULT_BROWSER_AGENT
    127 #endif
    128 
    129 !if "@AB_CD@" == "en-US"
    130 !define MOZ_OPTIONAL_EXTENSIONS
    131 !else if "@AB_CD@" == "zh-CN"
    132 !define MOZ_OPTIONAL_EXTENSIONS
    133 !endif
    134 
    135 # To add Private Browsing shortcut argument to setup.exe
    136 !define MOZ_PRIVATE_BROWSING
    137 
    138 # File details shared by both the installer and uninstaller
    139 VIProductVersion "1.0.0.0"
    140 VIAddVersionKey "ProductName"     "${BrandShortName}"
    141 VIAddVersionKey "CompanyName"     "${CompanyName}"
    142 VIAddVersionKey "LegalCopyright"  "${CompanyName}"
    143 VIAddVersionKey "FileVersion"     "${AppVersion}"
    144 VIAddVersionKey "ProductVersion"  "${AppVersion}"
    145 # Comments is not used but left below commented out for future reference
    146 # VIAddVersionKey "Comments"        "Comments"
    147 
    148 # It isn't possible to get the size of the installation prior to downloading
    149 # so the stub installer uses an estimate. The size is derived from the size of
    150 # the complete installer, the size of the extracted complete installer, and at
    151 # least 15 MB additional for working room.
    152 !define APPROXIMATE_REQUIRED_SPACE_MB "145"
    153 
    154 # Constants for parts of the telemetry submission URL
    155 !define TELEMETRY_BASE_URL https://incoming.telemetry.mozilla.org/submit
    156 !define TELEMETRY_NAMESPACE firefox-installer
    157 !define TELEMETRY_INSTALL_PING_VERSION 1
    158 !define TELEMETRY_INSTALL_PING_DOCTYPE install
    159 
    160 !define TELEMETRY_UNINSTALL_PING_NAMESPACE telemetry
    161 !define TELEMETRY_UNINSTALL_PING_DOCTYPE uninstall
    162 
    163 !define URLWinPre10NeedsEsr115 https://support.mozilla.org/kb/firefox-users-windows-7-8-and-81-moving-extended-support