feat(editor): 优化编辑器UI和改进核心功能 (#234)

* feat(editor): 优化编辑器UI和改进核心功能

* feat(editor): 优化编辑器UI和改进核心功能
This commit is contained in:
YHH
2025-11-23 21:45:10 +08:00
committed by GitHub
parent 4d95a7f044
commit 32460ac133
38 changed files with 2201 additions and 485 deletions

View File

@@ -69,12 +69,23 @@ if (success) {
config.bundle = {};
}
if (!config.bundle.resources) {
config.bundle.resources = [];
config.bundle.resources = {};
}
if (!config.bundle.resources.includes('runtime/**/*')) {
config.bundle.resources.push('runtime/**/*');
fs.writeFileSync(tauriConfigPath, JSON.stringify(config, null, 2));
console.log('✓ Updated tauri.conf.json with runtime resources');
// Handle both array and object format for resources
if (Array.isArray(config.bundle.resources)) {
if (!config.bundle.resources.includes('runtime/**/*')) {
config.bundle.resources.push('runtime/**/*');
fs.writeFileSync(tauriConfigPath, JSON.stringify(config, null, 2));
console.log('✓ Updated tauri.conf.json with runtime resources');
}
} else if (typeof config.bundle.resources === 'object') {
// Object format - add runtime files if not present
if (!config.bundle.resources['runtime/**/*']) {
config.bundle.resources['runtime/**/*'] = '.';
fs.writeFileSync(tauriConfigPath, JSON.stringify(config, null, 2));
console.log('✓ Updated tauri.conf.json with runtime resources');
}
}
}