mirror of
https://github.com/LinoSchmidt/StickExporterTX.git
synced 2026-03-21 01:51:15 +01:00
Added multiplatform paths support
This commit is contained in:
@@ -32,7 +32,7 @@
|
|||||||
"src/index.build.js",
|
"src/index.build.js",
|
||||||
"src/index.html"
|
"src/index.html"
|
||||||
],
|
],
|
||||||
"extraFiles": [
|
"extraResources": [
|
||||||
"dependencies/template.blend",
|
"dependencies/template.blend",
|
||||||
"dependencies/blenderScript.py"
|
"dependencies/blenderScript.py"
|
||||||
],
|
],
|
||||||
@@ -41,7 +41,7 @@
|
|||||||
"target": [
|
"target": [
|
||||||
"nsis"
|
"nsis"
|
||||||
],
|
],
|
||||||
"extraFiles": [
|
"extraResources": [
|
||||||
{
|
{
|
||||||
"from": "dependencies/windows/",
|
"from": "dependencies/windows/",
|
||||||
"to": "dependencies/windows/",
|
"to": "dependencies/windows/",
|
||||||
@@ -64,7 +64,7 @@
|
|||||||
"deb",
|
"deb",
|
||||||
"rpm"
|
"rpm"
|
||||||
],
|
],
|
||||||
"extraFiles": [
|
"extraResources": [
|
||||||
{
|
{
|
||||||
"from": "dependencies/linux/",
|
"from": "dependencies/linux/",
|
||||||
"to": "dependencies/linux/",
|
"to": "dependencies/linux/",
|
||||||
@@ -80,7 +80,7 @@
|
|||||||
"target": [
|
"target": [
|
||||||
"dmg"
|
"dmg"
|
||||||
],
|
],
|
||||||
"extraFiles": [
|
"extraResources": [
|
||||||
{
|
{
|
||||||
"from": "dependencies/darwin/",
|
"from": "dependencies/darwin/",
|
||||||
"to": "dependencies/darwin/",
|
"to": "dependencies/darwin/",
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ import path from 'path';
|
|||||||
import {app} from '@electron/remote';
|
import {app} from '@electron/remote';
|
||||||
|
|
||||||
export const dataPath = app.getPath('userData');
|
export const dataPath = app.getPath('userData');
|
||||||
|
export const appPath = app.getAppPath().replace("app.asar", "");
|
||||||
export const SettingPath = path.join(dataPath, "settings.xml");
|
export const SettingPath = path.join(dataPath, "settings.xml");
|
||||||
|
|
||||||
export const defaultOutputPath = path.join(app.getPath('videos'), "StickExporterTX");
|
export const defaultOutputPath = path.join(app.getPath('videos'), "StickExporterTX");
|
||||||
@@ -15,6 +16,6 @@ if(process.platform === "win32"){
|
|||||||
platformFolder = "linux";
|
platformFolder = "linux";
|
||||||
}
|
}
|
||||||
|
|
||||||
export const blenderPath = path.join("dependencies", platformFolder, "blender", "blender");
|
export const blenderPath = path.join(appPath, "dependencies", platformFolder, "blender", "blender");
|
||||||
export const templatePath = path.join("dependencies", "template.blend");
|
export const templatePath = path.join(appPath, "dependencies", "template.blend");
|
||||||
export const blenderScriptPath = path.join("dependencies", "blenderScript.py");
|
export const blenderScriptPath = path.join(appPath, "dependencies", "blenderScript.py");
|
||||||
Reference in New Issue
Block a user