From f5df28740ae5248ff29ea267d8fe7109370c49e5 Mon Sep 17 00:00:00 2001 From: Sekwah Date: Sun, 12 Nov 2023 15:43:15 +0000 Subject: [PATCH] chore(tauri): fix release file copy function --- app/tauri/release-prep/release-prep.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/tauri/release-prep/release-prep.js b/app/tauri/release-prep/release-prep.js index 9b2f24dc..5f50fdaa 100644 --- a/app/tauri/release-prep/release-prep.js +++ b/app/tauri/release-prep/release-prep.js @@ -113,6 +113,7 @@ function addPlatformUpdater( /** * Recursively searches for files with the given glob pattern and copies them to the release folder. * @param {string} searchPath - The starting directory to begin the search. + * @param {string} platform - The platform flat to append to the file name. * @param {string} fileExtension - The file extension to search for. */ function addReleaseFiles(searchPath, platform, ...fileExtension) { @@ -121,7 +122,7 @@ function addReleaseFiles(searchPath, platform, ...fileExtension) { const entryPath = path.join(searchPath, entry.name); if (entry.isDirectory()) { // Recurse if entry is a directory - addReleaseFiles(entryPath, ...fileExtension); + addReleaseFiles(entryPath, platform, ...fileExtension); } else if ( entry.isFile() && fileExtension.find((ext) => ext === path.extname(entry.name))