mirror of
https://github.com/chickensoft-games/setup-godot.git
synced 2025-08-15 05:15:07 +00:00
Fixed comments
This commit is contained in:
parent
25bbe6992f
commit
12ed76813f
8
dist/index.js
generated
vendored
8
dist/index.js
generated
vendored
@ -125,14 +125,14 @@ function run(platform) {
|
|||||||
core.info(`🙃 Previous Godot download not found in cache`);
|
core.info(`🙃 Previous Godot download not found in cache`);
|
||||||
core.endGroup();
|
core.endGroup();
|
||||||
core.startGroup(`📥 Downloading Godot to ${godotDownloadPath}...`);
|
core.startGroup(`📥 Downloading Godot to ${godotDownloadPath}...`);
|
||||||
// If the ZIP file still exists locally, delete it before downloading
|
// If the ZIP file already exists locally, delete it before downloading
|
||||||
if (fs.existsSync(godotDownloadPath))
|
if (fs.existsSync(godotDownloadPath))
|
||||||
fs.rmSync(godotDownloadPath);
|
fs.rmSync(godotDownloadPath);
|
||||||
const godotDownloadedPath = yield toolsCache.downloadTool(godotUrl, godotDownloadPath);
|
const godotDownloadedPath = yield toolsCache.downloadTool(godotUrl, godotDownloadPath);
|
||||||
core.info(`✅ Godot downloaded to ${godotDownloadedPath}`);
|
core.info(`✅ Godot downloaded to ${godotDownloadedPath}`);
|
||||||
core.endGroup();
|
core.endGroup();
|
||||||
core.startGroup(`📥 Downloading Export Templates to ${exportTemplateDownloadPath}...`);
|
core.startGroup(`📥 Downloading Export Templates to ${exportTemplateDownloadPath}...`);
|
||||||
// If the ZIP file still exists locally, delete it before downloading
|
// If the ZIP file already exists locally, delete it before downloading
|
||||||
if (fs.existsSync(exportTemplateDownloadPath))
|
if (fs.existsSync(exportTemplateDownloadPath))
|
||||||
fs.rmSync(exportTemplateDownloadPath);
|
fs.rmSync(exportTemplateDownloadPath);
|
||||||
const templateDownloadedPath = yield toolsCache.downloadTool(exportTemplateUrl, exportTemplateDownloadPath);
|
const templateDownloadedPath = yield toolsCache.downloadTool(exportTemplateUrl, exportTemplateDownloadPath);
|
||||||
@ -140,7 +140,7 @@ function run(platform) {
|
|||||||
core.endGroup();
|
core.endGroup();
|
||||||
// Extract Godot
|
// Extract Godot
|
||||||
core.startGroup(`📦 Extracting Godot to ${installationDir}...`);
|
core.startGroup(`📦 Extracting Godot to ${installationDir}...`);
|
||||||
// If the export template folder already exists, remove it before extracting the ZIP file. This will "uninstall" other installations (e.g. on version changes).
|
// If the godot installation folder already exists, remove it before extracting the ZIP file. This will "uninstall" other installations (e.g. on version changes).
|
||||||
if (fs.existsSync(installationDir))
|
if (fs.existsSync(installationDir))
|
||||||
fs.rmdirSync(installationDir, { recursive: true });
|
fs.rmdirSync(installationDir, { recursive: true });
|
||||||
const godotExtractedPath = yield toolsCache.extractZip(godotDownloadedPath, installationDir);
|
const godotExtractedPath = yield toolsCache.extractZip(godotDownloadedPath, installationDir);
|
||||||
@ -213,7 +213,7 @@ 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, clear it before creating the new alias
|
// If an alias already exists, clear the bin folder 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.mkdirSync(binDir, { recursive: true });
|
||||||
|
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
@ -121,7 +121,7 @@ async function run(platform: Platform): Promise<void> {
|
|||||||
|
|
||||||
core.startGroup(`📥 Downloading Godot to ${godotDownloadPath}...`)
|
core.startGroup(`📥 Downloading Godot to ${godotDownloadPath}...`)
|
||||||
|
|
||||||
// If the ZIP file still exists locally, delete it before downloading
|
// If the ZIP file already exists locally, delete it before downloading
|
||||||
if (fs.existsSync(godotDownloadPath)) fs.rmSync(godotDownloadPath)
|
if (fs.existsSync(godotDownloadPath)) fs.rmSync(godotDownloadPath)
|
||||||
|
|
||||||
const godotDownloadedPath = await toolsCache.downloadTool(
|
const godotDownloadedPath = await toolsCache.downloadTool(
|
||||||
@ -135,7 +135,7 @@ async function run(platform: Platform): Promise<void> {
|
|||||||
`📥 Downloading Export Templates to ${exportTemplateDownloadPath}...`
|
`📥 Downloading Export Templates to ${exportTemplateDownloadPath}...`
|
||||||
)
|
)
|
||||||
|
|
||||||
// If the ZIP file still exists locally, delete it before downloading
|
// If the ZIP file already exists locally, delete it before downloading
|
||||||
if (fs.existsSync(exportTemplateDownloadPath))
|
if (fs.existsSync(exportTemplateDownloadPath))
|
||||||
fs.rmSync(exportTemplateDownloadPath)
|
fs.rmSync(exportTemplateDownloadPath)
|
||||||
|
|
||||||
@ -149,7 +149,7 @@ async function run(platform: Platform): Promise<void> {
|
|||||||
// Extract Godot
|
// Extract Godot
|
||||||
core.startGroup(`📦 Extracting Godot to ${installationDir}...`)
|
core.startGroup(`📦 Extracting Godot to ${installationDir}...`)
|
||||||
|
|
||||||
// If the export template folder already exists, remove it before extracting the ZIP file. This will "uninstall" other installations (e.g. on version changes).
|
// If the godot installation folder already exists, remove it before extracting the ZIP file. This will "uninstall" other installations (e.g. on version changes).
|
||||||
if (fs.existsSync(installationDir))
|
if (fs.existsSync(installationDir))
|
||||||
fs.rmdirSync(installationDir, {recursive: true})
|
fs.rmdirSync(installationDir, {recursive: true})
|
||||||
|
|
||||||
@ -270,7 +270,7 @@ 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, clear it before creating the new alias
|
// If an alias already exists, clear the bin folder 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.mkdirSync(binDir, {recursive: true})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user