Skip to content

Commit

Permalink
Adding notes
Browse files Browse the repository at this point in the history
  • Loading branch information
Justman100 authored and vraravam committed Oct 17, 2024
1 parent 945f972 commit 332b2e4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/create.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,14 @@ const pascalCasedName = toPascalCase(recipe); // PascalCased recipe ID only cont
(async () => {
// Folder paths
const userData =
process.env.APPDATA || (
process.env.APPDATA || (
// Check if this script runs on Windows
process.platform === 'win32'
? `${process.env.USERPROFILE}\\AppData\\Roaming\\Ferdium\\recipes\\dev`
// If not, check for Darwin
: process.platform === 'darwin'
? `${process.env.HOME}/Library/Application Support`
// If fails both checks, simply use this
: `${process.env.HOME}/.config`
);
const recipesFolder = path.join(userData, folderName, 'recipes');
Expand Down

0 comments on commit 332b2e4

Please sign in to comment.