"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.defaultTags = void 0;
const logger_1 = require("@refloat/logger");
const child_process_1 = require("child_process");
exports.defaultTags = [process.arch === 'x64' ? 'amd64' : process.arch];
const logger = logger_1.Logger.create('tags');
const checks = {
    bash: 'bash --version',
    docker: 'docker version',
    'docker-cli': 'docker --version',
};
if (process.platform === 'darwin') {
    exports.defaultTags.push('unix', 'macos');
}
else if (process.platform === 'linux') {
    exports.defaultTags.push('unix', 'linux');
}
else if (process.platform === 'win32') {
    exports.defaultTags.push('windows');
}
for (const tag of Object.keys(checks)) {
    const process = (0, child_process_1.spawnSync)(checks[tag], { shell: true });
    if (process.status === 0 && !process.error) {
        exports.defaultTags.push(tag);
    }
}
//# sourceMappingURL=tags.js.map