Arcanist make file to be used with Inno Setup Compiler to roll out your own Arcanist installer .exe
To configure the text editor that Arcanist will use with commands like arc diff, please follow the instructions at https://secure.phabricator.com/book/phabricator/article/arcanist_windows/#configuring-an-editor
- Inno Setup Compiler
- This repository is essentially a makefile for arcanist and its dependencies (PHP & libphutil)
- Inno will be used to load the makefile and run the installation
- Download the 'QuickStart Pack' from http://www.jrsoftware.org/isdl.php
- Git
- Git CLI will be used to clone this repo and pull down the submodules (libphutil and arcanist) prior to installation
- Use git to clone this repository into a folder of your choice.
$ git clone https://github.com/paladox/Arcanist-installer-for-windows.git
- Inside of the repository folder, run the following git commands
$ git submodule
$ git submodule update --init
- Run Inno Setup Compiler (see Dependencies)
- Use Inno to load the
Arcanist.iss
file inside of the repo folder - Run the script to start the installation process
- You can also compile the
setup.exe
file, which will save to the/out
folder of the repo
- You can also compile the
- Install by navigating the installation wizard
- Be sure to install PHP if you don't have it already
- Reboot (for good measure)
- From a terminal type
arc help
to see if arc command is recognized and the Arcanist help menu is displayed- also
php -v
to make sure PHP is working
- also
- In your windows environment variables, make sure your PATH system variable has paths to arcanist and php
- make sure those paths are accurate
- make sure you installed the submodules from the git repo before installation via Inno
If you are using Cygwin on windows without having installed php for cygwin, the arc command will not work correctly. It tries to call php on a filepath which is cygwin-specific i.e. /c/path/to/Arcanist
instead of C:/path/to/Arcanist...
Therefore, you will have to add an alias to your cygwin .bashrc or .bash_aliases:
alias arc='php C:/path/to/Arcanist/arcanist/scripts/arcanist.php'
Add check for php to make sure php is installed otherwise download it and either get the user to unzip it or unzip it with the installer and add to environmental path variable.