Grammalecte  Check-in [5255a0e102]

Overview
Comment:[build][fr] add option for launching standard Firefox, because dev edition is buggy
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | fr | build
Files: files | file ages | folders
SHA3-256: 5255a0e1023086fb91247fbf9578ba385b4e589e11dd5b19c778d2a03152bbd0
User & Date: olr on 2020-07-31 08:10:36
Other Links: manifest | tags
Context
2020-07-31
10:03
[fx] iframe edition now available check-in: 45e4affdff user: olr tags: fx, major_change, trunk
08:10
[build][fr] add option for launching standard Firefox, because dev edition is buggy check-in: 5255a0e102 user: olr tags: build, fr, trunk
07:15
[fr] ajustements check-in: caf6a1a8b2 user: olr tags: fr, trunk
Changes

Modified gc_lang/fr/config.ini from [df6d0eaaa3] to [033d3cd6d7].

    42     42   oxt_version = 7.2
    43     43   oxt_identifier = French.linguistic.resources.from.Dicollecte.by.OlivierR
    44     44   oxt_update_info_URL = https://grammalecte.net/grammalecte/oxt/grammalecte.update.xml
    45     45   
    46     46   # Firefox
    47     47   fx_identifier = French-GC@grammalecte.net
    48     48   fx_name = Grammalecte [fr]
    49         -
           49  +win_fx_path = C:\Program Files\Mozilla Firefox\firefox.exe
    50     50   win_fx_dev_path = C:\Program Files\Firefox Developer Edition\firefox.exe
    51     51   win_fx_nightly_path = C:\Program Files\Firefox Nightly\firefox.exe
           52  +linux_fx_path = /usr/bin/firefox
    52     53   linux_fx_dev_path = /usr/bin/firefox
    53     54   linux_fx_nightly_path = /usr/bin/firefox
    54     55   
    55     56   # Thunderbird
    56     57   tb_identifier = French-GC-TB@grammalecte.net
    57     58   tb_name = Grammalecte [fr]
    58     59   win_tb_path = C:\Program Files\Mozilla Thunderbird\thunderbird.exe

Modified make.py from [2561b9d2fe] to [e02d3d08f6].

   369    369       xParser.add_argument("-d", "--dict", help="generate FSA dictionary", action="store_true")
   370    370       xParser.add_argument("-t", "--tests", help="run unit tests", action="store_true")
   371    371       xParser.add_argument("-p", "--perf", help="run performance tests", action="store_true")
   372    372       xParser.add_argument("-pm", "--perf_memo", help="run performance tests and store results in perf_memo.txt", action="store_true")
   373    373       xParser.add_argument("-js", "--javascript", help="JavaScript build for Firefox", action="store_true")
   374    374       xParser.add_argument("-acd", "--add_community_dictionary", help="add community dictionary to the build", action="store_true")
   375    375       xParser.add_argument("-apd", "--add_personal_dictionary", help="add personal dictionary to the build", action="store_true")
   376         -    xParser.add_argument("-fx", "--firefox", help="Launch Firefox Developper for WebExtension testing", action="store_true")
          376  +    xParser.add_argument("-fx", "--firefox", help="Launch Firefox for WebExtension testing", action="store_true")
          377  +    xParser.add_argument("-fxd", "--firefox_dev", help="Launch Firefox Developper for WebExtension testing", action="store_true")
   377    378       xParser.add_argument("-fxn", "--firefox_nightly", help="Launch Firefox Nightly for WebExtension testing", action="store_true")
   378    379       xParser.add_argument("-l", "--lint_web_ext", help="web-ext lint on the WebExtension", action="store_true")
   379    380       xParser.add_argument("-tb", "--thunderbird", help="Launch Thunderbird", action="store_true")
   380    381       xParser.add_argument("-tbb", "--thunderbird_beta", help="Launch Thunderbird Beta", action="store_true")
   381    382       xParser.add_argument("-i", "--install", help="install the extension in Writer (path of unopkg must be set in config.ini)", action="store_true")
   382    383       xArgs = xParser.parse_args()
   383    384   
................................................................................
   451    452   
   452    453               # JavaScript linter
   453    454               if xArgs.lint_web_ext:
   454    455                   with helpers.CD("_build/webext/"+sLang):
   455    456                       os.system(r'web-ext lint -o text')
   456    457   
   457    458               # Firefox
   458         -            if xArgs.firefox:           # Firefox Developer edition
          459  +            if xArgs.firefox:           # Firefox
          460  +                with helpers.CD("_build/webext/"+sLang):
          461  +                    spfFirefox = dVars['win_fx_path']  if platform.system() == "Windows"  else dVars['linux_fx_path']
          462  +                    os.system(r'web-ext run --firefox="' + spfFirefox + '" --browser-console')
          463  +            if xArgs.firefox_dev:       # Firefox Developer edition
   459    464                   with helpers.CD("_build/webext/"+sLang):
   460    465                       spfFirefox = dVars['win_fx_dev_path']  if platform.system() == "Windows"  else dVars['linux_fx_dev_path']
   461    466                       os.system(r'web-ext run --firefox="' + spfFirefox + '" --browser-console')
   462    467               if xArgs.firefox_nightly:   # Firefox Nightly edition
   463    468                   with helpers.CD("_build/webext/"+sLang):
   464    469                       spfFirefox = dVars['win_fx_nightly_path']  if platform.system() == "Windows"  else dVars['linux_fx_nightly_path']
   465    470                       os.system(r'web-ext run --firefox="' + spfFirefox + '" --browser-console')