versionchangedeprecated

Changing GMS Project Version

Usage no npm install needed!

<script type="module">
  import versionchange from 'https://cdn.skypack.dev/versionchange';
</script>

README

Installation

npm -i versionchange

Summary

This is a convenience module that syncs the version number across all platform options of a GMS 2 project.

JS Module Usage

const {versionChange} = require("versionchange");
const newVersion = "1.3.4"; //Use semver format
const yypPath = `path/to/gms2proj.yyp`
versionChange(newVersion,yypPath).then(()=>{
    console.log("All platform versions are changed to", newVersion, "for", yypPath);
});

Note that the module name is all lower case and the function name is camel case.

NPM Script Usage

Add the following entry to your package.json

  "GamePipe": {
    "yyp": "path/to/gms2proj.yyp"
  }

Then use versionChangeAuto.js to sync the version of the package.json to the GMS 2 project by adding node ./node_modules/versionchange/out/versionChangeAuto.js to the npm version or other script.

License

Licensed under MIT