Replaced Windows temp filepaths with linux filepaths
This commit is contained in:
parent
2242eb3079
commit
86eb20d584
|
@ -4,5 +4,11 @@
|
||||||
"path": "../",
|
"path": "../",
|
||||||
"name": "Source Code"
|
"name": "Source Code"
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
|
"extensions": {
|
||||||
|
"recommendations": [
|
||||||
|
"esbenp.prettier-vscode",
|
||||||
|
"dbaeumer.vscode-eslint",
|
||||||
|
]
|
||||||
|
}
|
||||||
}
|
}
|
|
@ -19,7 +19,7 @@ var mp = new MusicPlayer();
|
||||||
// const playlist = new Playlist("Test", "\\\\PAODA-SERVER\\Weeb_Home\\Music")
|
// const playlist = new Playlist("Test", "\\\\PAODA-SERVER\\Weeb_Home\\Music")
|
||||||
// archive.add(null, playlist);
|
// archive.add(null, playlist);
|
||||||
|
|
||||||
const filepath = new Filepath("C:\\Users\\Paoda\\Downloads\\Music");
|
const filepath = new Filepath("/home/paoda/Downloads/Music");
|
||||||
|
|
||||||
(async () => {
|
(async () => {
|
||||||
let list = await filepath.getValidFiles();
|
let list = await filepath.getValidFiles();
|
||||||
|
|
|
@ -71,7 +71,7 @@ export default class Body extends React.Component {
|
||||||
};
|
};
|
||||||
|
|
||||||
if (!Settings.has("tableJSON")) {
|
if (!Settings.has("tableJSON")) {
|
||||||
let tableJSON = await generate("C:\\Users\\Paoda\\Downloads\\Music", template);
|
let tableJSON = await generate("/home/paoda/Downloads/Music", template);
|
||||||
|
|
||||||
console.log("Initialize: ", tableJSON)
|
console.log("Initialize: ", tableJSON)
|
||||||
this.setState({ table: tableJSON });
|
this.setState({ table: tableJSON });
|
||||||
|
|
|
@ -61,7 +61,7 @@ export default class SettingsManager extends Modal {
|
||||||
if (Settings.has("tableJSON")) Settings.set("tableJSON", template);
|
if (Settings.has("tableJSON")) Settings.set("tableJSON", template);
|
||||||
else console.info("There was no Table Saved to Delete!")
|
else console.info("There was no Table Saved to Delete!")
|
||||||
|
|
||||||
const tableJSON = await generate("C:\\Users\\Paoda\\Downloads\\Music", template);
|
const tableJSON = await generate("/home/paoda/Downloads/Music", template);
|
||||||
|
|
||||||
Emitter.emit("newTable", tableJSON);
|
Emitter.emit("newTable", tableJSON);
|
||||||
|
|
||||||
|
|
|
@ -2,13 +2,14 @@ require('dotenv').config();
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
const webpack = require('webpack');
|
const webpack = require('webpack');
|
||||||
|
|
||||||
|
const absolutePath = path.resolve(__dirname, 'build');
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
mode: process.env.NODE_ENV,
|
mode: process.env.NODE_ENV,
|
||||||
|
|
||||||
entry: ['@babel/polyfill', './src/renderer.js'],
|
entry: ['@babel/polyfill', './src/renderer.js'],
|
||||||
output: {
|
output: {
|
||||||
path: path.resolve(__dirname, 'build'),
|
path: absolutePath,
|
||||||
filename: 'bundle.js'
|
filename: 'bundle.js'
|
||||||
},
|
},
|
||||||
module: {
|
module: {
|
||||||
|
@ -38,7 +39,7 @@ module.exports = {
|
||||||
devtool: 'inline-source-map',
|
devtool: 'inline-source-map',
|
||||||
target: 'electron-renderer',
|
target: 'electron-renderer',
|
||||||
devServer: {
|
devServer: {
|
||||||
contentBase: path.join(__dirname, 'build'),
|
contentBase: absolutePath,
|
||||||
compress: true,
|
compress: true,
|
||||||
port: process.env.PORT
|
port: process.env.PORT
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue