diff --git a/doscript-installer/README.md b/doscript-installer/README.md new file mode 100644 index 0000000..23b959d --- /dev/null +++ b/doscript-installer/README.md @@ -0,0 +1,26 @@ +# DoScript Installer for PortablePython + +This folder provides an optional one-click Windows installer for PortablePython using DoScript. + +## What it does +- Downloads the PortablePython zip from GitHub +- Extracts it to the folder you choose (default shown in prompt) +- Optionally adds the extracted folder to the user PATH +- Cleans up the downloaded zip + +This is an **optional helper script** — it does not modify the repository code. + +## How to run +1. Install DoScript (or ensure the `doscript` runner is available). +2. Open a terminal in this folder. +3. Run: do install.do + +(or `doscript install.do` depending on your runner) + +## Notes +- The script targets Windows paths (e.g. `C:\PortablePython`). Adjust paths if you prefer another location. +- Adding to system PATH requires administrator rights; the script adds to the user PATH by default. +- If the archive layout changes upstream, the script still extracts the zip but may not find `python.exe` at the expected path. In that case, check the extracted folder manually. + +## License & attribution +This helper is provided as-is to simplify setup for beginners. Remove or modify as desired. diff --git a/doscript-installer/install.do b/doscript-installer/install.do new file mode 100644 index 0000000..b89cd83 --- /dev/null +++ b/doscript-installer/install.do @@ -0,0 +1,32 @@ +# Generated by DoScript Visual IDE +# PortablePython Installer + +# Script Start +say "=== PortablePython Installer ===" + +global_variable = confirm + +ask confirm "Would you like to install PortablePython? (y/n)" + +if confirm == "y" + say "Installing..." + + # Create install folder + make folder "C:/PortablePython" + + # Download archive + download "https://github.com/oskaritimperi/portablepython/archive/refs/heads/master.zip" to "C:/PortablePython/portablepython.zip" + + # Extract files + unzip "C:/PortablePython/portablepython.zip" to "C:/PortablePython" + + # Optional: add python to PATH + path add "C:/PortablePython/portablepython-master" + + # Remove zip after extraction + delete "C:/PortablePython/portablepython.zip" + + say "Installation complete!" +end_if + +pause