simlu / voxelshop

This is the official repositiory for VoxelShop
https://blackflux.com/node/11
Apache License 2.0
350 stars 65 forks source link

Add install.sh for linux - see bash script in comment #296

Closed Poikilos closed 4 years ago

Poikilos commented 5 years ago

Hello, I'm not sure where to put this for a pull request, but I hope that you can make use of this.

Actual Behavior

Cannot double-click jar files in linux (not voxelshop's fault)

Expected Behavior

Unzip then use voxelshop without terminal, or at least have install.sh script to get a GUI icon.

You would also have to add the following to the linux zip builds:

simlu commented 5 years ago

Hello @poikilos!

Thank you very much for your input here! Much appreciated and I would love to include this. Have a few questions first though:

1) How would one go about uninstalling (reverting the installation process)? 2) What did you base your script on? I'm assuming you didn't write this all from scratch? 3) Would you be able to create an example linux distribution zip file that I can use as an example? That would make it much easier for me to set it up.

Cheers, L~

Poikilos commented 5 years ago
  1. There is no uninstall. This is expected for installing from source unless autotools or another framework is used for generating a manifest.
  2. I wrote this all from scratch, with trivial syntax help from stackoverflow as usual. Some of it (such as application menu refreshing) is boilerplate from my other projects. I worked as a linux server admin for a while, and all installs that weren't packaged were automated like this. I wrote the script for VoxelShop because I like it so want to encourage development and help my friends install it.
  3. See attached (same as your zip, but with necessary files and the install script--this would be a good way to distribute it to linux users) voxelshop.tar.gz
Poikilos commented 5 years ago

Ok, now it creates an install.log and has an uninstall.sh. Enjoy... voxelshop-1.8.24.tar.gz

simlu commented 5 years ago

@poikilos Sweet, thank you very much! I'll try to review and add it this weekend!

simlu commented 5 years ago

@poikilos Finally had time to review this. Looking good!

I've opened a pr here: https://github.com/simlu/voxelshop/pull/298/files

However ideally we would detect if we "should" install. I.e. fail on windows. The alternative is to have different distros, but I'm not a big fan. What do you think?

Poikilos commented 5 years ago

I'm not sure what you mean by "fail on Windows." This file would be excluded from windows builds if possible. Is that what you mean by different distros? I see if you want to avoid that. However, maybe just add a big banner for Windows users at the top of the sh file:

#!/bin/sh

# To install on Windows:
# * Make sure you have clicked "Extract All" first
# * right-click on the jar file, then click Send to, Desktop (Create Shortcut)
simlu commented 5 years ago

Sorry for the late reply. I think I'll add different files here: install.txt containing details on general install and rename above files as install-linux.sh and uninstall-linux.sh. That should hopefully be the least confusing...

simlu commented 5 years ago

I've released it as a pre-release: https://github.com/simlu/voxelshop/releases

Let me know if everything looks good and I'll make it a full release!

Poikilos commented 5 years ago

It looks pretty good so far! I am sending a PR to deal with the following:

I have verified that the PR resolves both issues.

Poikilos commented 5 years ago

Ignore the first PR on my repo, I accidentally submitted a PR to myself! The open PR #299 is the valid one.

simlu commented 5 years ago

@poikilos Merged and did another release. I'll mark it as a full release once you confirm that everything looks good!

simlu commented 4 years ago

Closing, but feel free to comment if there are any issues!