Add CLion pixi toolchain script (#19119)

* Add CLion pixi toolchain script

* Add CLion pixi toolchain script for Windows
This commit is contained in:
Bas Ruigrok
2025-02-03 17:55:24 +01:00
committed by GitHub
parent 5e9dd297fe
commit 63f6f35856
2 changed files with 20 additions and 0 deletions

View File

@@ -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)"

View File

@@ -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%"