oskardolch / SteamCAD

2D CAD especially designed to draw steam locomotives
GNU General Public License v3.0
194 stars 14 forks source link

Generate and upload AppImage for each git push #2

Closed probonopd closed 5 years ago

probonopd commented 5 years ago

As requested by @Symbian9 this PR, when merged, will compile this application on Travis CI upon each git push, and upload an AppImage to your GitHub Releases page.

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

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

PLEASE NOTE: For this to work, you need to enable Travis CI for your repository as described here prior to merging this, if you haven't already done so. Also, You need to set up GITHUB_TOKEN in Travis CI for this to work; please see https://github.com/probonopd/uploadtool.

If you have questions, AppImage developers are on #AppImage on irc.freenode.net.

probonopd commented 5 years ago

Test AppImage is available at https://github.com/probonopd/SteamCAD/releases.

Please note that I had to use some really ugly hackery to work around the non-existing

resulting in quite a mess. These things should be done properly.

oskardolch commented 5 years ago

Hi, I appreciate your work on this. I have merged your changes into master. Regarding the "make install", I am not sure how much effort it would require. I am afraid it would need to employ the automake and autoconf and other stuff I am not familiar with. So I have neither skills no resource to do it myself, but again, any contribution of this kind would be welcome. Regarding the suggestion that the software should check for the ini files and copy them if missing, this is certainly a good idea, however it is tied with the existence of "make install", since the files should first be copied from the installation location to a common location (/usr/local/share ??? I am not sure), so that the software can find it there and copy them to the user SteamCAD config folder if appropriate. So there is nothing to add to the code until we have a working "make install" version.

probonopd commented 5 years ago

Thanks for merging đź‘Ť

You are almost there:

CurrentlyGITHUB_TOKEN missing, please set it in the Travis CI settings of this project. https://travis-ci.org/oskardolch/SteamCAD/jobs/456562587#L819

To fix this:

If you add a corrent GITHUB_TOKEN to the project settings in Travis CI, then your builds will automatically be uploaded to https://github.com/oskardolch/SteamCAD/releases.

More information: https://github.com/probonopd/uploadtool

ghost commented 5 years ago

Test AppImage is available at

Thanks, @probonopd & @oskardolch ! ;-)

I just updated my repo too, so latest AppImage also available at:

Think, later need setup Windows builds via .travis.yml.

P.S.: Also need move Windows binary (SteamCADbinWin32.zip, SteamCADbinWin64.zip) and PDF (SteamCAD.pdf) from master sources to "Releases" section as "Assets".

ghost commented 5 years ago
  • icon (I have used a placeholder)
  • desktop file (I have made one)

I started collect general feature request here as TODO list:

If need, I would be happy to help with icon design.