Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions .github/workflows/build_installer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,12 @@ jobs:
conda install -c nsis nsis=3.* accesscontrol
pip install matlabengine==9.14.*
python packaging/build_exe.py
makensis packaging/windows/build_installer.nsi
if ($env:GITHUB_REF_NAME -eq "main") {
makensis /DNIGHTLY packaging/windows/build_installer.nsi
}
else {
makensis packaging/windows/build_installer.nsi
}
- name: Upload installer
uses: actions/upload-artifact@v4
with:
Expand Down Expand Up @@ -90,7 +95,7 @@ jobs:
if [ ${{ matrix.platform }} == "macos-14" ]; then
ARCH="arm64"
export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:/Users/runner/hostedtoolcache/MATLAB/2023.2.999/arm64/MATLAB.app/bin/maca64
python -m pip install --no-build-isolation /Users/runner/hostedtoolcache/MATLAB/2023.2.999/arm64/MATLAB.app/extern/engines/python
python -m pip install --no-build-isolation /Users/runner/hostedtoolcache/MATLAB/2023.2.999/arm64/MATLAB.app/extern/engines/python
else
ARCH="x64"
export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:/Users/runner/hostedtoolcache/MATLAB/2023.2.999/x64/MATLAB.app/bin/maci64
Expand All @@ -105,7 +110,7 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: macOS installer-${{ strategy.job-index }}
path: packaging/macos/rascal2-*.pkg
path: packaging/macos/RasCAL-2*.pkg
deploy-nightly:
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
Expand Down
4 changes: 2 additions & 2 deletions packaging/linux/build_installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,9 @@ chmod 777 "$STAGE_DIR/rascal/packaging/linux/install.sh"
echo ""
echo "Creating self-extracting archive"
echo ""
EXECUTABLE="RasCAL-2-installer.run"
EXECUTABLE="RasCAL-2-linux.run"
if [ -n "$TAG" ]; then
EXECUTABLE="RasCAL-2-${TAG:1}-installer.run"
EXECUTABLE="RasCAL-2-${TAG:1}-linux.run"
fi

makeself --tar-format "posix" --tar-extra "--exclude=__pycache__ --exclude=.git --exclude=.github --exclude=rascal/doc --exclude=rascal/tests" "$STAGE_DIR" "$EXECUTABLE" "RasCAL-2 installer" ./rascal/packaging/linux/install.sh
Expand Down
10 changes: 8 additions & 2 deletions packaging/macos/make.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,19 @@
RASCAL_PATH="../bundle/rascal.app"
VER_NAME=$1
ARCH_NAME=$2
VER=$VER_NAME
VER="main"

if [[ ${VER_NAME:0:1} == 'v' ]]; then
VER=${VER:1}
fi

if [[ ${VER} == 'main' ]]; then
NAME="RasCAL-2-macos-${ARCH_NAME}.pkg"
else
NAME="RasCAL-2-${VER}-macos-${ARCH_NAME}.pkg"
fi

# Build Pkg
sed -e "s/@VERSION_NAME@/${VER_NAME}/g" -e "s/@VERSION@/${VER}/g" distribution.xml.in > distribution.xml
pkgbuild --root ${RASCAL_PATH} --identifier com.rascal2.rascal.pkg --version ${VER} --install-location "/Applications/rascal.app" rascal.pkg
productbuild --distribution distribution.xml --resources . "rascal2-${VER}-${ARCH_NAME}.pkg"
productbuild --distribution distribution.xml --resources . ${NAME}
9 changes: 7 additions & 2 deletions packaging/windows/build_installer.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,16 @@
Unicode true

;Define name of the product
!define PRODUCT "RasCAL 2"
!define PRODUCT "RasCAL-2"

;Name and file
Name "${PRODUCT}"
OutFile "${PRODUCT}-${VERSION}-setup.exe"

!ifdef NIGHTLY
OutFile "${PRODUCT}-windows.exe"
!else
OutFile "${PRODUCT}-${VERSION}-windows.exe"
!endif

;Default installation folder
InstallDir "$PROGRAMFILES64\${PRODUCT}"
Expand Down
4 changes: 3 additions & 1 deletion rascal2/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,9 @@ def get_matlab_path(self):
)
except (FileNotFoundError, MatlabHelper.ConfigError) as ex:
if isinstance(ex, FileNotFoundError):
ex.add_note("Matlab engine could not be found, ensure it is installed properly.")
ex = MatlabHelper.ConfigError(
"Matlab engine could not be found, ensure it is installed properly."
).with_traceback(ex.__traceback__)
self.engine_output[:] = []
self.engine_output.append(ex)
LOGGER.error(f"Attempt to read MATLAB _arch file failed {MATLAB_ARCH_FILE}.\n {ex}.")
Expand Down
Loading