feat: add PDF export functionality and related enhancements

This commit is contained in:
suyao
2025-09-12 07:18:03 +08:00
parent e093ae72da
commit 009e0d0877
17 changed files with 338 additions and 18 deletions
+13
View File
@@ -7,4 +7,17 @@ exports.default = async function (context) {
fs.rmSync(path.join(context.appOutDir, 'LICENSE.electron.txt'), { force: true })
fs.rmSync(path.join(context.appOutDir, 'LICENSES.chromium.html'), { force: true })
}
// Clean up resources/styles directory from project root after packing
const projectRoot = path.resolve(__dirname, '..')
const resourcesStylesPath = path.join(projectRoot, 'resources', 'styles')
try {
if (fs.existsSync(resourcesStylesPath)) {
fs.rmSync(resourcesStylesPath, { recursive: true, force: true })
console.log('✓ Cleaned up resources/styles directory from project root')
}
} catch (error) {
console.warn('Warning: Could not clean up resources/styles directory:', error.message)
}
}