Scripts to install the pyinstaller packaged versions of HPCFlow and MatFlow. There are four scripts:
install-hpcflow.sh
: Install HPCFlow on a system running a UNIX based OS using BASH or ZSHRC (Linux or MacOS).install-hpcflow.ps1
: Install HPCFlow on a system running Windows using Powershell.install-matflow.sh
: Install MatFlow on a system running a UNIX based OS using BASH or ZSHRC (Linux or MacOS).install-matflow.ps1
: Install MatFlow on a system running Windows using Powershell.Currently the UNIX verison of the installer is more fully featured than the Windows version.
Without any parameters or flags specified the script behaves, it's behaviour is as follows.
The latest stable release of the application in the "one folder" format is downloaded as a zip archive to a temporary folder.
The zip archive is extracted to a default installation folder. The installation folder depends on the OS.
A symbolic link (Linux/macOS) or an alias (Windows) is created. This link has the same name as the downloaded application.
The behaviour of the scripts can be configures using a series of parameters and flags. These are summarised below for the two types of script.
--folder=FOLDER
: Specify the folder that the application will be installed to. Should be the absolute path.--version=VERSION
: Specify the version of the application that will be installed. Must be an official release.--prerelease
: Specify that the latest pre-release version is installed.--purge
: Delete all installed versions of the application.--path
: Add the symlink folder to the path by adding a line to the end of ~/.bashrc
or ~/.zshrc
.--onefile
: Specify that the "one file" version should be installed.--univlink
: Specify that the symlink created has a universal rather than a versioned name.-Folder FOLDER
: Specify the folder that the application will be installed to. Should be the absolute path.-OneFile
: Specify that the "one file" version should be installed.-PreRelease
Specify that the latest pre-release version should be installed.There are two ways that the scripts can be used.
The easiest way to use the script is to run one of the commands below that copy the script from GitHub and execute it.
The current recommended commands for HPCFlow under Linux/macOS is:
(touch tmp.sh && curl -fsSL https://raw.githubusercontent.com/hpcflow/install-scripts/main/src/install-hpcflow.sh > tmp.sh && bash tmp.sh --prerelease --path) ; rm tmp.sh
and for MatFlow under Linux/macOS:
(touch tmp.sh && curl -fsSL https://raw.githubusercontent.com/hpcflow/install-scripts/main/src/install-matflow.sh > tmp.sh && bash tmp.sh --prerelease --path) ; rm tmp.sh
These commands download the code from the GitHub repo and place it in a file called tmp.sh
, run the script with the
recommended settings, and then delete the file.
The corresponding commands for HPCFlow under Windows is:
& $([scriptblock]::Create((New-Object Net.WebClient).DownloadString('https://raw.githubusercontent.com/hpcflow/install-scripts/main/src/install-hpcflow.ps1'))) -PreRelease
and for MatFlow under Windows:
& $([scriptblock]::Create((New-Object Net.WebClient).DownloadString('https://raw.githubusercontent.com/hpcflow/install-scripts/main/src/install-matflow.ps1'))) -PreRelease
These commands download the relevant code from the GitHub repo and execute it as a script block.
Clone the repo using:
git clone https://github.com/hpcflow/install-scripts.git
The scripts can then be executed locally in Linux/macOS using:
./install-hpcflow.sh
./install-matflow.sh
and in Windows (powershell) using:
.\install-hpcflow.ps1
.\install-matflow.ps1
This repository contains scripts to install the pyinstaller folder version of hpcflow on a local machine running macOS or linux (through a bash or zsh terminal), or windows (through a powershell terminal).
By default the latest version is downloaded and placed in a suitable user specific folder. A particular version and install folder can be specified too. The user is provided with a prompt to add the install folder to their path to enable them to run hpcflow.
To install in macOS or linux, enter the following command in a terminal window:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/hpcflow/install-folder-version/main/install-hpcflow.sh)"
To set options, use:
curl -sSL https://raw.githubusercontent.com/hpcflow/install-folder-version/main/install-hpcflow.sh | folder=folder-var version=version-var bash
For windows, enter the following command in a powershell window:
iex (iwr 'https://raw.githubusercontent.com/hpcflow/install-folder-version/main/install-hpcflow.ps1').Content
To set options, use:
& $([scriptblock]::Create((New-Object Net.WebClient).DownloadString('https://raw.githubusercontent.com/hpcflow/install-folder-version/main/install-hpcflow.ps1'))) -version version-value -folder folder-value