mirror of
https://github.com/chickensoft-games/setup-godot.git
synced 2025-08-15 05:15:07 +00:00
Compare commits
No commits in common. "main" and "v2.1.2" have entirely different histories.
20
dist/index.js
generated
vendored
20
dist/index.js
generated
vendored
@ -57,8 +57,6 @@ const core = __importStar(__nccwpck_require__(7484));
|
|||||||
const toolsCache = __importStar(__nccwpck_require__(3472));
|
const toolsCache = __importStar(__nccwpck_require__(3472));
|
||||||
const fs = __importStar(__nccwpck_require__(9896));
|
const fs = __importStar(__nccwpck_require__(9896));
|
||||||
const os = __importStar(__nccwpck_require__(857));
|
const os = __importStar(__nccwpck_require__(857));
|
||||||
const child_process = __importStar(__nccwpck_require__(5317));
|
|
||||||
const process = __importStar(__nccwpck_require__(932));
|
|
||||||
const path_1 = __importDefault(__nccwpck_require__(6928));
|
const path_1 = __importDefault(__nccwpck_require__(6928));
|
||||||
const utils_1 = __nccwpck_require__(9277);
|
const utils_1 = __nccwpck_require__(9277);
|
||||||
function run(platform) {
|
function run(platform) {
|
||||||
@ -256,15 +254,7 @@ function run(platform) {
|
|||||||
fs.rmSync(binDir, { recursive: true, force: true });
|
fs.rmSync(binDir, { recursive: true, force: true });
|
||||||
fs.mkdirSync(binDir, { recursive: true });
|
fs.mkdirSync(binDir, { recursive: true });
|
||||||
}
|
}
|
||||||
// `fs.linkSync` has some issues on macOS for Godot executable
|
fs.linkSync(godotExecutable, godotAlias);
|
||||||
// it does not create symlink at all, it copies whole file
|
|
||||||
// and corrupts it a way that Godot gets killed by kernel (Killed: 9)
|
|
||||||
if (process.platform === "darwin") {
|
|
||||||
child_process.execSync(`ln -s "${godotExecutable}" "${godotAlias}"`);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
fs.linkSync(godotExecutable, godotAlias);
|
|
||||||
}
|
|
||||||
core.info(`✅ Symlink to Godot created`);
|
core.info(`✅ Symlink to Godot created`);
|
||||||
const godotSharpDirAlias = path_1.default.join(binDir, 'GodotSharp');
|
const godotSharpDirAlias = path_1.default.join(binDir, 'GodotSharp');
|
||||||
if (useDotnet) {
|
if (useDotnet) {
|
||||||
@ -89218,14 +89208,6 @@ module.exports = require("perf_hooks");
|
|||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
|
|
||||||
/***/ 932:
|
|
||||||
/***/ ((module) => {
|
|
||||||
|
|
||||||
"use strict";
|
|
||||||
module.exports = require("process");
|
|
||||||
|
|
||||||
/***/ }),
|
|
||||||
|
|
||||||
/***/ 4876:
|
/***/ 4876:
|
||||||
/***/ ((module) => {
|
/***/ ((module) => {
|
||||||
|
|
||||||
|
2
dist/index.js.map
generated
vendored
2
dist/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
12
src/main.ts
12
src/main.ts
@ -3,8 +3,6 @@ import * as core from '@actions/core'
|
|||||||
import * as toolsCache from '@actions/tool-cache'
|
import * as toolsCache from '@actions/tool-cache'
|
||||||
import * as fs from 'fs'
|
import * as fs from 'fs'
|
||||||
import * as os from 'os'
|
import * as os from 'os'
|
||||||
import * as child_process from 'child_process'
|
|
||||||
import * as process from 'process'
|
|
||||||
import path from 'path'
|
import path from 'path'
|
||||||
|
|
||||||
import {
|
import {
|
||||||
@ -297,15 +295,7 @@ async function run(platform: Platform): Promise<void> {
|
|||||||
fs.mkdirSync(binDir, {recursive: true})
|
fs.mkdirSync(binDir, {recursive: true})
|
||||||
}
|
}
|
||||||
|
|
||||||
// `fs.linkSync` has some issues on macOS for Godot executable
|
fs.linkSync(godotExecutable, godotAlias)
|
||||||
// it does not create symlink at all, it copies whole file
|
|
||||||
// and corrupts it a way that Godot gets killed by kernel (Killed: 9)
|
|
||||||
if (process.platform === "darwin") {
|
|
||||||
child_process.execSync(`ln -s "${godotExecutable}" "${godotAlias}"`)
|
|
||||||
} else {
|
|
||||||
fs.linkSync(godotExecutable, godotAlias)
|
|
||||||
}
|
|
||||||
|
|
||||||
core.info(`✅ Symlink to Godot created`)
|
core.info(`✅ Symlink to Godot created`)
|
||||||
const godotSharpDirAlias = path.join(binDir, 'GodotSharp')
|
const godotSharpDirAlias = path.join(binDir, 'GodotSharp')
|
||||||
if (useDotnet) {
|
if (useDotnet) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user