-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
moved the menuinst to the conda-build process
- Loading branch information
1 parent
bc9b5c5
commit b0032d2
Showing
14 changed files
with
84 additions
and
135 deletions.
There are no files selected for viewing
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
set MENU_DIR=%PREFIX%\Menu | ||
if not exist %MENU_DIR% mkdir %MENU_DIR% | ||
if errorlevel 1 exit 1 | ||
copy %SRC_DIR%\Menu\msui_shortcut.json %MENU_DIR%\msui_shortcut.json | ||
if errorlevel 1 exit 1 | ||
copy %SRC_DIR%\Menu\mss.ico %MENU_DIR%\mss.ico | ||
if errorlevel 1 exit 1 | ||
mkdir "%PREFIX%\Menu" | ||
copy /Y "%RECIPE_DIR%\menu.json" "%PREFIX%\Menu\%PKG_NAME%_menu.json" | ||
copy /Y "%RECIPE_DIR%\msui.ico" "%PREFIX%\Menu\msui.ico" | ||
|
||
; conda-build issue 5311, currently we can't build for windows with pip install | ||
%PYTHON% setup.py install --single-version-externally-managed --record record.txt | ||
if errorlevel 1 exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/sh | ||
|
||
mkdir -p "${PREFIX}/Menu" | ||
cp "${RECIPE_DIR}/menu.json" "${PREFIX}/Menu/${PKG_NAME}_menu.json" | ||
cp "${RECIPE_DIR}/msui.png" "${PREFIX}/Menu/msui.png" | ||
|
||
"${PYTHON}" -m pip install . --no-deps -vv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft-07/schema", | ||
"$id": "https://schemas.conda.io/menuinst-1.schema.json", | ||
"menu_name": "Mission Support System", | ||
"menu_items": [ | ||
{ | ||
"name": "MSUI ({{ ENV_NAME }})", | ||
"description": "Mission Support System MSUI", | ||
"activate": true, | ||
"icon": "{{ MENU_DIR }}/msui.{{ ICON_EXT }}", | ||
"command": [ | ||
"{{ PYTHON }}", | ||
"{{ PREFIX }}/bin/msui" | ||
], | ||
"platforms": { | ||
"win": { | ||
"command": [ | ||
"{{ PYTHON }}", | ||
"{{ SCRIPTS_DIR }}/msui-script.py" | ||
], | ||
"file_extensions": [".menuinst"] | ||
}, | ||
"linux": { | ||
"Categories": ["Internet", "Science"], | ||
"Keywords": ["documentation", "information"], | ||
"StartupNotify": true, | ||
"MimeType": ["application/x-menuinst"], | ||
"glob_patterns": { | ||
"application/x-menuinst": "*.menuinst" | ||
} | ||
}, | ||
"osx": { | ||
"CFBundleDocumentTypes": [ | ||
{ | ||
"CFBundleTypeName": "org.conda.menuinst.msui", | ||
"CFBundleTypeRole": "Viewer", | ||
"LSItemContentTypes": ["org.conda.menuinst.main-file-uti"], | ||
"LSHandlerRank": "Default" | ||
} | ||
], | ||
"UTExportedTypeDeclarations": [ | ||
{ | ||
"UTTypeConformsTo": ["public.data", "public.content"], | ||
"UTTypeIdentifier": "org.conda.menuinst.main-file-uti", | ||
"UTTypeTagSpecification": { | ||
"public.filename-extension": ["menuinst"] | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters