feat(desktop): add preMake hook to clean temporary files before build

- Implement preMake hook to remove temporary files in the output directory
- Enhance build process by ensuring a clean state prior to execution
This commit is contained in:
DIYgod 2025-07-16 12:32:40 +08:00
parent 943ef31085
commit d05fb12cc6
No known key found for this signature in database
1 changed files with 3 additions and 0 deletions

View File

@ -245,6 +245,9 @@ const config: ForgeConfig = {
},
],
hooks: {
preMake: async () => {
await rimraf("out/**/*.tmp")
},
postMake: async (_config, makeResults) => {
const yml: {
version?: string