Skip to content

Commit

Permalink
Merge pull request #26 from Chaphasilor/dev
Browse files Browse the repository at this point in the history
Bump ODD to v2.3.1.4
  • Loading branch information
Chaphasilor authored Aug 1, 2022
2 parents a96f915 + 2429a3d commit 9c171e8
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 11 deletions.
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 |
| --- | --- | --- |
| **7.0.0** | **2.2.0.1-2.2.0.2** | **2.2.0.2** |
| **8.0.0** | **v2.3.1.4+** | **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 |
| 6.1.0 | 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.2.0.2`,
releaseId: `54034158`
version: `v2.3.1.4`,
releaseId: `73286674`
}
module.exports.OpenDirectoryDownloaderFolder = `${__dirname}/ODD`
module.exports.OpenDirectoryDownloaderOutputFolderName = `Scans`
Expand Down
13 changes: 7 additions & 6 deletions install.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,27 +10,28 @@ const architecture = process.arch
console.info(`Fetching release assets from GitHub...`)
fetch(`${CONFIG.GitHubReleasesUrl}/${CONFIG.OpenDirectoryDownloaderVersion.releaseId}/assets`).then(res => res.json()).then(assets => {

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

if (architecture === `arm` && platform === `linux`) {

releaseName = `OpenDirectoryDownloader-linux-arm-self-contained.zip`
releaseName = `OpenDirectoryDownloader-${version}-linux-arm-self-contained.zip`

} else if (architecture === `arm64` && platform === `linux`) {

releaseName = `OpenDirectoryDownloader-linux-arm64-self-contained.zip`
releaseName = `OpenDirectoryDownloader-${version}-linux-arm64-self-contained.zip`

} else if (architecture === `x64` && platform === `linux`) {

releaseName = `OpenDirectoryDownloader-linux-x64-self-contained.zip`
releaseName = `OpenDirectoryDownloader-${version}-linux-x64-self-contained.zip`

} else if (architecture === `x64` && platform === `darwin`) {

releaseName = `OpenDirectoryDownloader-osx-x64-self-contained.zip`
releaseName = `OpenDirectoryDownloader-${version}-osx-x64-self-contained.zip`

} else if (architecture === `x64` && platform === `win32`) {

releaseName = `OpenDirectoryDownloader-win-x64-self-contained.zip`
releaseName = `OpenDirectoryDownloader-${version}-win-x64-self-contained.zip`

} else {
throw new Error(`Platform '${platform}' on architecture '${architecture}' is not supported by OpenDirectoryDownloader :(\nYou could try requesting support for it at https://github.com/KoalaBear84/OpenDirectoryDownloader ...`)
Expand Down Expand Up @@ -110,4 +111,4 @@ fetch(`${CONFIG.GitHubReleasesUrl}/${CONFIG.OpenDirectoryDownloaderVersion.relea

}).catch(err => {
throw new Error(`Failed to retrieve OpenDirectoryDownloader executable from GitHub: ${err}`)
})
})
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": "7.0.0",
"version": "8.0.0",
"description": "A NodeJS wrapper around KoalaBear84/OpenDirectoryDownloader",
"main": "open-directory-downloader.js",
"scripts": {
Expand Down

0 comments on commit 9c171e8

Please sign in to comment.