Files
zeekay d6423729c2 Complete rebrand from ComfyUI to Hanzo Studio
- Replace all ComfyUI references with Hanzo Studio
- Update comfy.org URLs to hanzo.ai/studio.hanzo.ai
- Change comfyanonymous to hanzoai
- Update Comfy-Org to hanzo-studio
- Rename files and directories
- Update package names and configurations
- Update documentation and README files

This is a comprehensive rebranding to align with Hanzo AI's
product suite and company identity.
2025-11-23 20:50:10 -08:00

62 lines
1.6 KiB
JavaScript

/* eslint-disable @typescript-eslint/no-unsafe-member-access */
/* eslint-disable @typescript-eslint/no-unsafe-argument */
import fs from 'node:fs';
import path from 'node:path';
/**
* Verify the app build for the current platform.
* Check that all required paths are present.
*/
const PATHS = {
mac: {
base: 'dist/mac-arm64/Hanzo Studio.app/Contents/Resources',
required: ['Hanzo Studio', 'Hanzo Studio/custom_nodes/Hanzo Studio-Manager', 'UI', 'uv/macos/uv', 'uv/macos/uvx'],
},
windows: {
base: 'dist/win-unpacked/resources',
required: [
// Add Windows-specific paths here
'Hanzo Studio',
'Hanzo Studio/custom_nodes/Hanzo Studio-Manager',
'UI',
'uv/win/uv.exe',
'uv/win/uvx.exe',
],
},
};
function verifyConfig(config) {
const missingPaths = [];
for (const requiredPath of config.required) {
const fullPath = path.join(config.base, requiredPath);
if (!fs.existsSync(fullPath)) {
missingPaths.push(requiredPath);
}
}
if (missingPaths.length > 0) {
console.error('❌ Build verification failed!');
console.error('Missing required paths:');
for (const p of missingPaths) console.error(` - ${p}`);
process.exit(1);
}
}
function verifyBuild() {
const platform = process.platform;
if (platform === 'darwin') {
console.log('🔍 Verifying build for Macos...');
verifyConfig(PATHS.mac);
} else if (platform === 'win32') {
console.log('🔍 Verifying build for Windows...');
verifyConfig(PATHS.windows);
} else {
console.error('❌ Unsupported platform:', platform);
process.exit(1);
}
}
verifyBuild();