From 549cabe7e8886c95ee20265fe21fee48f9ce1f08 Mon Sep 17 00:00:00 2001 From: Akkadius Date: Tue, 1 Dec 2015 15:25:26 -0600 Subject: [PATCH] Added Options 11) and 12) to eqemu_update.pl, updated to version 12 11) [Windows Server Build] :: Download Latest and Stable Server Build (Overwrites existing .exe's, includes .dll's) 12) [Windows Server .dll's] :: Download Pre-Requisite Server .dll's --- common/database_conversions.cpp | 2 +- utils/scripts/eqemu_update.pl | 56 +++++++++------------------------ 2 files changed, 15 insertions(+), 43 deletions(-) diff --git a/common/database_conversions.cpp b/common/database_conversions.cpp index fb2cc80d1..fc5877e05 100644 --- a/common/database_conversions.cpp +++ b/common/database_conversions.cpp @@ -493,7 +493,7 @@ bool Database::CheckDatabaseConversions() { /* Check for a new version of this script, the arg passed would have to be higher than the copy they have downloaded locally and they will re fetch */ - system("perl eqemu_update.pl V 11"); + system("perl eqemu_update.pl V 12"); /* Run Automatic Database Upgrade Script */ system("perl eqemu_update.pl ran_from_world"); diff --git a/utils/scripts/eqemu_update.pl b/utils/scripts/eqemu_update.pl index 02ba2ec75..358384f68 100644 --- a/utils/scripts/eqemu_update.pl +++ b/utils/scripts/eqemu_update.pl @@ -23,7 +23,7 @@ if($Config{osname}=~/linux/i){ $OS = "Linux"; } if($Config{osname}=~/Win|MS/i){ $OS = "Windows"; } #::: If current version is less than what world is reporting, then download a new one... -$current_version = 11; +$current_version = 12; if($ARGV[0] eq "V"){ if($ARGV[1] > $current_version){ @@ -119,6 +119,8 @@ if($ARGV[0] eq "installer"){ quest_files_fetch(); lua_modules_fetch(); get_remote_file("https://raw.githubusercontent.com/Akkadius/EQEmuInstall/master/lua51.dll", "lua51.dll", 1); + get_remote_file("https://raw.githubusercontent.com/Akkadius/EQEmuInstall/master/zlib1.dll", "zlib1.dll", 1); + get_remote_file("https://raw.githubusercontent.com/Akkadius/EQEmuInstall/master/libmysql.dll", "libmysql.dll", 1); #::: Database Routines print "MariaDB :: Creating Database 'peq'\n"; @@ -134,14 +136,6 @@ if($ARGV[0] eq "installer"){ main_db_management(); print "\nApplying Latest Database Updates...\n"; main_db_management(); - if($OS eq "Windows"){ - check_windows_firewall_rules(); - } - - exit; -} -if($ARGV[0] eq "firewall_rules"){ - check_windows_firewall_rules(); exit; } @@ -231,6 +225,8 @@ sub show_menu_prompt { 8 => \&quest_files_fetch, 9 => \&lua_modules_fetch, 10 => \&aa_fetch, + 11 => \&fetch_latest_windows_binaries, + 12 => \&fetch_server_dlls, 20 => \&do_update_self, 0 => \&script_exit, ); @@ -304,6 +300,8 @@ return <