Skip to content

lingtalfi/universe-naive-importer

Repository files navigation

UniverseNaiveImporter

2017-03-11 --> 2021-03-16

Warning: although the development team still uses this in the background, you generally should consider using the planet installer plugin instead to install your planets, and consider the uni tool deprecated in general.

A naive importer for the universe framework.

This is a console tool to manage the dependencies of the universe framework.

This is a wrapper for the Uni2 planet. Please refer to the Uni2 planet for more documentation.

Summary

Installation

Requirements

Before you start, make sure your machine meets the following requirements:

  • php 7 or higher is available on your machine
  • the git command is available on your machine

Installing uni on Mac or Linux

Open a terminal and copy paste that line:

temp_file=$(mktemp); curl -fsSL https://raw.githubusercontent.com/lingtalfi/universe-naive-importer/master/installer.php > $temp_file; sudo php -f $temp_file;

This was tested successfully on macOS Sierra 10.12.6, and ubuntu xenial 16.04.

If the one-liner doesn't work for your machine, please use the manual install described in the next section.

This one-liner should take less than 10 seconds, if it takes more than that, just abort and retry (it happens sometime, I believe it's a network problem...).

If it's stuck, the last line you'll see is:

  • "Downloading uni-tool from github.com..."

Installing uni on Windows or manually

Unfortunately, there is no one-liner install for Windows users.

So the following procedure should be performed manually.

Note: you just need to do this once, after which you can use the upgrade command to upgrade.

  • Define a directory to contain the uni-tool directory. I will choose /usr/local/etc/uni
  • Define a path to contain the uni-tool program. I will choose /usr/local/bin/uni
  • Cd to a system temporary directory. Mine will be /tmp
  • Download this archive: https://github.com/lingtalfi/universe-naive-importer/archive/master.zip
  • Extract the archive, you should have a universe-naive-importer-master directory
  • Move the /tmp/universe-naive-importer-master/uni directory to your chosen uni-tool directory (/usr/local/etc/uni in my case)
  • Optionally chmod the /usr/local/etc/uni so that user has the necessary permissions on it
  • Remove any symlink /usr/local/bin/uni which might exist from previous installation
  • Create a symlink, the link being the chosen path to the uni-tool program (/usr/local/bin/uni in my case), and the target being /usr/local/etc/uni/uni.php
  • Type uni help to check that everything worked

Now you can check the Uni2 documentation for more information.

History Log

 

About

A naive importer for the universe framework

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages