arduino / Arduino

Arduino IDE 1.x
https://www.arduino.cc/en/software
Other
14.14k stars 7k forks source link

Provide AppImage for Linux #5852

Open probonopd opened 7 years ago

probonopd commented 7 years ago

Many Linux users download Arduino directly from the Arduino website rather use what comes with the Linux distribution, since the upstream-provided version is up-to-date while the version in the distributions (especially in stable/LTS versions) is outdated more often than not.

Providing an AppImage would have, among others, these advantages:

Here is an overview of projects that are already distributing upstream-provided, official AppImages.

Do you think this would be useful? I'd be happy to help producing an official Arduino AppImage.

NicoHood commented 7 years ago

How about providing proper packages for your distribution to get up to date security and bug fixes instead of creating another static binary blob on your system that you have to maintain yourself.

I have no problems with new ideas, but in this case it would be better people stop complaining and start packaging debian packages which most users use. Read up the documentation and just create your first package. Or use archlinux which does have arduino packages.

probonopd commented 7 years ago

@NicoHood it's not an either-or, and the AppImage does not add downsides in this regard over the downloads already being provided right now on the Arduino download page.

NicoHood commented 7 years ago

This all really sounds good, this is a really nice idea. However the time spent on that can be used to generate debian packages and everyone would be happy. But I dont think they will implement this if they cant even #5619 sign their sources.

probonopd commented 7 years ago

If I understand it correctly, Arduino is outdated even in debian sid: https://packages.debian.org/sid/arduino

Which I think supports my original point that

the version in the distributions (especially in stable/LTS versions) is outdated more often than not

NicoHood commented 7 years ago

Thatswhy I said: Put your energy in updating arduino .deb rather than this binary solution. The reason why its such old is that nobody packages it.

hideout commented 7 years ago

i think probono this is a really nice idea! I would love to have Arduino appimage cause i am a Arduino user too!

cheers

probonopd commented 7 years ago

It's actually very easy to do. On any Ubuntu or debian 64-bit system, run

wget -c "https://github.com/probonopd/AppImages/raw/master/recipes/meta/Recipe"
bash Recipe Arduino

It will download the IDE from the official website and convert it to an AppImage. For this, it will use this yml file that defines the tar.xz to AppImage conversion, very few lines of code.

The resulting AppImage should run on most 64-bit desktop Linux distributions.

probonopd commented 7 years ago

As a proof-of-concept, I am providing an Arduino AppImage for testing with integrated esp8266/Arduino core at

https://bintray.com/probono/AppImages/Arduino_IDE/_latestVersion#files

To try it, just download one AppImage file, make it executable, and run. Feedback welcome. Some fine-tuning may still be required, although it is running perfectly fine for me on all Linux distributions I have tried so far.

ghost commented 2 years ago

JFTR, Here are beta AppImage builds of Arduino IDE 2.0.0 for Raspberry Pi:

cjdg commented 2 years ago

I think is nice idea, Ubuntu has something called ubuntu-make, which is crude tool which downloads among other development tools, arduino.

probonopd commented 2 years ago

This has been done for versinon 2 of the Arduino IDE. There are even nightly builds. Thank you very much! :+1:

ghost commented 2 years ago

This has been done for versinon 2 of the Arduino IDE

Great news, thanks!

JFTR. Arduino IDE 2.0.0 not released yet, as at the moment only 2.0.0-rc6 is available for testing)