mirror of
https://github.com/EmulatorJS/EmulatorJS.git
synced 2026-02-06 11:17:36 +00:00
Refactor progress event handlers to use arrow functions for consistency
This commit is contained in:
parent
8cf9114b9d
commit
9408a61c35
8
build.js
8
build.js
@ -61,9 +61,9 @@ if (!build_type) {
|
||||
Seven.add(`dist/${version}.7z`, './', {
|
||||
$raw: ['-xr@dist/.ignore'],
|
||||
$progress: true
|
||||
}).on('progress', function (progress) {
|
||||
}).on('progress', (progress) => {
|
||||
progressData['7z'] = progress.percent;
|
||||
}).on('end', function() {
|
||||
}).on('end', () => {
|
||||
progressData['7z'] = 100;
|
||||
|
||||
});
|
||||
@ -71,9 +71,9 @@ if (!build_type) {
|
||||
Seven.add(`dist/${version}.zip`, './', {
|
||||
$raw: ['-xr@dist/.ignore'],
|
||||
$progress: true
|
||||
}).on('progress', function (progress) {
|
||||
}).on('progress', (progress) => {
|
||||
progressData['zip'] = progress.percent;
|
||||
}).on('end', function() {
|
||||
}).on('end', () => {
|
||||
progressData['zip'] = 100;
|
||||
});
|
||||
} else if (build_type !== "emulatorjs" && build_type !== "cores" && build_type !== "get-cores") {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user