Skip to content

Commit

Permalink
file path for download fix
Browse files Browse the repository at this point in the history
  • Loading branch information
muneerlalji committed Apr 17, 2024
1 parent 227ec96 commit 214c007
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 127 deletions.
2 changes: 2 additions & 0 deletions backend/src/manual_input_to_gcode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ int main(int argc, char *argv[]) {

std::vector<Bend> bends;

std::cout << "Parsing input data..." << std::endl;

for (const auto& item : j["bends"]) {
Bend bend;
bend.tubeLengthBeforeBend = item["straightTubeBefore"]["value"];
Expand Down
116 changes: 0 additions & 116 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions frontend/public/electron.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function createWindow() {
global.executeBackendScriptSync = (fileName) => {
try {
const outputPath = path.join(app.getPath('downloads'), 'output_gcode');
const scriptPath = path.join(__dirname, '../../build/cad_to_gcode');
const scriptPath = path.join(__dirname, '../../backend/build/cad_to_gcode');
console.log('Executing script at path:', scriptPath);
const scriptArguments = [fileName, outputPath];
// Spawn the process with parameters
Expand Down Expand Up @@ -80,7 +80,7 @@ function createWindow() {

const outputPath = path.join(app.getPath('downloads'), 'output_gcode');
const dataStr = JSON.stringify(formData);
const executablePath = path.join(__dirname, '../../build/manual_input_to_gcode');
const executablePath = path.join(__dirname, '../../backend/build/manual_input_to_gcode');
const executableArguments = [outputPath, dataStr];

try {
Expand Down
Binary file added website/src/images/.background.png.icloud
Binary file not shown.
Binary file added website/src/images/.splash_bg.svg.icloud
Binary file not shown.
Binary file removed website/src/images/background.png
Binary file not shown.
9 changes: 0 additions & 9 deletions website/src/images/splash_bg.svg

This file was deleted.

0 comments on commit 214c007

Please sign in to comment.