Skip to content

Commit

Permalink
chore: update build script
Browse files Browse the repository at this point in the history
  • Loading branch information
buqiyuan committed Aug 8, 2024
1 parent 10387bb commit 71b1f9a
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions apps/electron/scripts/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ const workDir = path.join(__dirname, "../");
cpSync(path.join(workDir, "../web/dist"), path.join(workDir, "./dist/web"), {
recursive: true,
});
cpSync(
path.join(workDir, "../preload/dist"),
path.join(workDir, "./dist/preload"),
cpSync(path.join(workDir, "../preload/dist"), path.join(workDir, "./dist/preload"),
{ recursive: true },
);

Expand Down Expand Up @@ -46,7 +44,12 @@ const options: Configuration = {
buildDependenciesFromSource: false,

win: {
target: "nsis",
target: [
{
target: "nsis",
arch: ["ia32", "x64"],
},
],
},

mac: {
Expand Down

0 comments on commit 71b1f9a

Please sign in to comment.