From 62903da2fd1abb8231d2a8c1651d2036fa5adef8 Mon Sep 17 00:00:00 2001 From: Josef Date: Sat, 4 May 2024 10:03:10 +0200 Subject: [PATCH] Install Readme Update --- create-output.js | 23 +++++++++++++------ .../install-godot-windows-readme.txt | 3 +++ 2 files changed, 19 insertions(+), 7 deletions(-) create mode 100644 install-scripts/install-godot-windows-readme.txt diff --git a/create-output.js b/create-output.js index 2b73642..216c17b 100644 --- a/create-output.js +++ b/create-output.js @@ -71,19 +71,28 @@ async function createDirectory() await fs.cp( npFrom, npTo, { recursive : true } ); - let installers = + let installerFiles = { - "windows" : "install-godot-windows.bat" + "windows" : + [ + "install-godot-windows.bat", + "install-godot-windows-readme.txt" + ] }; - let installer = installers[ platform ]; - let installFrom = "install-scripts/" + installer; + let installers = installerFiles[ platform ]; - let installTo = path.join( platformTargetDirectory, installer ); + for ( let installer of installers ) + { + let installFrom = "install-scripts/" + installer; - console.log( `copying installer: "${installFrom}" >> "${installTo}"` ); + let installTo = path.join( platformTargetDirectory, installer ); + + console.log( `copying installer: "${installFrom}" >> "${installTo}"` ); + + await fs.cp( installFrom, installTo, { recursive : true } ); + } - await fs.cp( installFrom, installTo, { recursive : true } ); } diff --git a/install-scripts/install-godot-windows-readme.txt b/install-scripts/install-godot-windows-readme.txt new file mode 100644 index 0000000..63789e3 --- /dev/null +++ b/install-scripts/install-godot-windows-readme.txt @@ -0,0 +1,3 @@ +Copy the directory "godot-rj-nuget-package" into + +C:\Users\{YOUR-USER-NAME}\AppData\Roaming\NuGet \ No newline at end of file