Skip to content

Commit

Permalink
should of been here, hopefully.
Browse files Browse the repository at this point in the history
  • Loading branch information
KenCorma committed Oct 26, 2024
1 parent b4ef1f6 commit ec74b7b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/todesktop/afterPack.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ module.exports = async ({ appOutDir, packager,outDir }) => {
if (os.platform() === "darwin") {
const appName = packager.appInfo.productFilename;
const appPath = path.join(`${appOutDir}`, `${appName}.app`);
const assetPath = path.join(outDir,'app','assets');
const mainPath = path.dirname(outDir);
const assetPath = path.join(mainPath,'app-wrapper','app','assets');
const resourcePath = path.join(appPath,"Contents","Resourses");
await fs.cp(assetPath, resourcePath, {recursive: true});
}
Expand All @@ -25,7 +26,8 @@ module.exports = async ({ appOutDir, packager,outDir }) => {
{
const appName = packager.appInfo.productFilename;
const appPath = path.join(`${appOutDir}`, `${appName}.exe`);
const assetPath = path.join(outDir,'app','assets');
const mainPath = path.dirname(outDir);
const assetPath = path.join(mainPath,'app-wrapper','app','assets');
const resourcePath = path.join(path.dirname(appPath),"resourses");
await fs.cp(assetPath, resourcePath, {recursive: true});
}
Expand Down

0 comments on commit ec74b7b

Please sign in to comment.