Added download script for blender

This commit is contained in:
2022-06-15 00:55:18 +02:00
parent c8c06c42bc
commit 4d84861b62
6 changed files with 71 additions and 16 deletions

View File

@@ -6,6 +6,15 @@ export const SettingPath = path.join(dataPath, "settings.xml");
export const defaultOutputPath = path.join(app.getPath('videos'), "StickExporterTX");
export const blenderPath = path.join("assets", "blender", "blender");
export const templatePath = path.join("assets", "template.blend");
export const blenderScriptPath = path.join("assets", "blenderScript.py");
let platformFolder = "";
if(process.platform === "win32"){
platformFolder = "windows";
} else if(process.platform === "darwin"){
platformFolder = "darwin";
} else if(process.platform === "linux"){
platformFolder = "linux";
}
export const blenderPath = path.join("dependencies", platformFolder, "blender", "blender");
export const templatePath = path.join("dependencies", "template.blend");
export const blenderScriptPath = path.join("dependencies", "blenderScript.py");