xeruf / monsterutilities

Browse, stream and download Monstercat Songs
GNU General Public License v3.0
31 stars 2 forks source link

Install4j - Cross-platform installer #57

Closed defvs closed 5 years ago

defvs commented 5 years ago

I've added Install4j configuration files and gradle task buildInstallers that builds theses Install4j installers (you need to set directory to Install4j in the gradle configuration file) For now, theses installers will build (on any platform, for any platform) :

Note that on windows, you need to select 64/32 bit depending on your JRE.

Gradle task buildInstallers

This task builds all the installers with the currently checked-out branch and commit. It will name the installers with the current version (dev[NUM]-[SHA]) and with informations concerning bundled JRE, platform. You need to set inside install4j your Install4J home (install it here : https://www.ej-technologies.com/products/install4j/overview.html ) We should get a license for it, as it is free for opensource projects. Note that we may need to add a link to their webpage. Waiting for your approval. There is a 90 days evaluation period, but it shows nasty popups.

Things to fix / add

Auto-updater seems broken, but cannot test because it's on my fork. We could add MacOS installer very easily We should bundle JRE for Windows as well, but you need to create a JRE bundle from a windows machine.

defvs commented 5 years ago

I got a license from them, which means we are free to use the installers without trouble ! All we need to add is a little message about Install4J in the readme (check 2e5125c2892cb4caea0ecd20a8f03f3d142c2017 )

xeruf commented 5 years ago

Why no 64 bit for Linux?

xeruf commented 5 years ago

Is the linux version 64 bit or 32 bit now?

defvs commented 5 years ago

I guess it's 64 ? Judging by the bundled JRE. But I can't seem to find anything 32 or 64 bit in Install4J (for linux). Will try to find it.

defvs commented 5 years ago

I will remove bundled JRE as otherwise buildInstaller will fail without them and it's hard to build them all.

defvs commented 5 years ago

And btw Linux is neither x32 or x64 and can be run on both (thanks Java I guess) given there are no bundled jre.

defvs commented 5 years ago

Ready to merge;

defvs commented 5 years ago

I enabled Pack200 compression in Install4J; this greatly increases compilation times but decreases by half the final file size, from ~15M to ~7M for example on Windows. Note that portable files are not concerned by Pack200

defvs commented 5 years ago

Ready to merge