Skip to content

Commit

Permalink
chore(tauri): fix release file copy function
Browse files Browse the repository at this point in the history
  • Loading branch information
sekwah41 committed Nov 12, 2023
1 parent 93cb05a commit f5df287
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/tauri/release-prep/release-prep.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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))
Expand Down

0 comments on commit f5df287

Please sign in to comment.