diff --git a/package-lock.json b/package-lock.json index 4b55636..d0c08ae 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,7 +14,6 @@ "electron-squirrel-startup": "^1.0.0", "electron-updater": "^5.0.1", "is-valid-path": "^0.1.1", - "platform-folders": "^0.6.0", "react": "^18.1.0", "react-dom": "^18.1.0", "xml-formatter": "^2.6.1" @@ -3666,14 +3665,6 @@ "node": ">=8" } }, - "node_modules/bindings": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/bindings/-/bindings-1.5.0.tgz", - "integrity": "sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ==", - "dependencies": { - "file-uri-to-path": "1.0.0" - } - }, "node_modules/bluebird": { "version": "3.7.2", "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz", @@ -6110,11 +6101,6 @@ "node": "^10.12.0 || >=12.0.0" } }, - "node_modules/file-uri-to-path": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz", - "integrity": "sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw==" - }, "node_modules/filelist": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/filelist/-/filelist-1.0.4.tgz", @@ -8526,18 +8512,6 @@ "node": ">=8" } }, - "node_modules/platform-folders": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/platform-folders/-/platform-folders-0.6.0.tgz", - "integrity": "sha512-CzaJGN1cbL6kwkge7zM7VbXr/L0Qjkg2Z4IzcprziHHSw8y73oORfB9pMLwjAIhb8JcWUemmWvTXAXvc5hnVlg==", - "hasInstallScript": true, - "dependencies": { - "bindings": "^1.5.0" - }, - "engines": { - "node": "^8.16.0 || >=10" - } - }, "node_modules/plist": { "version": "3.0.5", "resolved": "https://registry.npmjs.org/plist/-/plist-3.0.5.tgz", @@ -13765,14 +13739,6 @@ "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", "dev": true }, - "bindings": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/bindings/-/bindings-1.5.0.tgz", - "integrity": "sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ==", - "requires": { - "file-uri-to-path": "1.0.0" - } - }, "bluebird": { "version": "3.7.2", "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz", @@ -15649,11 +15615,6 @@ "flat-cache": "^3.0.4" } }, - "file-uri-to-path": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz", - "integrity": "sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw==" - }, "filelist": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/filelist/-/filelist-1.0.4.tgz", @@ -17414,14 +17375,6 @@ } } }, - "platform-folders": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/platform-folders/-/platform-folders-0.6.0.tgz", - "integrity": "sha512-CzaJGN1cbL6kwkge7zM7VbXr/L0Qjkg2Z4IzcprziHHSw8y73oORfB9pMLwjAIhb8JcWUemmWvTXAXvc5hnVlg==", - "requires": { - "bindings": "^1.5.0" - } - }, "plist": { "version": "3.0.5", "resolved": "https://registry.npmjs.org/plist/-/plist-3.0.5.tgz", diff --git a/package.json b/package.json index 6c2250f..f016011 100644 --- a/package.json +++ b/package.json @@ -102,7 +102,6 @@ "electron-squirrel-startup": "^1.0.0", "electron-updater": "^5.0.1", "is-valid-path": "^0.1.1", - "platform-folders": "^0.6.0", "react": "^18.1.0", "react-dom": "^18.1.0", "xml-formatter": "^2.6.1" diff --git a/src/components/paths.ts b/src/components/paths.ts index 2de121c..183b148 100644 --- a/src/components/paths.ts +++ b/src/components/paths.ts @@ -1,11 +1,10 @@ import path from 'path'; import {app} from '@electron/remote'; -import getPath from 'platform-folders'; export const dataPath = app.getPath('userData'); export const SettingPath = path.join(dataPath, "settings.xml"); -export const defaultOutputPath = path.join(getPath('videos') || "", "StickExporterTX"); +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");