<?php define("ROOT", dirname(__DIR__) . DIRECTORY_SEPARATOR); define("BIN", ROOT . "Binaries" . DIRECTORY_SEPARATOR); define("PHAB", "http://phabricator.burningreality.de/"); define("OS_ARCH", isset($_SERVER["ProgramFiles(x86)"]) ? 64 : 32); require_once __DIR__ . '/inc.php'; require_once __DIR__ . '/Cli.php'; Cli::output("This will install the Apex Studios Tool Package"); Cli::output(""); Cli::output(""); Cli::output("The tool package will be installed into the following directory:"); Cli::output("\t" . ROOT); Cli::output(""); Cli::output("Yes, this it's being installed right into this directory."); Cli::output(""); printHr(); Cli::output("Do NOT move the folder around nor delete it after installing!"); printHr(); Cli::output("Got that?"); Cli::output(""); Cli::output("Accepting is your only option. So please press a key"); dontMove(); Cli::output(""); Cli::output(""); selectScreen();
function installCertificate() { Cli::output("I will now install the Arcanist certificate for you."); Cli::output("This will enable to identify you in Phabricator without you having to type in your username"); Cli::output("or password for Arcanist."); println(); Cli::output("You will be asked to open the Phabricator website, which will require you to login. Just keep"); Cli::output(PHAB . "conduit/token open already, you'll save yourself some work"); println(); Cli::output("Also, a new window will open, where you will be able to do all the work."); println(); Cli::output("Ready?"); dontMove(); arcInstall(); }