-
-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add windows-terminal
#21913
Add windows-terminal
#21913
Changes from 13 commits
ac7d78d
6db1ad4
167351e
541fe75
954e4d7
cc8a1c2
47e913a
24adbf3
2d2a226
c6eaaa6
f8245c0
8612fae
e3735ba
fb4c6da
9e5b695
d9be088
c5b3667
d647d12
6bd6fc0
fabe9ef
2c25497
7c53a32
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
{% set name = "windows-terminal" %} | ||
{% set version = "1.16.1026" %} | ||
|
||
|
||
package: | ||
name: {{ name|lower }} | ||
version: {{ version }} | ||
|
||
source: | ||
- url: https://github.com/microsoft/terminal/releases/download/v{{ version }}1.0/Microsoft.WindowsTerminal_Win10_{{ version }}1.0_8wekyb3d8bbwe.msixbundle | ||
sha256: ba6fc6854e713094b4009cf2021e8b4887cff737ab4b9c4f9390462dd2708298 | ||
- url: https://raw.githubusercontent.com/microsoft/terminal/v{{ version }}1.0/LICENSE | ||
sha256: 5d177f23ecfeb0ea8e050b6a5a16355e1ae9a0b286436ca8f83ed08b3795be6b | ||
- url: https://raw.githubusercontent.com/microsoft/terminal/v{{ version }}1.0/NOTICE.md | ||
sha256: 460127a8d31a3083e1673926e1439e001c1662aa36e0b48fa64482dce162b8b1 | ||
|
||
build: | ||
skip: true # [not win] | ||
number: 0 | ||
script: | | ||
7za e .\Microsoft.WindowsTerminal_Win10_{{ version }}1.0_8wekyb3d8bbwe.msixbundle CascadiaPackage_{{ version }}1.0_x64.msix | ||
if %ERRORLEVEL% neq 0 exit 1 | ||
7za x -oterminal .\CascadiaPackage_{{ version }}1.0_x64.msix | ||
if %ERRORLEVEL% neq 0 exit 1 | ||
xcopy terminal "%PREFIX%\windows-terminal" /E /I /F /B /Y | ||
if %ERRORLEVEL% neq 0 exit 1 | ||
tree /F "%PREFIX%\windows-terminal" | ||
echo F | xcopy %RECIPE_DIR%\wt.cmd %PREFIX%\Scripts\wt.cmd /F /Y | ||
if %ERRORLEVEL% neq 0 exit 1 | ||
|
||
requirements: | ||
host: | ||
- 7za | ||
run: | ||
- vc | ||
dhirschfeld marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
test: | ||
commands: | ||
- where wt | ||
- if not exist %PREFIX%\\windows-terminal\\wt.exe exit 1 | ||
|
||
about: | ||
home: https://github.com/microsoft/terminal | ||
summary: 'The new Windows Terminal and the original Windows console host, all in the same place!' | ||
license: MIT | ||
license_family: MIT | ||
license_file: | ||
- LICENSE | ||
- NOTICE.md | ||
|
||
extra: | ||
recipe-maintainers: | ||
- dhirschfeld |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
@"%~dp0..\windows-terminal\wt.exe" %* | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should this file be named There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If we move everything under There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I view My general adhoc convention is to call scripts Since the script doesn't use any of the mentioned commands where there is a difference in errorlevel handling I think it's a moot point. If you'd prefer it be a There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
If the application was under |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this creating a
windows-terminal
directory in thePREFIX
root? I think we might want to use a different containing directory, but I am not sure which one is best in Windows.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe just
PREFIX/Scripts
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My understanding is that
scripts/
is mostly used for entry-points, so havingwt.cmd
inscripts/
makes sense as it's the entry-point for the Windows Terminal application.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure it makes sense putting the applications themselves under
scripts/
, but I'm also not sure there's anyconda-forge
convention for where to put applications (particularly onWindows)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we look at what
nodejs
does, it putsnode-modules
in the top-levelPREFIX
, but it also puts the entry-points inPREFIX
as well:It's likely that the
node.exe
binary expects to find thenode-modules
folder alongside it so that constrains where you could place the executable.IMHO it would probably be cleaner to put the
.cmd
files inscripts/
, but if the actual binaries are inPREFIX
anyway, it probably doesn't have any benefit.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm fairly sure that
R
used to be installed intoPREFIX/R
but installing the latest version it appears to be installed intoPREFIX/lib/R
...with entry-points installed into
PREFIX/scripts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure installing an application under
lib
makes all that much sense, but it also probably doesn't matter - it's transparent to the user callingR.exe
in thePREFIX/Scripts
folder.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On Windows, the
dotnet
language installs intoPREFIX/dotnet
but, since I was the one who made that arbitrary decision, it can't really be used as a precedent here 😄There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At the end of the day, I'm happy to install it wherever you think makes most sense.
Following
R
that would be inPREFIX/lib/windows-terminal
but followingnodejs
that would be inPREFIX/windows-terminal
.I think the status-quo (
nodejs
convention) makes the most sense, but I also don't really mind and am happy to follow any convention (that doesn't require changes to the application)