Skip to content

Commit f76edea

Browse files
authored
Merge pull request #162 from ecubus/fix-sa-in-macos
fix webpack copy
2 parents fa36cde + d020dee commit f76edea

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

webpack.config.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,11 @@ class MyCustomPlugin {
4444
for(const js of jsList){
4545
fs.copyFileSync(path.resolve(__dirname,'dist',js),path.resolve(__dirname,'resources','lib','js',js))
4646
}
47-
// 在这里加入你的自定义代码
48-
fs.copyFileSync(path.resolve(__dirname,'dist','sa.node'),path.resolve(__dirname,'resources','lib','js','sa.node'))
47+
48+
49+
if(process.platform=='win32'){
50+
fs.copyFileSync(path.resolve(__dirname,'dist','sa.node'),path.resolve(__dirname,'resources','lib','js','sa.node'))
51+
}
4952

5053
//copy uds.d.ts
5154
const udsDTs=path.resolve(__dirname,'dist','src/main/worker','uds.d.ts')

0 commit comments

Comments
 (0)