Git Product home page Git Product logo

updatorio's Introduction

Updatorio

Jest coverage

CLI tool for updating Factorio mods on the dedicated server.

๐Ÿ“’ Be attention! This program could corrupt your game files. Don't forget to make a backup.

I added one of the possible values of parameter --semi-versions - beta, because the most mods are in beta state. It allows to update mods with 0.x.x version. But it doesn't guarantee that all be work good.

How to use it?

  1. Installing
    yarn global add updatorio@latest
    
  2. Run
    cd ~/root-server-dir
    updatorio --username=user --pasword="your-super-secret-pawword"
    
  3. Available options
    updatorio --help
    

Developing

For developing add credentials.json with the username and password properties, and start:

yarn start

If you want to support this project you could make a PR or donate:

  • Bitcoin: bc1qmm3la03m7d4s75c9r4ggneuqkyry972xkezr9s
  • Ethereum: 0x224d404007e4193c49e4cC741f519345A2B8168d

TODO

  • Check what version picks from available list
  • Create development environment (dev index file)
  • Fix destination folder for backup (must be serverDir)
  • Let to choose from command line what mods to update via Inquirer
  • Revert backup if an error occurs in the downloading mods process
  • Hide errors under the --verbose flag
  • Look case when there are 2 versions of mod
  • Migrate to 16 Nodejs and update github actions

updatorio's People

Contributors

makvagabo avatar

Stargazers

Mikhail Cheremuhin-Rerberg avatar Vinzenz Sinapius avatar

Watchers

 avatar

updatorio's Issues

Check for auth token before making changes

In main.ts there is code:

await makeBackup(modsFiles, options);

  removeMods(currentModsList, modsAvailableForUpdate, options);

  const authToken = await getAuthToken(options);

  await downloadMods(modsAvailableForUpdate, options, authToken);

I think that it would be better to check for auth token before any manipulations with files. For example, if auth request fails you did backups and removed modes for nothing. You should get auth token as a first step

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.