10000 Provide official AppImage builds for Linux · Issue #2024 · PowerShell/PowerShell · GitHub
[go: up one dir, main page]

Skip to content

Provide official AppImage builds for Linux #2024

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

Closed
probonopd opened this issue Aug 22, 2016 · 14 comments
Closed

Provide official AppImage builds for Linux #2024

probonopd opened this issue Aug 22, 2016 · 14 comments
Assignees
Labels
Area-Maintainers-Build specific to affecting the build Issue-Enhancement the issue is more of a feature request than a bug

Comments

@probonopd
Copy link
Contributor

Please provide PowerShell in the AppImage format for Linux.

AppImage is a packaging format for Linux that lets users download one single file, set the executable bit and run the application (here: PowerShell). Unlike other solutions, no special runtime infrastructure must be installed on the target system(s).

PowerShell

An unofficial PowerShell AppImage has been available on https://bintray.com/probono/AppImages/PowerShell#files. It has been tested on

  • CentOS-7.0-1406-x86_64-GnomeLive.iso
  • CentOS-7-x86_64-LiveGNOME-1511.iso
  • Chromixium-1.5-amd64.iso
  • Fedora-Live-Workstation-x86_64-22-3.iso
  • Fedora-Live-Workstation-x86_64-23-10.iso
  • SL-72-x86_64-2016-02-03-LiveDVDgnome.iso
  • debian-live-8.0.0-amd64-xfce-desktop+nonfree.iso
  • debian-live-8.4.0-amd64-gnome-desktop.iso
  • elementary_OS_0.3_freya_amd64.iso
  • kali-linux-2.0-amd64.iso
  • kali-linux-2016.1-amd64.iso
  • kubuntu-14.04.4-desktop-amd64.iso
  • kubuntu-15.04-desktop-amd64.iso
  • kubuntu-16.04-desktop-amd64.iso
  • linuxmint-17.3-cinnamon-64bit.iso
  • neon-devedition-gitunstable-20160814-0806-amd64.iso
  • netrunner-17-64bit.iso
  • ubuntu-14.04.1-desktop-amd64.iso
  • ubuntu-16.04-desktop-amd64.iso
  • ubuntu-gnome-16.04-desktop-amd64.iso
  • ubuntu-mate-16.04-desktop-amd64.iso
  • xubuntu-16.04-desktop-amd64.iso

To try it, run

PS="PowerShell-6.0.0.alpha.9-x86_64.AppImage"
wget -c "https://bintray.com/probono/AppImages/download_file?file_path=$PS" -O "$PS"
chmod a+x "$PS"
./"$PS"

@TravisEz13 mentioned that the AppImage works for him and @andschwa mentioned that he likes the idea of having one format for all Linux distributions.

The script that generated the AppImage is here. Feel free to use it, e.g. as part of the automated Travis CI build process. I am happy to help.

@andyleejordan
Copy link
Member

I like it a lot, want to open a Pull Request? You should be able to setup Travis CI on your own fork for testing.

@probonopd
Copy link
Contributor Author
probonopd commented Aug 22, 2016

Work in progress: master...probonopd:master

@andschwa I seem to be running into issues with the Travis CI build unrelated to AppImage: https://travis-ci.org/probonopd/PowerShell/builds/154306325#L719-L750, seems to be the case in the official build too: https://travis-ci.org/PowerShell/PowerShell/builds/154265962#L731-L758

@TravisEz13
Copy link
Member

@probonopd The root error is here: https://travis-ci.org/probonopd/PowerShell/builds/154306325#L722
git cannot get the last tag. Looking for a workaround...

@TravisEz13
Copy link
Member

I believe this will fix/workaround the issue. https://docs.travis-ci.com/user/customizing-the-build#Git-Clone-Depth

Your clone depth was 50... I would suggest increasing to 100.

probonopd added a commit to probonopd/PowerShell that referenced this issue Aug 22, 2016
@TravisEz13
Copy link
Member

I filled issue #2029 for the clone depth issue.

@TravisEz13 TravisEz13 added the Area-Maintainers-Build specific to affecting the build label Aug 23, 2016
andyleejordan pushed a commit to andyleejordan/PowerShell that referenced this issue Aug 26, 2016
@joeyaiello joeyaiello added the Issue-Enhancement the issue is more of a feature request than a bug label Sep 6, 2016
@probonopd
Copy link
Contributor Author

Ping

@qury
Copy link
qury commented Mar 2, 2017

PowerShell-6.0.0.alpha.9-x86_64.AppImage works fine on Slackware64-14.2 as well.

@probonopd
Copy link
Contributor Author

Thanks for providing an AppImage.

@zaxebo1
Copy link
zaxebo1 commented Mar 13, 2017

SUGGESTION #1:
the AppImage download for " PowerShell v6.0.0-alpha.17 Release" provided at url https://github.com/PowerShell/PowerShell/releases/tag/v6.0.0-alpha.17 currently has the name "PowerShell-x86_64.AppImage"

I think currently the filename "PowerShell-x86_64.AppImage" file should be renamed as
"powershell-x86_64-6.0.0-alpha.17.AppImage" . Just like filename of other download formats, Appimage filename should also include version

@zaxebo1
Copy link
zaxebo1 commented Mar 13, 2017

POINT #2: Currently when i run (on Debian testing and ubuntu 16.04 both) the downloaded file "PowerShell-x86_64.AppImage" from url https://github.com/PowerShell/PowerShell/releases/tag/v6.0.0-alpha.17, then it first gives the some warnings and then successfully launches Powershell

myuser1@my-machine1:~$ chmod a+x *.AppImage
myuser1@my-machine1:~$ ./PowerShell-x86_64.AppImage
/bin/bash: /tmp/.mount_kvGjoY/usr/lib/libtinfo.so.5: no version information available (required by /bin/bash)
$XDG_DATA_DIRS is missing. Please run /tmp/.mount_kvGjoY/usr/bin/powershell.wrapper from within an AppImage.
PowerShell 
Copyright (C) Microsoft Corporation. All rights reserved.
PS /home/myuser1> 

Are these above warnings OK? Is there anything which still needs to be done to remove these warnings?
/bin/bash: /tmp/.mount_kvGjoY/usr/lib/libtinfo.so.5: no version information available (required by /bin/bash)
$XDG_DATA_DIRS is missing. Please run /tmp/.mount_kvGjoY/usr/bin/powershell.wrapper from within an AppImage.

@TravisEz13
Copy link
Member

@zaxebo1 Great points, but it would be better to capture them as a new issue or set of issues. I'd rather not reopen this issue. The new issue will give us something track the work that needs to be done to fix these issues. Thanks!

@zaxebo1
Copy link
zaxebo1 commented Mar 13, 2017

@TravisEz13
okk. Filed new issues, as per your suggestion

@SRGOM
Copy link
Contributor
SRGOM commented Feb 5, 2019

Aren't appimages being distributed anymore? They were very convenient. I had to download the 'official linux binary' and tar xvf created a bit of a mess.

@TravisEz13
Copy link
Member

@SRGOM We have switch to a Snap package. This got us better support for more platforms with lower maintenance costs.

cc @joeyaiello

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Maintainers-Build specific to affecting the build Issue-Enhancement the issue is more of a feature request than a bug
Projects
None yet
Development

No branches or pull requests

8 participants
0