Skip to content

Commit

Permalink
Added 2.0.10 to changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
shannah committed Dec 14, 2021
1 parent b76a241 commit ed372d9
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
## Changes

### Version 2.0.10

December 14, 2021

- Fixed issue with downloading JDK on each run

### Version 2.0.9

December 14, 2021
Expand Down
2 changes: 1 addition & 1 deletion build/built-jar.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#Tue, 14 Dec 2021 07:42:44 -0800
#Tue, 14 Dec 2021 08:44:17 -0800


/Users/shannah/cn1_files/jdeploy=
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jdeploy",
"version": "2.0.9",
"version": "2.0.10",
"repository": "https://github.com/shannah/jdeploy",
"description": "Deploy java apps using NPM",
"main": "index.js",
Expand Down
4 changes: 2 additions & 2 deletions src/ca/weblite/jdeploy/jdeploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ var getDirectories = dirPath => fs.readdirSync(dirPath).filter(

function getEmbeddedJavaHome() {
var _platform = os.platform();
var _driver;
var _driver = '';
switch (_platform) {
case 'darwin': _platform = 'macosx'; _driver = 'Contents' + path.sep + 'Home'; break;
case 'win32': _platform = 'windows'; _driver = ''; break;
Expand All @@ -309,7 +309,7 @@ function getEmbeddedJavaHome() {
fail('unsupported platform: ' + _platform);
}

var jreDir = path.join(os.homedir(), '.jdeploy', 'jre', javaVersionString);
var jreDir = path.join(os.homedir(), '.jdeploy', 'jre', javaVersionString, 'jre');

try {
return jreDir + path.sep + getDirectories(jreDir)[0] + (_driver ? (path.sep + _driver) : '');
Expand Down

0 comments on commit ed372d9

Please sign in to comment.