From 63f6f358569fc309a108c59374190df383d90323 Mon Sep 17 00:00:00 2001 From: Bas Ruigrok Date: Mon, 3 Feb 2025 17:55:24 +0100 Subject: [PATCH] Add CLion pixi toolchain script (#19119) * Add CLion pixi toolchain script * Add CLion pixi toolchain script for Windows --- contrib/clion/pixi/pixi-default.bash | 10 ++++++++++ contrib/clion/pixi/pixi-default.bat | 10 ++++++++++ 2 files changed, 20 insertions(+) create mode 100755 contrib/clion/pixi/pixi-default.bash create mode 100644 contrib/clion/pixi/pixi-default.bat diff --git a/contrib/clion/pixi/pixi-default.bash b/contrib/clion/pixi/pixi-default.bash new file mode 100755 index 0000000000..b14ef9cd8c --- /dev/null +++ b/contrib/clion/pixi/pixi-default.bash @@ -0,0 +1,10 @@ +#!/bin/bash + +# Change to the directory of this script (any subdirectory in the repository should work) +cd "$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &> /dev/null && pwd)" + +# If the line above does not work then try uncommenting the line below and insert the absolute path to your FreeCAD repository +# cd "absolute/path/to/FreeCAD" + +# Activate pixi default environment +eval "$(pixi shell-hook)" diff --git a/contrib/clion/pixi/pixi-default.bat b/contrib/clion/pixi/pixi-default.bat new file mode 100644 index 0000000000..559711a83f --- /dev/null +++ b/contrib/clion/pixi/pixi-default.bat @@ -0,0 +1,10 @@ +@echo off +REM Change to the directory of this script (any subdirectory in the repository should work) +cd /d "%~dp0" + +REM Activate pixi default environment +REM Write the output of pixi shell-hook to a temporary batch file and execute it +set TEMP_BATCH_FILE=%TEMP%\pixi_shell_hook_freecad.bat +pixi shell-hook > "%TEMP_BATCH_FILE%" +call "%TEMP_BATCH_FILE%" +del "%TEMP_BATCH_FILE%" \ No newline at end of file