private function preparePhar($name)
    {
        /* start building the Phar */
        $phar = new \Phar($name, 0, $this->alias);
        $phar->setSignatureAlgorithm(\Phar::SHA1);

        $phar->startBuffering();
        return $phar;
    }