Skip to content
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

How can one deploy Windows Terminal from command line? #855

Closed
Tembocs opened this issue May 16, 2019 · 17 comments
Closed

How can one deploy Windows Terminal from command line? #855

Tembocs opened this issue May 16, 2019 · 17 comments
Labels
Area-Build Issues pertaining to the build system, CI, infrastructure, meta Issue-Docs It's a documentation issue that really should be on MicrosoftDocs/Console-Docs Product-Terminal The new Windows Terminal. Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.

Comments

@Tembocs
Copy link

Tembocs commented May 16, 2019

I've built Windows Terminal successful from command line. Running WindowsTerminal.exe gives a white blank window. How can I deploy it from command line? I couldn't see any instructions on how to do this.

@zadjii-msft
Copy link
Member

We don't currently have any guidance on this. If you can deploy the CascadiaPackage from the command line, that would install the terminal.
There should be a script named Install-AppxPacage or similar that should install it

@oising
Copy link
Collaborator

oising commented May 16, 2019

I'll write some guidance, @zadjii-msft

@oising oising self-assigned this May 16, 2019
@oising oising added Area-Build Issues pertaining to the build system, CI, infrastructure, meta Issue-Docs It's a documentation issue that really should be on MicrosoftDocs/Console-Docs labels May 16, 2019
@Tembocs
Copy link
Author

Tembocs commented May 17, 2019

I'll write some guidance, @zadjii-msft

Thanks, @oising

@mdtauk
Copy link

mdtauk commented May 17, 2019

A command line option to load a particular profile perhaps? And maybe even an override to hide the tabs so its a single console instance only?

winterminal.exe -p "ubuntu_dark" -s
-p = Profile
-s = Single Instance

@zadjii-msft
Copy link
Member

@mdtauk this isn't about adding support for commandline args, this is about deploying the appxpackage on your machine without opening Visual Studio. This workflow used to be better understood, but since the process of deploying the app was just marginally faster with Visual Studio, I've stopped deploying it from the commandline myself :/

@mdtauk
Copy link

mdtauk commented May 17, 2019

@zadjii-msft My apologies, I thought it was about opening from the Command Line

@Tembocs
Copy link
Author

Tembocs commented May 17, 2019

We don't currently have any guidance on this. If you can deploy the CascadiaPackage from the command line, that would install the terminal.
There should be a script named Install-AppxPacage or similar that should install it

@zadjii-msft I can't see a script with such a name in the repository.

@zadjii-msft
Copy link
Member

That's my bad, I tried replying on mobile. This is why you don't check work email on your phone.

The actual script is Add-AppDevPackage.ps1, It'll be under something like src\cascadia\CascadiaPackage\AppPackages\CascadiaPackage_1.0.0.0_x64_Debug_Test

@mKay00
Copy link
Contributor

mKay00 commented May 17, 2019

Are you sure it isn't this one ".\Terminal\build\scripts\Create-AppxBundle.ps1"?

@DHowett-MSFT
Copy link
Contributor

@mKay00 It is extremely not that one.

@ghost ghost added the Needs-Tag-Fix Doesn't match tag requirements label May 17, 2019
@oising
Copy link
Collaborator

oising commented May 17, 2019

That's my bad, I tried replying on mobile. This is why you don't check work email on your phone.

The actual script is Add-AppDevPackage.ps1, It'll be under something like src\cascadia\CascadiaPackage\AppPackages\CascadiaPackage_1.0.0.0_x64_Debug_Test

This is the one I'm looking at and it doesn't work as advertised - surprise lol. it just blows up with a signing error for me, almost immediately. As with building the solution has proven to be for many, I think installing the package from the CLI is going to be just as hairy. I'm trying to cover all angles by using the Windows 10 sandbox as a clean-room environment to install the AppX. I can imagine people are going to be emailing and exchanging zips of the appx with each other behind the scenes and I don't want to accidentally rely on something that's part of my development environment. I thought this would be a quick win but... hahaha, they never are.

@oising
Copy link
Collaborator

oising commented May 17, 2019

@miniksa "Mass-Chaos?" LOL -- we're gonna need that one often.

@oising
Copy link
Collaborator

oising commented May 17, 2019

btw, Windows Sandbox rocks hard.

@miniksa miniksa added the Product-Terminal The new Windows Terminal. label May 18, 2019
@ghost ghost removed the Needs-Tag-Fix Doesn't match tag requirements label May 18, 2019
@miniksa
Copy link
Member

miniksa commented May 21, 2019

@miniksa Michael Niksa FTE "Mass-Chaos?" LOL -- we're gonna need that one often.

I needed something to trigger the bot and was feeling a bit silly.

@oising
Copy link
Collaborator

oising commented May 31, 2019

Just an update here, albeit a rather pathetic one. I spent an unreasonable amount of time struggling with SignTool as it spat out arcane error after error and I had to give up. It seems that signing an AppX is best left to Zeus, or Loki or something. I have no problems making the pfx, ensuring the OIDs are correct, that the Issuer matches that in the AppManifest.xml, that the correct hash algorithm is used etc etc, and the thing just keeps spewing failure codes and writes absolutely nothing in the ETW logs either.

I am going to just suggest that people continue to deploy by using Visual Studio unless someone else knows definitively why SignTool won't play ball with appx, appxsym nor msix files.

@zadjii-msft
Copy link
Member

Note the README does say

make sure you're building & deploying CascadiaPackage in Visual Studio

But I (and many others) have no idea how to do this (or why, since we already just built the app in powershell per the instructions).

It seems like there's a command missing in the powershell instructions, which tells us how to either a) install or b) run the Terminal.

(from @mikemaccana)

@adiviness How do you deploy Cascadia?

@zadjii-msft zadjii-msft added this to the Terminal Backlog milestone Jun 19, 2019
@DHowett-MSFT
Copy link
Contributor

Duping to #926 (more info in there)

@ghost ghost added the Needs-Tag-Fix Doesn't match tag requirements label Jul 11, 2019
@DHowett-MSFT DHowett-MSFT added Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing. and removed Needs-Tag-Fix Doesn't match tag requirements labels Jul 11, 2019
@zadjii-msft zadjii-msft removed this from the Terminal Backlog milestone Jan 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Build Issues pertaining to the build system, CI, infrastructure, meta Issue-Docs It's a documentation issue that really should be on MicrosoftDocs/Console-Docs Product-Terminal The new Windows Terminal. Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.
Projects
None yet
Development

No branches or pull requests

7 participants