Skip to content

Add macOS app to launch PowerShell. #5074

Closed

Description

I've been using this for awhile now. Would be nice if the installer could install something similar making PowerShell launch-able via Spotlight and dock-able.

Activity

  1. SteveL-MSFT commented on Oct 10, 2017

    @SteveL-MSFT
    Member

    Would you be willing to contribute that as a PR?

  2. thezim commented on Oct 10, 2017

    @thezim
    ContributorAuthor

    Sure, just need to figure where it should go. The app really simple, just a few folders, plist file, shell script, and icns file. A shell script can be used to generate everything except the icns file which we already have. Do you think we should pregen it in repo and package it up or have the package generate it during the install.

  3. SteveL-MSFT commented on Oct 10, 2017

    @SteveL-MSFT
    Member

    If the content is pretty static, I don't think we need to generate it every time and we can maybe store it under "assets"? packaging.psm1 would need to be updated to put this into the macOS package.

    cc Travis Plunk (@TravisEz13)

  4. TravisEz13 commented on Oct 10, 2017

    @TravisEz13
    Member

    Greg Zimmerman (@thezim) Do you know how to use the xcode commandline to package these assets?

  5. thezim commented on Oct 10, 2017

    @thezim
    ContributorAuthor

    Travis Plunk (@TravisEz13) I do now. I was able to create a package with the following. Tested the package and it works.

    chown -R root:wheel *
    pkgbuild --root ROOT --identifier com.mirosoft.powershell --version 1.0 PowerShell.pkg

    ROOT/PowerShell.app/[remaining files and folders]

    Is there an existing identifier/CFBundleIdentifier that should be used? I see powershell is used by the standard installer.

  6. TravisEz13 commented on Oct 10, 2017

    @TravisEz13
    Member

    I think this one should be something like PowerShell launcher (not intended to be the exact identifier). The files probably should go in a folder under tools/packaging. An argument could be made that the icon should be under assets and copied during packing. Add a function which builds the package to tools/packaging/packaging.psm1 and make sure it's exported in the psd1. (I wrote this in a hurry sorry for any errors.)

  7. thezim commented on Oct 11, 2017

    @thezim
    ContributorAuthor

    Travis Plunk (@TravisEz13) thanks. I'll start on a PR.

  8. TravisEz13 commented on Oct 11, 2017

    @TravisEz13
    Member

    Thank you.

  9. thezim commented on Oct 13, 2017

    @thezim
    ContributorAuthor

    Travis Plunk (@TravisEz13) Now that I understand the packaging module better, do we what this as a separate .pkg file and an exported function? I see only Start-PSPackage is exported currently. I have it working now 0283108 by including the app in the entire package which I thought made sense. Let me know if have gone in a wrong direction.

  10. TravisEz13 commented on Oct 16, 2017

    @TravisEz13
    Member

    I think one package is okay. We can see what feedback we get and see if we need to seperate them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    OS-macOSResolution-FixedWG-Maintainers-Build

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions