Skip to content

Commit

Permalink
Works on mac
Browse files Browse the repository at this point in the history
  • Loading branch information
shouhanzen committed Dec 28, 2023
1 parent b978fd0 commit 0702996
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
Binary file added .DS_Store
Binary file not shown.
1 change: 1 addition & 0 deletions backend/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ venv: ## make virtual environment (activate with `source venv/Scripts/activate

onefolder:
onefolder: ## make pyinstaller exe within folder of dependencies
rm -rf dist/*
$(PYINSTALLER) $(CLEAN) $(OUTPUT_NAME) $(ICON) $(EXTRA_HOOKS) $(MAIN_FILE)
cp -r public ./dist/$(FILENAME)/public

Expand Down
7 changes: 6 additions & 1 deletion frontend/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,12 @@ function tryStartBackend(win) {
let backendPath = "";

let root = path.join(app.getAppPath(), "..", "..");
backendPath = path.join(root, "backend", "backend_0p1.exe"); // Use double backslashes for Windows paths
let backend_executable = "backend_0p1.exe";

if (process.platform == "darwin")
backend_executable = "backend_0p1";

backendPath = path.join(root, "backend", backend_executable); // Use double backslashes for Windows paths

// Use execFile
// Define the backend executable and the arguments
Expand Down

0 comments on commit 0702996

Please sign in to comment.