This commit is contained in:
Mateusz Budzisz 2025-08-10 01:11:55 +02:00
parent fe568faee5
commit 09eedd1a31
No known key found for this signature in database
3 changed files with 15 additions and 3 deletions

12
dist/index.js generated vendored
View File

@ -59,6 +59,7 @@ const fs = __importStar(__nccwpck_require__(9896));
const os = __importStar(__nccwpck_require__(857));
const path_1 = __importDefault(__nccwpck_require__(6928));
const utils_1 = __nccwpck_require__(9277);
const child_process = __importStar(__nccwpck_require__(1421));
function run(platform) {
return __awaiter(this, void 0, void 0, function* () {
var _a, _b, _c;
@ -254,7 +255,8 @@ function run(platform) {
fs.rmSync(binDir, { recursive: true, force: true });
fs.mkdirSync(binDir, { recursive: true });
}
fs.linkSync(godotExecutable, godotAlias);
child_process.execSync(`ln -s ${godotExecutable} ${godotAlias}`);
// fs.linkSync(godotExecutable, godotAlias)
core.info(`✅ Symlink to Godot created`);
const godotSharpDirAlias = path_1.default.join(binDir, 'GodotSharp');
if (useDotnet) {
@ -89152,6 +89154,14 @@ module.exports = require("net");
/***/ }),
/***/ 1421:
/***/ ((module) => {
"use strict";
module.exports = require("node:child_process");
/***/ }),
/***/ 7598:
/***/ ((module) => {

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long

View File

@ -13,6 +13,7 @@ import {
getPlatform,
Platform
} from './utils'
import * as child_process from 'node:child_process'
async function run(platform: Platform): Promise<void> {
// Get action inputs
@ -295,7 +296,8 @@ async function run(platform: Platform): Promise<void> {
fs.mkdirSync(binDir, {recursive: true})
}
fs.linkSync(godotExecutable, godotAlias)
child_process.execSync(`ln -s ${godotExecutable} ${godotAlias}`);
// fs.linkSync(godotExecutable, godotAlias)
core.info(`✅ Symlink to Godot created`)
const godotSharpDirAlias = path.join(binDir, 'GodotSharp')
if (useDotnet) {