#!/bin/bash set -x -e -v # We set the INSTALL_DIR to match the directory that it will run in exactly, # otherwise we get an NSIS error of the form: # checking for NSIS version... # DEBUG: Executing: `/home/worker/workspace/build/src/mingw32/ # DEBUG: The command returned non-zero exit status 1. # DEBUG: Its error output was: # DEBUG: | Error: opening stub "/home/worker/workspace/mingw32/ # DEBUG: | Error initalizing CEXEBuild: error setting # ERROR: Failed to get nsis version. WORKSPACE=$HOME/workspace HOME_DIR=$WORKSPACE/build INSTALL_DIR=$WORKSPACE/build/src/mingw32 TOOLTOOL_DIR=$WORKSPACE/build/src UPLOAD_DIR=$HOME/artifacts mkdir -p $INSTALL_DIR root_dir=$HOME_DIR data_dir=$HOME_DIR/src/build/unix/build-gcc . $data_dir/download-tools.sh cd $TOOLTOOL_DIR . taskcluster/scripts/misc/tooltool-download.sh # After tooltool runs, we move the stuff we just downloaded. # As explained above, we have to build nsis to the directory it # will eventually be run from, which is the same place we just # installed our compiler. But at the end of the script we want # to package up what we just built. If we don't move the compiler, # we will package up the compiler we downloaded along with the # stuff we just built. mv mingw32 mingw32-gcc export PATH="$TOOLTOOL_DIR/mingw32-gcc/bin:$PATH" cd $WORKSPACE $GPG --import <