Resource RuneMate Standalone JAR Updater

Discussion in 'Tutorials & Resources' started by Eagles13, Jun 10, 2016.

  1. Eagles13

    Eagles13 The only thing Alpha about me is my bots

    Joined:
    Sep 22, 2014
    Messages:
    616
    Likes Received:
    180
    If you're like me, you develop on several different platforms & computers, and like to keep your projects self-contained. For this reason, I use the standalone JAR version of RuneMate for day-to-day development, which creates an annoyance - the standalone JAR does not automatically update. To address this, I've written an updater (principally for my own use) which you can find here:

    scripts-and-stuff/RuneMateUpdater.java at master · josh-richardson/scripts-and-stuff · GitHub

    The updater assumes that you put RuneMate.jar in your project root. In order to use the updater effectively, do the following:
    • Create a new class somewhere relevant named RuneMateUpdater (I chose to create a parent updater package and thus my package structure was com.eagles13.updater).
    • Insert the code from GitHub into the class and compile (CTRL+F9 in IntelliJ). You could alternatively just download the raw file from GitHub and use that.
    • Create a new debug configuration in IntelliJ similar to the one below (your packaging will likely be different)[​IMG]
    • Next, on your usual Run Configuration, add a before launch action like so:[​IMG]
     
    Arbiter, AlexH666, Derk and 1 other person like this.
  2. Geashaw

    Joined:
    Jan 8, 2015
    Messages:
    993
    Likes Received:
    170
    I likes dis, daily updates are awesome, updating the client everytime is not.
     
  3. Derk

    Joined:
    Jan 8, 2015
    Messages:
    1,598
    Likes Received:
    582
    Fenks. :^)
     
  4. Party

    Party The Favourite

    Joined:
    Oct 12, 2015
    Messages:
    1,757
    Likes Received:
    564
    TotallyNotARat.jar.exe
     
  5. Eagles13

    Eagles13 The only thing Alpha about me is my bots

    Joined:
    Sep 22, 2014
    Messages:
    616
    Likes Received:
    180
    It's a fucking source you absolute mong of the first order.
     
  6. Party

    Party The Favourite

    Joined:
    Oct 12, 2015
    Messages:
    1,757
    Likes Received:
    564
    TotallyJustASource.jar.exe
     
  7. Eagles13

    Eagles13 The only thing Alpha about me is my bots

    Joined:
    Sep 22, 2014
    Messages:
    616
    Likes Received:
    180
    For anyone wondering, this guy is an example of one of the foremost intellects in the whole of Scotland.
     
    Savior likes this.
  8. Party

    Party The Favourite

    Joined:
    Oct 12, 2015
    Messages:
    1,757
    Likes Received:
    564
    I'm actually going to take that as a compliment, thanks :) :)
     
  9. Arbiter

    Arbiter Mod Automation

    Joined:
    Jul 26, 2013
    Messages:
    2,425
    Likes Received:
    1,006
    Clever solution to a non-issue, but it helps the people too stubborn to do it properly. Thanks.
     
    Mmaaikel and Party like this.
  10. Eagles13

    Eagles13 The only thing Alpha about me is my bots

    Joined:
    Sep 22, 2014
    Messages:
    616
    Likes Received:
    180
    That's a half-assed compliment if ever I heard one. lol.
     

Share This Page

Loading...