Skip to content

Commit

Permalink
added mac/win options for source dir in prebuild script
Browse files Browse the repository at this point in the history
  • Loading branch information
Mattk70 committed Apr 24, 2024
1 parent 640bab1 commit 8649ad2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions prebuild.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ const fs = require('fs');
const path = require('path');

// Define the directory where your source files are located
const SOURCE_DIR = "C:/Users/simpo/PycharmProjects/Chirpity-Electron";

let SOURCE_DIR = "C:/Users/simpo/PycharmProjects/Chirpity-Electron";
if (!fs.existsSync(SOURCE_DIR)) SOURCE_DIR = "/Users/matthew/PycharmProjects/Chirpity-Electron"
// Function to recursively search for patterns in files
function searchPatterns(directory, patterns) {
const files = fs.readdirSync(directory);
Expand Down

0 comments on commit 8649ad2

Please sign in to comment.