diff --git a/radioconda.yaml b/radioconda.yaml index 57e9566..d8aa714 100644 --- a/radioconda.yaml +++ b/radioconda.yaml @@ -1,6 +1,7 @@ name: radioconda channels: - conda-forge + - ryanvolz # [win] platforms: - linux-64 - osx-64 @@ -23,7 +24,7 @@ dependencies: - python # restrict to python 3.8 on Windows for Windows 7 compatibility - python 3.8.* # [win] - - miniforge_console_shortcut # [win] + - radioconda_console_shortcut # [win] - rtl-sdr - scipy - soapysdr diff --git a/radioconda_console_shortcut/.gitattributes b/radioconda_console_shortcut/.gitattributes new file mode 100644 index 0000000..974953e --- /dev/null +++ b/radioconda_console_shortcut/.gitattributes @@ -0,0 +1,7 @@ +* text=auto + +*.patch binary +*.diff binary +meta.yaml text eol=lf +build.sh text eol=lf +bld.bat text eol=crlf diff --git a/radioconda_console_shortcut/LICENSE.txt b/radioconda_console_shortcut/LICENSE.txt new file mode 100644 index 0000000..9aab681 --- /dev/null +++ b/radioconda_console_shortcut/LICENSE.txt @@ -0,0 +1,28 @@ +BSD 3-Clause License + +Copyright (c) 2012, Anaconda, Inc. +Copyright (c) 2015-2019, conda-forge +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + * Neither the name of the copyright holder nor the names of its + contributors may be used to endorse or promote products + derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY +DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/radioconda_console_shortcut/bld.bat b/radioconda_console_shortcut/bld.bat new file mode 100755 index 0000000..bc587b9 --- /dev/null +++ b/radioconda_console_shortcut/bld.bat @@ -0,0 +1,7 @@ +set MENU_DIR="%PREFIX%\Menu" +if not exist %MENU_DIR% mkdir %MENU_DIR% + +:: icon is in public domain: https://github.com/paomedia/small-n-flat + +copy "%RECIPE_DIR%\console_shortcut.ico" %MENU_DIR% +copy "%RECIPE_DIR%\console_shortcut.json" %MENU_DIR% diff --git a/radioconda_console_shortcut/console_shortcut.ico b/radioconda_console_shortcut/console_shortcut.ico new file mode 100644 index 0000000..cf824a4 Binary files /dev/null and b/radioconda_console_shortcut/console_shortcut.ico differ diff --git a/radioconda_console_shortcut/console_shortcut.json b/radioconda_console_shortcut/console_shortcut.json new file mode 100644 index 0000000..c87c4f7 --- /dev/null +++ b/radioconda_console_shortcut/console_shortcut.json @@ -0,0 +1,12 @@ +{ + "menu_name": "radioconda", + "menu_items": + [ + { + "name": "Conda Prompt", + "system": "%windir%\\system32\\cmd.exe", + "scriptarguments": ["/K", "${ROOT_PREFIX}\\Scripts\\activate.bat", "${PREFIX}"], + "icon": "${MENU_DIR}/console_shortcut.ico" + } + ] +} diff --git a/radioconda_console_shortcut/meta.yaml b/radioconda_console_shortcut/meta.yaml new file mode 100644 index 0000000..af3729f --- /dev/null +++ b/radioconda_console_shortcut/meta.yaml @@ -0,0 +1,25 @@ +{% set version = "1.0" %} +{% set build = 0 %} + +package: + name: radioconda_console_shortcut + version: {{ version }} + +build: + number: {{ build }} + skip: True # [not win] + +test: + commands: + - if not exist %PREFIX%\\Menu\\console_shortcut.json exit 1 + - if not exist %PREFIX%\\Menu\\console_shortcut.ico exit + +about: + home: https://github.com/ryanvolz/radioconda + summary: Command prompt shortcut for Windows with base environment activated + license: BSD-3-Clause + license_file: LICENSE.txt + +extra: + recipe-maintainers: + - ryanvolz