Skip to content

Commit

Permalink
Merge pull request #20 from SingingTree/patch-1
Browse files Browse the repository at this point in the history
Reorder steps for installing MozPhab on Windows
  • Loading branch information
Mitchell Hentges committed Feb 21, 2020
2 parents a218614 + bb41c5e commit edb7bd0
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions mozphab-windows.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,10 @@ the ``C:\mozilla-build\start-shell.bat``.
-> Apps -> App & features. It is available at
https://support.microsoft.com/en-ca/help/2977003/the-latest-supported-visual-c-downloads
(vc_redist.x64.exe).
#. Add ``moz-phab``, ``php``, and ``git`` to the ``$PATH`` variable.
If you use MSYS (including MozillaBuild) exclusively, you can add this to
``~/.bash_profile``::

export PATH=$PATH:/c/PHP/:/c/Program\ Files/Git/bin:/c/mozilla-build/Python3/Scripts

#. If you don't have Git already installed (note that it is not
currently packaged with MozillaBuild), you'll need to grab it from
https://git-scm.com/download/win and install it.
#. Run ``pip3 install MozPhab``.
#. Install PHP. The latest should work, e.g. PHP 7.2, VC15 x64 Non
Thread Safe, from https://windows.php.net/download/. Download the
Zip. Unzip it somewhere; the following instructions presume ``C:\PHP``.
Expand All @@ -31,13 +29,14 @@ the ``C:\mozilla-build\start-shell.bat``.
before ``;extension=php_curl.dll``. In PHP 7.2, this line is
just ``;extension=curl``. Then find the line ``;extension_dir =
"ext"`` and change it to ``extension_dir = "C:\PHP\ext"``.
#. Add ``moz-phab``, ``php``, and ``git`` to the ``$PATH`` variable.
If you use MSYS (including MozillaBuild) exclusively, you can add this to
``~/.bash_profile``::

export PATH=$PATH:/c/PHP/:/c/Program\ Files/Git/bin:/c/mozilla-build/Python3/Scripts
#. Run ``php -i`` to verify that it is working. You should see
"curl" listed in the Configuration section.
#. If you don't have Git already installed (note that it is not
currently packaged with MozillaBuild), you'll need to grab it from
https://git-scm.com/download/win and install it.

#. Run ``pip3 install MozPhab``.

#. Ensure running ``arc`` and ``moz-phab`` both work::

Expand Down

0 comments on commit edb7bd0

Please sign in to comment.