Fixed comments

This commit is contained in:
Lulu 2024-01-30 00:52:16 +00:00
parent 25bbe6992f
commit 12ed76813f
3 changed files with 9 additions and 9 deletions

8
dist/index.js generated vendored
View File

@ -125,14 +125,14 @@ function run(platform) {
core.info(`🙃 Previous Godot download not found in cache`);
core.endGroup();
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);
const godotDownloadedPath = yield toolsCache.downloadTool(godotUrl, godotDownloadPath);
core.info(`✅ Godot downloaded to ${godotDownloadedPath}`);
core.endGroup();
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))
fs.rmSync(exportTemplateDownloadPath);
const templateDownloadedPath = yield toolsCache.downloadTool(exportTemplateUrl, exportTemplateDownloadPath);
@ -140,7 +140,7 @@ function run(platform) {
core.endGroup();
// Extract Godot
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))
fs.rmdirSync(installationDir, { recursive: true });
const godotExtractedPath = yield toolsCache.extractZip(godotDownloadedPath, installationDir);
@ -213,7 +213,7 @@ function run(platform) {
// Create symlink to Godot executable
const godotAlias = path_1.default.join(binDir, 'godot');
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)) {
fs.rmSync(binDir, { recursive: true, force: true });
fs.mkdirSync(binDir, { recursive: true });

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long

View File

@ -121,7 +121,7 @@ async function run(platform: Platform): Promise<void> {
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)
const godotDownloadedPath = await toolsCache.downloadTool(
@ -135,7 +135,7 @@ async function run(platform: Platform): Promise<void> {
`📥 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))
fs.rmSync(exportTemplateDownloadPath)
@ -149,7 +149,7 @@ async function run(platform: Platform): Promise<void> {
// Extract Godot
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))
fs.rmdirSync(installationDir, {recursive: true})
@ -270,7 +270,7 @@ async function run(platform: Platform): Promise<void> {
const godotAlias = path.join(binDir, 'godot')
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)) {
fs.rmSync(binDir, {recursive: true, force: true})
fs.mkdirSync(binDir, {recursive: true})