ebet-payroll 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var path = require('path');
|
|
4
4
|
var os = require('os');
|
|
5
5
|
var jdeployHomeDir = process.env.JDEPLOY_HOME || path.join(os.homedir(), '.jdeploy');
|
|
6
|
-
var jarName = "payroll-desktop-1.0.
|
|
6
|
+
var jarName = "payroll-desktop-1.0.3.jar";
|
|
7
7
|
var mainClass = "{{MAIN_CLASS}}";
|
|
8
8
|
var classPath = "{{CLASSPATH}}";
|
|
9
9
|
var port = "0";
|
|
@@ -32,16 +32,6 @@ function njreWrap() {
|
|
|
32
32
|
const yauzl = require('yauzl')
|
|
33
33
|
const tar = require('tar')
|
|
34
34
|
|
|
35
|
-
function cleanupDir (dir) {
|
|
36
|
-
try {
|
|
37
|
-
if (fs.existsSync(dir)) {
|
|
38
|
-
fs.rmSync(dir, { recursive: true, force: true })
|
|
39
|
-
}
|
|
40
|
-
} catch (e) {
|
|
41
|
-
// Ignore cleanup errors
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
35
|
function createDir (dir) {
|
|
46
36
|
return new Promise((resolve, reject) => {
|
|
47
37
|
fs.access(dir, err => {
|
|
@@ -288,7 +278,7 @@ function njreWrap() {
|
|
|
288
278
|
|
|
289
279
|
Object.keys(options).forEach(key => { url += key + '=' + options[key] + '&' })
|
|
290
280
|
|
|
291
|
-
const tmpdir = path.join(os.tmpdir(), 'njre
|
|
281
|
+
const tmpdir = path.join(os.tmpdir(), 'njre')
|
|
292
282
|
|
|
293
283
|
return fetch(url)
|
|
294
284
|
.then(response => response.json())
|
|
@@ -296,7 +286,6 @@ function njreWrap() {
|
|
|
296
286
|
.then(verify)
|
|
297
287
|
.then(move)
|
|
298
288
|
.then(extract)
|
|
299
|
-
.finally(() => cleanupDir(tmpdir))
|
|
300
289
|
}
|
|
301
290
|
|
|
302
291
|
function installZulu(version = 11, options = {}, arch) {
|
|
@@ -338,7 +327,7 @@ function njreWrap() {
|
|
|
338
327
|
let url = zuluBaseURL;
|
|
339
328
|
Object.keys(q).forEach(key => { url += key + '=' + q[key] + '&' });
|
|
340
329
|
|
|
341
|
-
const tmpdir = path.join(os.tmpdir(), 'njre
|
|
330
|
+
const tmpdir = path.join(os.tmpdir(), 'njre');
|
|
342
331
|
|
|
343
332
|
// Function to handle the download and extraction
|
|
344
333
|
const attemptDownload = (url) => {
|
|
@@ -353,8 +342,7 @@ function njreWrap() {
|
|
|
353
342
|
console.error("Download failed: ", err);
|
|
354
343
|
// Exit with non-zero status code to signal failure to CI/CD systems
|
|
355
344
|
process.exit(1);
|
|
356
|
-
})
|
|
357
|
-
.finally(() => cleanupDir(tmpdir));
|
|
345
|
+
});
|
|
358
346
|
}
|
|
359
347
|
|
|
360
348
|
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"license":"ISC","author":"EBET","bin":{"ebet-payroll":"jdeploy-bundle/jdeploy.js"},"name":"ebet-payroll","description":"EBET Payroll desktop application","files":["jdeploy-bundle"],"main":"index.js","preferGlobal":true,"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"version":"1.0.
|
|
1
|
+
{"license":"ISC","author":"EBET","bin":{"ebet-payroll":"jdeploy-bundle/jdeploy.js"},"name":"ebet-payroll","description":"EBET Payroll desktop application","files":["jdeploy-bundle"],"main":"index.js","preferGlobal":true,"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"version":"1.0.3","jdeploy":{"jdk":false,"checksums":{},"generateLegacyBundles":false,"mainClass":"app.Main","javaVersion":"17","jar":"target/payroll-desktop-1.0.3.jar","javafx":false,"jdeployVersion":"6.0.19","title":"EBET Payroll","commitHash":"ea9b1e0c9628a6bb3398d24f0b9ff3a9508512e7"},"dependencies":{"command-exists-promise":"^2.0.2","node-fetch":"2.6.7","tar":"^4.4.8","yauzl":"^2.10.0","shelljs":"^0.8.4"}}
|