From b4ef1f6098592ce062f6fb22231f7e91019fc79e Mon Sep 17 00:00:00 2001 From: Kendal Cormany Date: Sat, 26 Oct 2024 14:14:22 -0700 Subject: [PATCH] change main path --- scripts/todesktop/afterPack.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/scripts/todesktop/afterPack.js b/scripts/todesktop/afterPack.js index 559a46a2..154895a3 100644 --- a/scripts/todesktop/afterPack.js +++ b/scripts/todesktop/afterPack.js @@ -16,8 +16,7 @@ module.exports = async ({ appOutDir, packager,outDir }) => { if (os.platform() === "darwin") { const appName = packager.appInfo.productFilename; const appPath = path.join(`${appOutDir}`, `${appName}.app`); - const mainPath = path.dirname(outDir); - const assetPath = path.join(mainPath,'assets'); + const assetPath = path.join(outDir,'app','assets'); const resourcePath = path.join(appPath,"Contents","Resourses"); await fs.cp(assetPath, resourcePath, {recursive: true}); } @@ -26,8 +25,7 @@ module.exports = async ({ appOutDir, packager,outDir }) => { { const appName = packager.appInfo.productFilename; const appPath = path.join(`${appOutDir}`, `${appName}.exe`); - const mainPath = path.dirname(outDir); - const assetPath = path.join(mainPath,'assets'); + const assetPath = path.join(outDir,'app','assets'); const resourcePath = path.join(path.dirname(appPath),"resourses"); await fs.cp(assetPath, resourcePath, {recursive: true}); }