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

Creating am Appimage for rpi-imager #350

Closed
abhas opened this issue Feb 5, 2022 · 21 comments
Closed

Creating am Appimage for rpi-imager #350

abhas opened this issue Feb 5, 2022 · 21 comments

Comments

@abhas
Copy link

abhas commented Feb 5, 2022

I would like to help with creating an updated Appimage for the rpi-image so that it could be used on any GNU/Linux OS with ease and can be recommended as the general purpose image writer for users.

There is already an rpi-image Appimage available via the download site but its very old. I would be glad to help out if the original yml definition of the Appimage is still available somewhere.

Thanks for this lovely utility!

@guysoft
Copy link

guysoft commented Feb 6, 2022

Same here, there isn't any documentation how to build it.

@lurch
Copy link
Contributor

lurch commented Feb 6, 2022

There's some (older) info about the old AppImage in #20

@maxnet
Copy link
Collaborator

maxnet commented Feb 6, 2022

I personally think it would be better if those other Linux distributions did some effort themselves and provided native packages.

Also keep in mind that Imager depends on other system services (such as UDisks2) to do its job. And you cannot easily stick those other services in an AppImage....
So that Imager would magically work on any Linux OS in existence if you would put Imager in a container is a bit too optimistic.

@XECDesign
Copy link

I don't remember the specifics, but I found that the AppImage build was more trouble than it was worth. Also, it was downloaded only a handful of times.

guysoft added a commit to guysoft/pi-imager that referenced this issue Mar 7, 2022
@guysoft
Copy link

guysoft commented Mar 7, 2022

Hey all, I managed to build an AppImage for my rpi-imager fork. And the CI/CD to go with it.
You are welcome to test it and tell me if this works for you :)

Due to #200 it wont run on versions of Linux older than Ubuntu 20.04 LTS.

https://github.com/guysoft/pi-imager/releases/tag/v.1.7.1

@maxnet
Copy link
Collaborator

maxnet commented Mar 7, 2022

Due to #200 it wont run on versions of Linux older than Ubuntu 20.04 LTS.

Eh, why?

You did not stick a newer Qt version that does have that method in your AppImage?!

@guysoft
Copy link

guysoft commented Mar 7, 2022

Because you need to build rpi-imager on older versions, and it wont build on anything older, see: https://github.com/probonopd/linuxdeployqt#a-note-on-binary-compatibility

@maxnet
Copy link
Collaborator

maxnet commented Mar 7, 2022

Because you need to build rpi-imager on older versions, and it wont build on anything older

Not with Ubuntu's 5 year old Qt packages, but recall you can get a recent Qt version for Ubuntu 18 from the Qt website.

@guysoft
Copy link

guysoft commented Mar 7, 2022

Possibly. It might work. Even with the current appimage. But at this point I have an AppImage and that's good enough for my fork. It might be good enough for everyone else here too.

@SharkWipf
Copy link

Also, it was downloaded only a handful of times.

Wouldn't that make sense, given it was, afaik, not listed on the main download page?
Plus it was only "recent" for 3 months, after that newer versions came out that were not released as AppImage.
Not to mention awareness of AppImages has grown a lot since 2020, it was the first thing I looked for trying to get rpi-imager for my distro.
Especially considering the only official build instructions available are "how to build a deb", other distros can't even realistically package their own unofficial versions of rpi-imager, so having a distro-agnostic official AppImage makes perfect sense to me, more sense even than having an Ubuntu-native version.

@it9exm
Copy link

it9exm commented Sep 22, 2022

Where is the appimage? I can't install the package available for download on the main page (for Ubuntu x86, how ridiculous) on debian. I guess I don't need that, I'll find another way to update the bootloader.

@lurch
Copy link
Contributor

lurch commented Sep 22, 2022

I'll find another way to update the bootloader.

https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#rpi-eeprom-update
https://github.com/raspberrypi/rpi-eeprom/

@maxnet
Copy link
Collaborator

maxnet commented Sep 22, 2022

I can't install the package available for download on the main page (for Ubuntu x86, how ridiculous) on debian.

Then following the instructions on the main page to build the package yourself instead.

https://github.com/raspberrypi/rpi-imager

@it9exm
Copy link

it9exm commented Sep 22, 2022

Found here what I was looking for.
And no, I won't build and install that stuff on my system. I would have gladly given a try if that came the form of an appimage, like the most sane software projects. Now I just don't need that any longer.

@TheAssassin
Copy link
Contributor

Started working on some AppImage build in my fork. Provides some AppImages for testing in https://github.com/TheAssassin/rpi-imager/releases/continuous. More information can be found in #495. Hopefully, the developers reconsider shipping AppImages, as they're by far more suitable than native packages for upstream packaging, and easier to use for users as well.

@guysoft
Copy link

guysoft commented Oct 18, 2022

Cool
@TheAssassin is there any advantage to use appimagecraft over what I am doing with deb2appimage?
This is what I am doing: https://github.com/guysoft/pi-imager/blob/qml/.github/workflows/build-linux.yml#L36

My ci/cd is currently building all 3 operating systems

@TheAssassin
Copy link
Contributor

TheAssassin commented Oct 18, 2022

Never heard of deb2appimage. appimagecraft itself is just a simple shell script generator. You should be asking "is there any advantage in using linuxdeploy". linuxdeploy and its plugins are by far more widely in use, and they try to avoid the hacks used by deb2appimage, pkg2appimage and alike.

@guysoft
Copy link

guysoft commented Oct 18, 2022

Cool, I guesd i could pull your ci in to pi-imager if it makes a betterpackage. Might be interesting to compare the resulting appimage.

@lurch
Copy link
Contributor

lurch commented Oct 18, 2022

Sorry... 😉
https://xkcd.com/927/

@tdewey-rpi
Copy link
Collaborator

Closing as won't fix. AppImage building was rejected in the PR, and as such we can't offer support for it.

If you choose to use a packaging scheme other than the ones provided by our releases, note that my policy is to refuse issues that appear to be caused by packaging misconfiguration (when you're not using our packages).

@tdewey-rpi tdewey-rpi closed this as not planned Won't fix, can't repro, duplicate, stale Feb 6, 2024
@TheAssassin
Copy link
Contributor

You may want to reopen this given the fact that #495 was reopened.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants