Skip to content

Commit

Permalink
Fix artifactName in package.json and add SCANNER_DIR to webpack.confi…
Browse files Browse the repository at this point in the history
…g.ts
  • Loading branch information
nukeop committed Jul 7, 2024
1 parent 1c0241d commit b494ae4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
9 changes: 1 addition & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
"build": {
"appId": "nuclear",
"productName": "nuclear",
"artifactName": "${productName}-v${env.VERSION}-{arch}.${ext}",
"artifactName": "${productName}-v${env.VERSION}-${arch}.${ext}",
"directories": {
"output": "release"
},
Expand All @@ -96,13 +96,6 @@
"filter": [
"**/*"
]
},
{
"from": "packages/scanner",
"to": "node_modules/@nuclear/scanner",
"filter": [
"**/*"
]
}
],
"releaseInfo": {
Expand Down
5 changes: 3 additions & 2 deletions packages/main/webpack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,10 @@ module.exports = (env: BuildEnv): webpack.Configuration => {
plugins: [
new CopyPlugin([
{ from: 'preload.js' },
{ from: path.resolve(__dirname, '../../.env') }
{ from: path.resolve(__dirname, '../../.env') },
{ from: SCANNER_DIR }
]),
new webpack.NormalModuleReplacementPlugin(/(.*)system-api(\.*)/, (resource: any) => {
new webpack.NormalModuleReplacementPlugin(/(.*)system-api(\.*)/, (resource) => {
resource.request = resource.request.replace(/system-api/, `@${env.TARGET}/system-api`);
})
]
Expand Down

0 comments on commit b494ae4

Please sign in to comment.