summaryrefslogtreecommitdiff
path: root/os/os2/installer/download_opensfx.cmd
diff options
context:
space:
mode:
Diffstat (limited to 'os/os2/installer/download_opensfx.cmd')
-rw-r--r--os/os2/installer/download_opensfx.cmd21
1 files changed, 21 insertions, 0 deletions
diff --git a/os/os2/installer/download_opensfx.cmd b/os/os2/installer/download_opensfx.cmd
new file mode 100644
index 000000000..0a918b95f
--- /dev/null
+++ b/os/os2/installer/download_opensfx.cmd
@@ -0,0 +1,21 @@
+@echo off
+if "%1" == "" goto err
+if "%2" == "" goto err
+
+echo Downloading OpenSFX...
+
+%1\wget http://binaries.openttd.org/installer/opensfx-OPENSFX_VERSION.7z -O %2/data/opensfx.7z
+
+echo Extracting OpenSFX...
+
+%1\7za x -y -O%2/data %2/data/opensfx.7z
+del %1\data\opensfx.7z /n
+
+echo OpenSFX has been installed.
+goto end
+
+:err
+echo This batch file is only intended for use by the OpenTTD installer.
+echo Please visit www.openttd.org for details on downloading OpenSFX.
+
+:end