chore: build

Co-Authored-By: Wesley F. Young <25684570+Wesley-Young@users.noreply.github.com>
This commit is contained in:
手瓜一十雪 2024-08-08 21:12:23 +08:00
parent 9518595e48
commit e79ca4fa4c
4 changed files with 7 additions and 3 deletions

View File

@ -26,7 +26,7 @@
"darwin"
],
"injects": {
"renderer": "./renderer.cjs",
"renderer": "./renderer.js",
"main": "./napcat.cjs",
"preload": "./preload.cjs"
}

View File

@ -0,0 +1,2 @@
export const onSettingWindowCreated = (view) => {
};

View File

@ -48,8 +48,10 @@ const LLBaseConfigPlugin: PluginOption[] = [
{ src: './manifest.json', dest: 'dist' },
{ src: './src/liteloader/napcat.cjs', dest: 'dist' },
{ src: './src/liteloader/preload.cjs', dest: 'dist' },
{ src: './src/liteloader/renderer.cjs', dest: 'dist' },
{ src: './src/liteloader/renderer.js', dest: 'dist' },
{ src: './package.json', dest: 'dist' },
{ src: './logo.png', dest: 'dist' },
//...external.map(genCpModule)
]
}),
nodeResolve(),
@ -75,7 +77,7 @@ const ShellBaseConfigPlugin: PluginOption[] = [
// { src: './src/napcat.json', dest: 'dist/config/' },
// { src: './static/', dest: 'dist/static/', flatten: false },
// { src: './src/onebot11/onebot11.json', dest: 'dist/config/' },
// { src: './package.json', dest: 'dist' },
{ src: './package.json', dest: 'dist' },
// { src: './README.md', dest: 'dist' },
// { src: './logo.png', dest: 'dist/logs' },
// ...(startScripts.map((startScript) => {