-
Notifications
You must be signed in to change notification settings - Fork 7.1k
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
Generate AppImage #2082
Generate AppImage #2082
Conversation
Hi @andschwa, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!
TTYL, MSBOT; |
ee784fc
to
8b508e8
Compare
Push build succeeded. Pester tests ran and AppImage was created successfully. |
Thanks, looks good to me. |
8b508e8
to
ea61206
Compare
@TravisEz13 can you try out the AppImage? |
@andschwa I see the images generated here, but you don't have artifacts enabled so I cannot download them. https://travis-ci.org/andschwa/PowerShell/builds/155445453 |
@TravisEz13 ah, of course. Here's an upstream build which should upload the artifacts when its complete. |
Upload succeeded, download_url: https://s3.amazonaws.com/powershell-artifacts/PowerShell/PowerShell/258/258.1/powershell-6.0.0-alpha.9-x86_64.AppImage Will test now. |
Tested on Ubuntu 16.04, runs. |
Edit for clarity: this is on indefinite hold, waiting on @KrisBash. |
@probonopd I have a hold that came internally, we can't merge this yet. @KrisBash can you please explain? |
@KrisBash nevermind, I spoke with @probonopd. |
tools/appimage.sh
Outdated
|
||
cd ./$APP/ | ||
|
||
wget -q https://github.com/probonopd/AppImages/raw/master/functions.sh -O ./functions.sh |
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.
We shouldn't be fetching scripts from potentially untrusted sources as part of building our package - we should have copies of everything we need in our repo.
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.
functions.sh is part of the probonopd/AppImages project which is under the MIT License so you are free to mirror it but it is neither part of the PowerShell project nor subject to the Microsoft CLA.
The binaries it downloads in the generate_appimage function are built from the sources in the the probonopd/AppImageKit project which is also under the MIT License but is also neither part of the PowerShell project nor subject to the Microsoft CLA. You are free to rebuild them from your own mirror, too, if you like.
I am using powershell AppImage on linux , available at https://bintray.com/probono/AppImages/PowerShell . It helps in single portable binary executable file getting executed on various linux distributions. I will humbly request and very strongly recommend that each powershell release by the powershell development team, should also officially happen in AppImage format , and should be available officially at https://github.com/PowerShell/PowerShell/releases Please merge the pull request as soon as possible and release it in Powershell 6.0 |
Hello, and thank you for your input @zaxebo1. I am following up internally on why this is still blocked; we should have a better answer here soon. Thanks again 😄 |
Working on getting resolution on this, won't happen til next week earliest |
Thanks for following up @SteveL-MSFT 😄 |
546ba19
to
dcc1438
Compare
@vors this is ready now as far as I know. |
Found and included them. |
README.md
Outdated
@@ -39,13 +40,15 @@ You can download and install a PowerShell package for any of the following platf | |||
[rl-ubuntu16]: https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-alpha.15/powershell_6.0.0-alpha.15-1ubuntu1.16.04.1_amd64.deb | |||
[rl-ubuntu14]: https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-alpha.15/powershell_6.0.0-alpha.15-1ubuntu1.14.04.1_amd64.deb | |||
[rl-centos]: https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-alpha.15/powershell-6.0.0_alpha.15-1.el7.centos.x86_64.rpm | |||
[rl-ai]: TODO: Post link when availabl |
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.
Oops a typo.
@PowerShell/powershell-maintainers you'll want to include the AppImage binary in the next release on GitHub, and fix the link in the readme. |
@SteveL-MSFT handing over to you for final review and merge 😄 |
@andschwa just another rebase ;) |
All right, taken care of. But if the tests fail, it's not my fault! |
* Use icon from local repository PowerShell#2027 (comment) * Use the deb that has been generated in this build * Copyright and license PowerShell#2027 (comment) * MIT License for appimage.sh PowerShell#2027 (comment) * Full text of the MIT License is in license_thirdparty_proprietary.txt * Clarify license and clean up unused code PowerShell#2027 (comment) * Mark appimage.sh as executable
This license specifically covers the additional libraries that are bundled inside the AppImage archive.
59e16db
to
db93f41
Compare
Never ending story ;-) @andschwa |
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.
LGTM
Thanks for merging. Minor cosmetic glitch, in |
@probonopd that's because that link doesn't exist yet and points to a TODO |
@raghushantha do you need to update your publishing pipeline to generate the appimage? once we have an official appimage, can you update the link to point to it? |
Woo hoo! |
Let's celebrate @andschwa 🥇 |
@SteveL-MSFT I have integrated AppImage generation as part of the Release pipeline. |
Replaces #2027 as it had merge conflicts due to macOS -> OS X rename. Rebased to fix failing Pester test run.
@probonopd and @TravisEz13 please review that I fixed conflicts correctly.
Push build is here.