You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
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.
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.)
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.
Activity
SteveL-MSFT commentedon Oct 10, 2017
Would you be willing to contribute that as a PR?
thezim commentedon Oct 10, 2017
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.
SteveL-MSFT commentedon Oct 10, 2017
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)
TravisEz13 commentedon Oct 10, 2017
Greg Zimmerman (@thezim) Do you know how to use the xcode commandline to package these assets?
thezim commentedon Oct 10, 2017
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.pkgROOT/PowerShell.app/[remaining files and folders]
Is there an existing identifier/CFBundleIdentifier that should be used? I see
powershellis used by the standard installer.TravisEz13 commentedon Oct 10, 2017
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 undertools/packaging. An argument could be made that the icon should be underassetsand copied during packing. Add a function which builds the package totools/packaging/packaging.psm1and make sure it's exported in the psd1. (I wrote this in a hurry sorry for any errors.)thezim commentedon Oct 11, 2017
Travis Plunk (@TravisEz13) thanks. I'll start on a PR.
TravisEz13 commentedon Oct 11, 2017
Thank you.
thezim commentedon Oct 13, 2017
Travis Plunk (@TravisEz13) Now that I understand the
packagingmodule better, do we what this as a separate .pkg file and an exported function? I see onlyStart-PSPackageis 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.TravisEz13 commentedon Oct 16, 2017
I think one package is okay. We can see what feedback we get and see if we need to seperate them.