Add CLion pixi toolchain script (#19119)
* Add CLion pixi toolchain script * Add CLion pixi toolchain script for Windows
This commit is contained in:
10
contrib/clion/pixi/pixi-default.bash
Executable file
10
contrib/clion/pixi/pixi-default.bash
Executable 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)"
|
||||
10
contrib/clion/pixi/pixi-default.bat
Normal file
10
contrib/clion/pixi/pixi-default.bat
Normal 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%"
|
||||
Reference in New Issue
Block a user