Bash Mod Installer with Repo support (linux)

User avatar
RAPHAEL
Member
 
Posts: 627
Joined: Tue Nov 01, 2011 09:09

Bash Mod Installer with Repo support (linux)

by RAPHAEL » Wed Jan 16, 2013 02:42

EDIT: Forum automatically added extra question mark at end of poll question...

So I finally got around to making what I've been wanting to make since minetest got mods.. a bash script based mod installer/updater that can download mods from a repo.

NOTES: This ONLY works on Linux based operating systems. It has been tested and confirmed to work on Puppy Precise and Linux Mint 13. You MUST read the readme file and understand it. Also I'm not responsible for anything. The current test repo is also hosted within the github account.

To see a list of available mods to test go to:
https://github.com/TheZenKitteh/minetest-modrepo/tree/master/

A NOTE: This installer technically can use any mod archive format
supported by 7z which includes zip 7z tar.gz tar.bz2 etc.

These scripts allow you to easily install and
update mods from a repo. packmod also is used
to pack your mod for use with the installer and
compresses to 7z archive.

mtmodinstall:
# How to use:
# Edit the INSTALLLOC varible to point to your mod folder
# Update REPO URL if needed then
# chmod u+x nameofscript
# issue ./nameofthisscript modname
#
# Example:
# ./mtmodinstall.sh industrial

mtmodinstall-git:
# How to use:
# Edit the INSTALLLOC varible to point to your mod folder
# chmod u+x nameofscript
# issue ./nameofthisscript modname
#
# Example:
# ./mtmodinstall-git.sh industrial


packmod-7z:
# Packs your mod to work with the modinstaller script included here
#
# How to use:
# chmod u+x scriptname
# then
# ./scriptname modname modname_version
#
# Example:
# ./packmod-7z.sh industrial industrial_0.0.5
#
# IMPORTANT: your mod folder must be properly named
# such as industrial and not industrial-master or anything else

packmod-zip:
# Packs your mod to work with the modinstaller script included here
#
# How to use:
# chmod u+x scriptname
# then
# ./scriptname modname modname_version
#
# Example:
# ./packmod-zip.sh industrial industrial_0.0.5
#
# IMPORTANT: your mod folder must be properly named
# such as industrial and not industrial-master or anything else

make-packageslist:
Just run it to make a packages.txt


Download: https://github.com/TheZenKitteh/minetest-bashmodinstaller/archive/master.zip
Source: https://github.com/TheZenKitteh/minetest-bashmodinstaller
License: https://github.com/TheZenKitteh/minetest-bashmodinstaller/blob/master/LICENSE.txt

For the Windows based installer go here:
http://forum.minetest.net/viewtopic.php?pid=64225
Last edited by RAPHAEL on Sun Jan 27, 2013 22:04, edited 1 time in total.
"Before you speak, ask yourself: Is it kind, is it true, is it necessary, does it improve upon the silence?"
My mods: http://goo.gl/n4kpn
(Currently Various, Industrial, Fakeblocks, Jail, MoarCraft, Christmas, Replicator, minetest dev installer for linux, bash mod installer, windows mod installer)
 

madarexxx
Member
 
Posts: 144
Joined: Sat Aug 04, 2012 06:49

by madarexxx » Wed Jan 16, 2013 14:07

mmm sounds nice, but what about windows compatibility? minetest has built in support of CURL library, AFAIK it has support of downloading files under windows. IMHO repo with mods must be in default minetest on all platforms.
Sorry for my bad English, please help me learn it - correct my worst mistakes :)
 

User avatar
RAPHAEL
Member
 
Posts: 627
Joined: Tue Nov 01, 2011 09:09

by RAPHAEL » Wed Jan 16, 2013 17:39

madarexxx wrote:mmm sounds nice, but what about windows compatibility? minetest has built in support of CURL library, AFAIK it has support of downloading files under windows. IMHO repo with mods must be in default minetest on all platforms.


I agree there should be windows compatability, however seems nobody is working on anything like this installer in c++ and I use linux as well as a lot of minetest users. Maybe this will get someone with the needed coding skills/time to get off their arse and one up me lol.

I have a windows install but I almost never use it (once every few months is about it). However I may see what is possible with windows with time if nobody else comes up with a windows mod installer before then.
Last edited by RAPHAEL on Wed Jan 16, 2013 17:39, edited 1 time in total.
"Before you speak, ask yourself: Is it kind, is it true, is it necessary, does it improve upon the silence?"
My mods: http://goo.gl/n4kpn
(Currently Various, Industrial, Fakeblocks, Jail, MoarCraft, Christmas, Replicator, minetest dev installer for linux, bash mod installer, windows mod installer)
 

Ragnar
Member
 
Posts: 850
Joined: Thu Oct 25, 2012 15:19

by Ragnar » Wed Jan 16, 2013 19:20

i think the mod should use atleast 1 .zip archive, so that some users, that dont use other extracters wont have to install a new extracter just to use this mod :/
Are you saying that I put an abnormal brain into a seven and a half foot long, fifty-four inch wide GORILLA?
 

User avatar
RAPHAEL
Member
 
Posts: 627
Joined: Tue Nov 01, 2011 09:09

by RAPHAEL » Thu Jan 17, 2013 07:19

Seems the poll is fairly divided still... Why do people not like tar.bz2?
"Before you speak, ask yourself: Is it kind, is it true, is it necessary, does it improve upon the silence?"
My mods: http://goo.gl/n4kpn
(Currently Various, Industrial, Fakeblocks, Jail, MoarCraft, Christmas, Replicator, minetest dev installer for linux, bash mod installer, windows mod installer)
 

4aiman
Member
 
Posts: 1208
Joined: Mon Jul 30, 2012 05:47

by 4aiman » Thu Jan 17, 2013 08:02

If it's about linux only then tar.gz. Voted for that.
But if we would talk about all OSes then zip+some other format should do.
Maybe there can be an option to prefer some type of the archive and a note that will tell user he/she lacks smth to unpack a mod? And maybe some GUI, cause those things would be easier to display on form then in a terminal emulator? I can make a prototype if anyone is interested.
Last edited by 4aiman on Thu Jan 17, 2013 08:02, edited 1 time in total.
 

User avatar
Calinou
Member
 
Posts: 3124
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou

by Calinou » Thu Jan 17, 2013 08:05

RAPHAEL wrote:Seems the poll is fairly divided still... Why do people not like tar.bz2?


Not everyone has an i7. :-)

Voted zip, it's an universal formats. Minetest mods are small anyway.
 

User avatar
kaeza
Member
 
Posts: 2141
Joined: Thu Oct 18, 2012 05:00
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza

by kaeza » Thu Jan 17, 2013 08:35

For me, it's ZIP. As calinou pointed, it's more universal. I'd like to say you don't need an i7 to uncompress BZip2 files; my old P2 @333MHz did a superb job at that :)
The problem with bz2 is compression; *not* decompression.
Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!

Check out my stuff! | Donations greatly appreciated! PayPal | BTC: 1DFZAa5VtNG7Levux4oP6BuUzr1e83pJK2
 

User avatar
RAPHAEL
Member
 
Posts: 627
Joined: Tue Nov 01, 2011 09:09

by RAPHAEL » Thu Jan 17, 2013 08:48

To help end the mod archive wars this installer has been updated.

The changes, it now has a packmod-7z.sh and packmod-zip.sh and both zip and 7z work with the installer (as well as any other format 7z handles).
"Before you speak, ask yourself: Is it kind, is it true, is it necessary, does it improve upon the silence?"
My mods: http://goo.gl/n4kpn
(Currently Various, Industrial, Fakeblocks, Jail, MoarCraft, Christmas, Replicator, minetest dev installer for linux, bash mod installer, windows mod installer)
 

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

by rubenwardy » Thu Jan 17, 2013 17:00

Does it support Minetest Extensions repo?
 

User avatar
Likwid H-Craft
Member
 
Posts: 1113
Joined: Sun Jan 06, 2013 14:20

by Likwid H-Craft » Thu Jan 17, 2013 17:04

Zip is the best use since it free, and you don't need Download a Software to use a zip file or open it.
My Domain's/others:
http://likwidtest.hj.cx/ (Not Done)
 

User avatar
RAPHAEL
Member
 
Posts: 627
Joined: Tue Nov 01, 2011 09:09

by RAPHAEL » Thu Jan 17, 2013 18:27

rubenwardy wrote:Does it support Minetest Extensions repo?

No but will look into it.

Likwid H-Craft wrote:Zip is the best use since it free, and you don't need Download a Software to use a zip file or open it.

That is only true on Windows. Most Linux users have to install support for zip if they want to use zip archives. This is probably why theres so much debate on the topic of zip or 7z or tar.gz or tar.bz2 etc. The inclusion of 7zip in this installer helps make this a non issue if you use this installer. It doesn't require you to have anything installed to pack/unpack mods no matter the format (except rar, mods packed in rar should be thrown out lol)
"Before you speak, ask yourself: Is it kind, is it true, is it necessary, does it improve upon the silence?"
My mods: http://goo.gl/n4kpn
(Currently Various, Industrial, Fakeblocks, Jail, MoarCraft, Christmas, Replicator, minetest dev installer for linux, bash mod installer, windows mod installer)
 

User avatar
RAPHAEL
Member
 
Posts: 627
Joined: Tue Nov 01, 2011 09:09

by RAPHAEL » Fri Jan 18, 2013 00:00

Moved mod repo to its own repository and updated installer/post to reflect change.
"Before you speak, ask yourself: Is it kind, is it true, is it necessary, does it improve upon the silence?"
My mods: http://goo.gl/n4kpn
(Currently Various, Industrial, Fakeblocks, Jail, MoarCraft, Christmas, Replicator, minetest dev installer for linux, bash mod installer, windows mod installer)
 

User avatar
RAPHAEL
Member
 
Posts: 627
Joined: Tue Nov 01, 2011 09:09

by RAPHAEL » Sun Jan 27, 2013 22:05

Bash mod installer with git support added. See first post.
"Before you speak, ask yourself: Is it kind, is it true, is it necessary, does it improve upon the silence?"
My mods: http://goo.gl/n4kpn
(Currently Various, Industrial, Fakeblocks, Jail, MoarCraft, Christmas, Replicator, minetest dev installer for linux, bash mod installer, windows mod installer)
 


Return to WIP Mods

Who is online

Users browsing this forum: No registered users and 16 guests

cron