Download
(94 Kb)
Download
Updated: 05/26/23 01:18 PM
Compatibility:
Necrom (9.0.0)
Updated:05/26/23 01:18 PM
Created:02/25/19 05:15 PM
Monthly downloads:18
Total downloads:2,494
Favorites:1
MD5:
esoui-publish
Version: 2.1.13
by: AlbinoPython [More]
esoui-publish
A simple node utility that will publish addons to ESOUI.
  • I do not recommend installing from esoui. This only contains the source code and would need to be built. I recommend installing this utility from NPMJS.
  • You can find the latest source code at Azure DevOps

Setup
Install
  • Generate an ESOUI access token. They can be generated here. Tokens are like passwords. Make sure to keep them secure.
  • Code:
    npm install -g esoui-publish
Prepare
  • Recommend setting the `ESOUI_TOKEN` environment variable so you do not have to store it in code or use it on the command line.
  • The addon description and changelog can be read from files. If no files are provided the main add on page will not be affected.
  • Any missing arguments will result in no change to that attribute.
  • The `testDeploy` argument will test your upload against https://api.esoui.com/addons/updatetest which will verify your upload will be accepted.

Run
Command Line
Code:
esoui-publish --id=2272 --description='esoui-description.txt' --changelog='esoui-changelog.txt' --compatibility='5.2.5' --updateFile=esoui-publish-1514.zip --testDeploy=true
JavaScript
Code:
const EsouiPublish = require('esoui-publish').EsouiPublish;
const params = {
  id: 2272,
  version: '1.0.0',
  description: 'esoui-description.txt',
  changelog: 'esoui-changelog.txt',
  compatibility: '5.2.5',
  updateFile: 'esoui-publish.zip',
  testDeploy: true // Remove or set to false to publish for real.
};

new EsouiPublish(process.env.ESOUI_TOKEN, params).createUpdatePackageAndUpdate()
  .then(response => console.log(JSON.stringify(response, null, 2)))
  .catch(error => console.log(error));
26 May 2023
  • Update links in package.json and readme

6 December 2019
  • Use correct repository in package.json

20 November 2019
  • Don't publish .git folder

19 November 2019
  • Vulnerability fix

18 November 2019
  • Migrated to Typescript
  • Added command line utility
  • Update docs
Optional Files (0)


Archived Files (5)
File Name
Version
Size
Uploader
Date
2.1.11
53kB
AlbinoPython
12/06/19 10:49 AM
2.1.10
53kB
AlbinoPython
11/20/19 10:00 PM
2.1.8
250kB
AlbinoPython
11/19/19 09:04 PM
2.1.7
200kB
AlbinoPython
11/18/19 11:35 PM
1.0.0
41kB
02/25/19 05:15 PM


There have been no comments posted to this file.
Be the first to add one.



Category Jump: