A simple update-checker module.
NPM | Licance | Discord |
---|---|---|
$ npm install xapier
$ xapier <parameter>
Parameter | Args | Description |
---|---|---|
-c -r & -a |
github.com/user/repo <optional: -r> <optional: -a> |
*Create app's version. |
-u |
1.0.1 |
*Update your app's version. (Default version 1.0.0) |
Example: If you write xapier -c githubadress -r -a
It'll automaticly install the latest version of your app but you don't have to use -r
& a
.
This one is so basic. If you write xapier -u <new version that newer than oldest>
it'll change the app's version. If you want more example:
Before you wrote command
{
"version": "1.0.0"
}
After
{
"version": "1.0.1"
}
const xapier = require("xapier")
xapier.Check( // All of these are optional
"yourrelase.zip",//file
true,//Auto update after download
"node ."//The command to run after updated
pid // PID Number with number
)
If you enter these informations, First it'll close the application, than download latest relase from your github page than install files. Finally it'll run the command you wrote.
If the current version is older than latest than it'll direct you to github page.
xapier.Ignore(); // Just returns
If you wanna report an issue or smth. you can contact us via Discord or you can commit a Issue on GitHub
- @valancess Coder & Developer.
- @YiitWT Coder & Developer.