@nexrender/core 1.42.2 → 1.43.0
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.
- package/package.json +2 -2
- package/src/tasks/render.js +20 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nexrender/core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.43.0",
|
|
4
4
|
"main": "src/index.js",
|
|
5
5
|
"author": "Inlife",
|
|
6
6
|
"scripts": {
|
|
@@ -30,5 +30,5 @@
|
|
|
30
30
|
"publishConfig": {
|
|
31
31
|
"access": "public"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "5a13aa8b32ad67c24100311be671224cfdb525a2"
|
|
34
34
|
}
|
package/src/tasks/render.js
CHANGED
|
@@ -7,7 +7,7 @@ const progressRegex = /([\d]{1,2}:[\d]{2}:[\d]{2}:[\d]{2})\s+(\(\d+\))/gi;
|
|
|
7
7
|
const durationRegex = /Duration:\s+([\d]{1,2}:[\d]{2}:[\d]{2}:[\d]{2})/gi;
|
|
8
8
|
const startRegex = /Start:\s+([\d]{1,2}:[\d]{2}:[\d]{2}:[\d]{2})/gi;
|
|
9
9
|
const nexrenderErrorRegex = /Error:\s+(nexrender:.*)$/gim;
|
|
10
|
-
const errorRegex =
|
|
10
|
+
const errorRegex = /aerender Error:\s*(.*)$/gis;
|
|
11
11
|
|
|
12
12
|
const option = (params, name, ...values) => {
|
|
13
13
|
if (values !== undefined) {
|
|
@@ -29,12 +29,30 @@ module.exports = (job, settings) => {
|
|
|
29
29
|
let params = [];
|
|
30
30
|
let outputFile = expandEnvironmentVariables(job.output)
|
|
31
31
|
let projectFile = expandEnvironmentVariables(job.template.dest)
|
|
32
|
+
let logPath = path.resolve(job.workpath, `../aerender-${job.uid}.log`)
|
|
33
|
+
|
|
34
|
+
if (process.env.NEXRENDER_ENABLE_AELOG_PROJECT_FOLDER) {
|
|
35
|
+
logPath = path.join(job.workpath, `aerender.log`)
|
|
36
|
+
settings.logger.log(`[${job.uid}] setting aerender log path to project folder: ${logPath}`);
|
|
37
|
+
} else if (process.env.NEXRENDER_ENABLE_AELOG_LEGACY_TEMP_FOLDER) {
|
|
38
|
+
settings.logger.log(`[${job.uid}] setting aerender log path to temp folder: ${logPath}`);
|
|
39
|
+
} else {
|
|
40
|
+
settings.logger.log(`[${job.uid}] -- D E P R E C A T I O N: --
|
|
41
|
+
|
|
42
|
+
nexrender is changing the default aerender log path to the project folder.
|
|
43
|
+
This is done to streamline the log management and enable efficient log cleanup.
|
|
44
|
+
|
|
45
|
+
If you want to keep the old behavior and mute this message, please set the environment variable NEXRENDER_ENABLE_AELOG_LEGACY_TEMP_FOLDER to true.
|
|
46
|
+
If you want to switch to the new behavior, please set the environment variable NEXRENDER_ENABLE_AELOG_PROJECT_FOLDER to true.
|
|
47
|
+
|
|
48
|
+
Right now, the old behavior is still the default, but this will change in the next minor releases.
|
|
49
|
+
Estimated date of change to the new behavior: 2023-06-01.\n`);
|
|
50
|
+
}
|
|
32
51
|
|
|
33
52
|
const outputFileAE = checkForWSL(outputFile, settings)
|
|
34
53
|
projectFile = checkForWSL(projectFile, settings)
|
|
35
54
|
let jobScriptFile = checkForWSL(job.scriptfile, settings)
|
|
36
55
|
|
|
37
|
-
|
|
38
56
|
// setup parameters
|
|
39
57
|
params.push('-project', projectFile);
|
|
40
58
|
params.push('-comp', job.template.composition);
|
|
@@ -140,7 +158,6 @@ module.exports = (job, settings) => {
|
|
|
140
158
|
}
|
|
141
159
|
|
|
142
160
|
const output = [];
|
|
143
|
-
const logPath = path.resolve(job.workpath, `../aerender-${job.uid}.log`)
|
|
144
161
|
const instance = spawn(settings.binary, params, {
|
|
145
162
|
windowsHide: true
|
|
146
163
|
// NOTE: disabled PATH for now, there were a few
|