feat(deploy): retrieve Falukant models from Git LFS
Some checks failed
Deploy to production / deploy (push) Failing after 1m27s
Some checks failed
Deploy to production / deploy (push) Failing after 1m27s
This commit is contained in:
@@ -5,6 +5,8 @@
|
||||
* Voraussetzung: npm install (@gltf-transform/cli als Dev-Dep)
|
||||
*
|
||||
* Aufruf: npm run optimize-models
|
||||
* Optional können MODEL_SOURCE_DIR und MODEL_OUTPUT_DIR gesetzt werden, um
|
||||
* Modelle aus dem separaten YourPart3Assets-Repository zu verarbeiten.
|
||||
*/
|
||||
|
||||
import fs from 'fs';
|
||||
@@ -13,8 +15,10 @@ import { fileURLToPath } from 'url';
|
||||
import path from 'path';
|
||||
|
||||
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
||||
const sourceDir = path.join(__dirname, '..', 'models-src', '3d', 'falukant', 'characters');
|
||||
const outputDir = path.join(__dirname, '..', 'public', 'models', '3d', 'falukant', 'characters');
|
||||
const defaultSourceDir = path.join(__dirname, '..', 'models-src', '3d', 'falukant', 'characters');
|
||||
const defaultOutputDir = path.join(__dirname, '..', 'public', 'models', '3d', 'falukant', 'characters');
|
||||
const sourceDir = path.resolve(process.env.MODEL_SOURCE_DIR || defaultSourceDir);
|
||||
const outputDir = path.resolve(process.env.MODEL_OUTPUT_DIR || defaultOutputDir);
|
||||
const cli = path.join(__dirname, '..', 'node_modules', '.bin', 'gltf-transform');
|
||||
|
||||
function listSourceModels() {
|
||||
|
||||
Reference in New Issue
Block a user