mirror of
https://github.com/chickensoft-games/setup-godot.git
synced 2025-08-14 21:05:06 +00:00
Recreate bin folder after clearing
This commit is contained in:
parent
0c73ef0c02
commit
25bbe6992f
6
dist/index.js
generated
vendored
6
dist/index.js
generated
vendored
@ -213,9 +213,11 @@ function run(platform) {
|
|||||||
// Create symlink to Godot executable
|
// Create symlink to Godot executable
|
||||||
const godotAlias = path_1.default.join(binDir, 'godot');
|
const godotAlias = path_1.default.join(binDir, 'godot');
|
||||||
core.startGroup(`🔗 Creating symlinks to executables...`);
|
core.startGroup(`🔗 Creating symlinks to executables...`);
|
||||||
// If an alias already exists, remove it before creating the new alias
|
// If an alias already exists, clear it before creating the new alias
|
||||||
if (fs.existsSync(binDir))
|
if (fs.existsSync(binDir)) {
|
||||||
fs.rmSync(binDir, { recursive: true, force: true });
|
fs.rmSync(binDir, { recursive: true, force: true });
|
||||||
|
fs.mkdirSync(binDir, { recursive: true });
|
||||||
|
}
|
||||||
fs.linkSync(godotExecutable, godotAlias);
|
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');
|
||||||
|
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
@ -270,8 +270,11 @@ async function run(platform: Platform): Promise<void> {
|
|||||||
const godotAlias = path.join(binDir, 'godot')
|
const godotAlias = path.join(binDir, 'godot')
|
||||||
core.startGroup(`🔗 Creating symlinks to executables...`)
|
core.startGroup(`🔗 Creating symlinks to executables...`)
|
||||||
|
|
||||||
// If an alias already exists, remove it before creating the new alias
|
// If an alias already exists, clear it before creating the new alias
|
||||||
if (fs.existsSync(binDir)) fs.rmSync(binDir, {recursive: true, force: true})
|
if (fs.existsSync(binDir)) {
|
||||||
|
fs.rmSync(binDir, {recursive: true, force: true})
|
||||||
|
fs.mkdirSync(binDir, {recursive: true})
|
||||||
|
}
|
||||||
|
|
||||||
fs.linkSync(godotExecutable, godotAlias)
|
fs.linkSync(godotExecutable, godotAlias)
|
||||||
core.info(`✅ Symlink to Godot created`)
|
core.info(`✅ Symlink to Godot created`)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user