-
Notifications
You must be signed in to change notification settings - Fork 44
Menus in Conda Recipes
jaimergp edited this page Aug 21, 2023
·
15 revisions
NOTE:
This wiki is not maintained anymore and its content is out of date. Please check the latest documentation at https://conda.github.io/menuinst/
Use the build scripts in the conda recipe to copy the json menu files into the %PREFIX%/Menu
folder when building conda packages using conda build
.
Example bld.bat
:
if not exist "%PREFIX%\Menu" mkdir "%PREFIX%\Menu"
copy "%RECIPE_DIR%\menu-windows.json" "%PREFIX%\Menu"
copy "%RECIPE_DIR%\app.ico" "%PREFIX%\Menu"
"%PYTHON%" setup.py install
if errorlevel 1 exit 1
Example build.sh
:
#!/bin/bash
mkdir -p "$PREFIX/Menu"
if [ $OSX_ARCH ]
then
cp "$RECIPE_DIR/menu-osx.json" "$PREFIX/Menu"
cp "$RECIPE_DIR/app.icns" "$PREFIX/Menu"
else
cp "$RECIPE_DIR/menu-linux.json" "$PREFIX/Menu"
cp "$RECIPE_DIR/app.svg" "$PREFIX/Menu"
fi
"$PYTHON" setup.py install || exit 1
TODO: Test that build.sh
actually works!