"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.buildCommand = void 0;
const commander_1 = require("commander");
const installer_service_1 = require("../services/installer/installer.service");
const error_handler_1 = require("../utils/error.handler");
exports.buildCommand = new commander_1.Command('build')
    .description('Build and package the io.Connect Desktop application for distribution')
    .option('--output <path>', 'Output directory for packages', 'dist/packages')
    .option('--skip-build', 'Skip the build steps and only create the build package', false)
    .action(async (options) => {
    try {
        await (0, installer_service_1.makeInstaller)(options);
    }
    catch (error) {
        error_handler_1.ErrorHandler.handle(error);
    }
});
//# sourceMappingURL=build.command.js.map