mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-06 05:09:09 +08:00
feat: clean up Windows license files (#7133)
* feat: enable minification in build configurations and clean up Windows license files - Added minification option to the build configurations in electron.vite.config.ts to optimize output size. - Updated after-pack.js to remove unnecessary license files on Windows, improving the packaging process. * refactor: remove minification from build configurations in electron.vite.config.ts - Eliminated the minification option from the build settings in electron.vite.config.ts to streamline the build process. - This change may improve build times and simplify configuration management. --------- Co-authored-by: beyondkmp <beyondkmkp@gmail.com>
This commit is contained in:
parent
9411866727
commit
afc4731b9d
@ -36,6 +36,11 @@ exports.default = async function (context) {
|
|||||||
keepPackageNodeFiles(node_modules_path, '@libsql', ['win32-x64-msvc'])
|
keepPackageNodeFiles(node_modules_path, '@libsql', ['win32-x64-msvc'])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (platform === 'windows') {
|
||||||
|
fs.rmSync(path.join(context.appOutDir, 'LICENSE.electron.txt'), { force: true })
|
||||||
|
fs.rmSync(path.join(context.appOutDir, 'LICENSES.chromium.html'), { force: true })
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user