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 a2d8143
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 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 Expand Up @@ -84,7 +87,7 @@ const targetPlatform: Platform = {
build({
targets: targetPlatform.createTarget(),
config: options,
publish: "always"
publish: process.env.CI ? "always" : "never",
})
.then((result) => {
console.log(JSON.stringify(result));
Expand Down

0 comments on commit a2d8143

Please sign in to comment.