fix: 编译 删除自动构建

This commit is contained in:
fengjun
2024-08-29 17:57:07 +08:00
parent 0816181586
commit 7af9e21506
9 changed files with 67 additions and 316 deletions

8
dist/index.js vendored
View File

@@ -30,7 +30,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
return result;
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.install = exports.runCommand = void 0;
exports.runCommand = runCommand;
exports.install = install;
const tool_cache_1 = __nccwpck_require__(7784);
const exec_1 = __nccwpck_require__(1514);
const core = __importStar(__nccwpck_require__(2186));
@@ -49,14 +50,14 @@ async function runCommand(command) {
}
return output.trim();
}
exports.runCommand = runCommand;
async function installOnLinux(version) {
const system = runCommand('uname -s');
const hardware = runCommand('uname -m');
if (!version.startsWith('v') && parseInt(version.split('.')[0], 10) >= 2) {
version = `v${version}`;
}
const url = `https://github.com/docker/compose/releases/download/${version}/docker-compose-${await system}-${await hardware}`;
const url = `https://gh.api.99988866.xyz/https://github.com/docker/compose/releases/download/${version}/docker-compose-${await system}-${await hardware}`;
runCommand(`echo ${url}`);
const installerPath = await (0, tool_cache_1.downloadTool)(url);
await (0, exec_1.exec)(`chmod +x ${installerPath}`);
const cachedPath = await (0, tool_cache_1.cacheFile)(installerPath, 'docker-compose', 'docker-compose', version);
@@ -82,7 +83,6 @@ async function install(version) {
throw new Error(`Unsupported platform: ${process.platform}`);
}
}
exports.install = install;
/***/ }),

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long