#!/usr/bin/env node
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
 * msger-native builder — delegates to @bobfrankston/rust-builder
 */
var rust_builder_1 = require("@bobfrankston/rust-builder");
var path_1 = require("path");
var url_1 = require("url");
var __dirname = path_1.default.dirname((0, url_1.fileURLToPath)(import.meta.url));
var nativeDir = path_1.default.join(__dirname, "..");
var binDir = path_1.default.join(nativeDir, "bin");
var config = (0, rust_builder_1.loadConfig)(path_1.default.join(__dirname, "build-config.json"), "msgernative", nativeDir, binDir);
// msger-specific: copy icons
config.options = config.options || {};
config.options.icons = ["msger.ico", "msger.png"];
config.options.iconDir = path_1.default.join(nativeDir, "..");
var success = (0, rust_builder_1.build)(config);
if (!success)
    process.exit(1);
