Giter VIP home page Giter VIP logo

1mb's People

Contributors

456dev avatar mrcrazys avatar mrfloris avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

1mb's Issues

Backup spigot-1.16.1.jar if found?

If we get to the point where we are going to actually go ahead with the script and try to make a new spigot-1.16.1.jar, we should (just like in updatepaper script) maybe rename spigot-1.16.1.jar to spigot-1.16.1._jar

That way if the new jar turns out to be problematic than we can roll back to the latest working version.
And this would also be the first step to allowing to run buildtools from the same dir where we run the jars from.

When wget is used, it spits out stuff

curl is quiet, but wget still spits out stuff.
Might be an idea to make wget silent/quiet as well.
Maybe if verbose is true, then curl/wget could spit out stuff, otherwise.. stay quiet?
Screenshot 2020-07-30 at 10 20 13

[1MB-minecraft.sh] Check if tmux is installed when screen isn't

tmux and screen are both not installed on ubuntu 20 by default, tmux isn't by default on macOS Catalina.
I personally prefer screen, so leaning towards that. Checking for it first, but tmux is more modern and ppl prefer it sometimes.

Anyway, check if it's there, before going to the next step

Make issue templates?

For the differnet scipts?
or just bug + feature, and include a section to say what script its for

Support running from the dir where we run the server

There's a risk when (auto) updating the jar file while jar with the same name is already being used and running live. That's why i always strongly recommend to run this buildtools script from a completely empty new directory instead of on a live server.

People don't read, and that means they ignore the advice and probably just dump it in the same dir and run it, even without backing up or /stop the server.

We can help with this, maybe check if we can find a server.properties and assume we're running from such a directory. And if there's an existing jar file that we back that up. Or halt the script or something.

Requires a bit of thinking, considering, .. not sure what direction I want to go at the moment.

Handling old, current, new, pause and check for latest

Currently it checks only for the version json of the _minecraftVersion we set manually in the buildtools script, if it can't find it - it stops the script. If it can find it, it will compare it against our cache, and if mismatches.. it asks if we are certain we wish to continue. And otherwise it just continues comparing versions (and perhaps it figures out if there's a new jar to make)

What it doesn't do is check against latest, it just says (Script Halted!) Failed to get version from https://hub.spigotmc.org/stash/projects/SPIGOT/repos/builddata/raw/info.json, quitting script! It could say: build a jar using --1.16.1 instead? (and read user input for y/n key)

java -jar BuildTools.jar --rev latest

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.