fix: 编译 删除自动构建
This commit is contained in:
8
dist/index.js
vendored
8
dist/index.js
vendored
@@ -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
2
dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user