Skip to content

Commit

Permalink
change main path
Browse files Browse the repository at this point in the history
  • Loading branch information
KenCorma committed Oct 26, 2024
1 parent 563d683 commit b4ef1f6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions scripts/todesktop/afterPack.js
Original file line number Diff line number Diff line change
Expand Up @@ -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});
}
Expand All @@ -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});
}
Expand Down

0 comments on commit b4ef1f6

Please sign in to comment.