Skip to content

Commit

Permalink
Merge pull request #28 from Chaphasilor/dev
Browse files Browse the repository at this point in the history
Bump ODD to v2.4.4.1
  • Loading branch information
Chaphasilor authored Aug 10, 2022
2 parents 4ad33d8 + 821d9ff commit 7e3efd7
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -112,3 +112,4 @@ test.js
ODD
Scans/
out.txt
debug.js
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ indexer.scanUrl(url)
| Wrapper Version | Supported ODD Versions (up to) | Included Version |
| --- | --- | --- |
| **8.0.0** | **v2.3.1.4+** | **v2.3.1.4** |
| **8.0.2** | **v2.4.4.1+** | **v2.4.4.1** |
| 8.0.0 | v2.4.4.1+ | v2.3.1.4 |
| 7.0.0 | 2.2.0.1-2.2.0.2 | 2.2.0.2 |
| 6.2.0 | 2.1.0.8 | 2.1.0.8 |
| 6.1.2 | 2.1.0.0 | 2.1.0.0 |
Expand Down
4 changes: 2 additions & 2 deletions config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ module.exports = {}

module.exports.GitHubReleasesUrl = `https://api.github.com/repos/KoalaBear84/OpenDirectoryDownloader/releases`
module.exports.OpenDirectoryDownloaderVersion = {
version: `v2.3.1.4`,
releaseId: `73286674`
version: `v2.4.4.1`,
releaseId: `74008221`
}
module.exports.OpenDirectoryDownloaderFolder = `${__dirname}/ODD`
module.exports.OpenDirectoryDownloaderOutputFolderName = `Scans`
Expand Down
7 changes: 6 additions & 1 deletion install.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@ const architecture = process.arch

console.info(`Fetching release assets from GitHub...`)
fetch(`${CONFIG.GitHubReleasesUrl}/${CONFIG.OpenDirectoryDownloaderVersion.releaseId}/assets`).then(res => res.json()).then(assets => {


if (assets?.message?.includes(`API rate limit exceeded`)) {
console.error(`GitHub API rate limit exceeded, cannot fetch OpenDirectoryDownloader executable!`)
process.exit(1)
}

const version = CONFIG.OpenDirectoryDownloaderVersion.version.match(/^v?(\d+\.\d+\.\d+\.\d+)$/)[1]
let releaseName

Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "open-directory-downloader",
"version": "8.0.1",
"version": "8.0.2",
"description": "A NodeJS wrapper around KoalaBear84/OpenDirectoryDownloader",
"main": "open-directory-downloader.js",
"scripts": {
Expand Down

0 comments on commit 7e3efd7

Please sign in to comment.