Skip to content

GrandeOmega-patcher v1.0.0

Compare
Choose a tag to compare
@Matthbo Matthbo released this 25 Jan 23:00
· 19 commits to master since this release

Features added in this release

  • Downloader to download & unzip grandeomega (mac version)
  • Patcher that updates GO's needed dependencies & removes the ones not needed
  • Support to be run as; Node.js application, Node.js dependency & CLI tool

Install as cli tool

  1. Make sure you have Node.js v10+
  2. Install using npm i -g grandeomega-patcher
  3. Open a CMD/Powershell/Terminal window
  4. Go to a folder containing Grande Omega
  5. Run using go-patcher or gopatcher

Install as Node.js application

  1. Make sure you have Node.js v10+
  2. Download / clone this repo
  3. Install dependencies using npm install (or npm i for short)
  4. Run using npm start

Use as a Node.js dependency

  1. Install using npm i grandeomega-patcher
  2. Import using commonjs
    goPatcher = require("grandeomega-patcher")
    Or with ES6 imports
    import { patcher, Downloader } from "grandeomega-patcher"
  3. How to use
    // Downloader
    const dl = new Downloader(/* outDir: string, goDir: string */);
    await dl.downloadFile(/* url: string */);
    dl.unzipFile();
    
    // Static cleanup function
    await Downloader.cleanUp(/* outDir: string, handleError?: (error: Error) => void */);
    
    // Patcher
    await patcher(/* goDir: string */);