Ticket #6868: win64_r21900.patch
| File win64_r21900.patch, 6.6 KB (added by , 17 years ago) |
|---|
-
Win32/build/win32-packager.pl
183 183 my $mythtv = 'C:/mythtv/'; # this is where the entire SVN checkout lives 184 184 # so c:/mythtv/mythtv/ is the main codebase. 185 185 my $build = 'C:/mythtv/build/'; # where 'make install' installs into 186 my $mysql = 'C:/Program Files/MySQL/MySQL Server 5.1/';187 186 188 187 # Where is the users home? 189 188 # Script later creates $home\.mythtv\mysql.txt … … 198 197 $home =~ s/ /\\ /g; 199 198 $home .= '/'; # all paths should end in a slash 200 199 200 # Where are program files (32-bit)? 201 my $dosprogramfiles = ''; 202 if ( $ENV{'ProgramFiles(x86)'} ) { 203 $dosprogramfiles = $ENV{'ProgramFiles(x86)'}; 204 } else { 205 $dosprogramfiles = $ENV{'ProgramFiles'}; 206 } 207 my $programfiles = $dosprogramfiles; 208 $programfiles =~ s#\\#/#g; 201 209 210 my $mysql = $programfiles.'/MySQL/MySQL Server 5.1/'; 211 202 212 # DOS executable CMD.exe versions of the paths (for when we shell to DOS mode): 203 213 my $dosmsys = perl2dos($msys); 204 214 my $dossources = perl2dos($sources); … … 213 223 # if you setup mingw right in msys, 214 224 # so we will usually just say /mingw in the code, 215 225 # not '.$unixmingw.' or similar (see /etc/fstab) 216 my $unixsources = perl2unix($sources); 217 my $unixmythtv = perl2unix($mythtv); 218 my $unixhome = perl2unix($home); 219 my $unixbuild = perl2unix($build); 226 my $unixsources = perl2unix($sources); 227 my $unixmythtv = perl2unix($mythtv); 228 my $unixhome = perl2unix($home); 229 my $unixprogramfiles = perl2unix($programfiles); 230 my $unixbuild = perl2unix($build); 220 231 221 232 # The installer for MinGW: 222 233 my $MinGWinstaller = 'MinGW-5.1.4.exe'; … … 667 678 [ archive => $sources.'isetup-5.2.3.exe', 668 679 fetch => 'http://files.jrsoftware.org/ispack/ispack-5.2.3.exe', 669 680 comment => 'fetch inno setup setup' ], 670 [ file => "C:/Program Files/Inno Setup 5/iscc.exe",681 [ file => $programfiles.'/Inno Setup 5/iscc.exe', 671 682 exec => $dossources.'isetup-5.2.3.exe', #/silent is broken! 672 683 comment => 'Install innosetup - install ISTool, '. 673 684 'ISSP, AND encryption support.' ], … … 680 691 comment => 'fetching unrar'], 681 692 [ file => $sources.'bin/unrar.exe', 682 693 shell => ["cd ".$sources, "unzip/unzip.exe unrar-3.4.3-bin.zip"]], 683 [ file => 'C:/Program Files/Inno Setup 5/UninsHs.exe',684 shell => ['cd /c/program\ files/inno\ setup\ 5',694 [ file => $programfiles.'/Inno Setup 5/UninsHs.exe', 695 shell => ['cd "'.$unixprogramfiles.'/inno setup 5"', 685 696 $sources.'bin/unrar.exe e '.$sources.'UninsHs.rar'], 686 697 comment => 'Install innosetup' ], 687 698 [ archive => $sources.'istool-5.2.1.exe', 688 699 fetch => 'http://downloads.sourceforge.net/sourceforge'. 689 700 '/istool/istool-5.2.1.exe', 690 701 comment => 'fetching istool' ], 691 [ file => "c:/Program Files/ISTool/isxdl.dll",702 [ file => $programfiles.'/ISTool/isxdl.dll', 692 703 exec => $dossources.'istool-5.2.1.exe /silent', 693 704 comment => 'Install istool'], 694 705 [ archive => $sources.'logo_mysql_sun.gif', … … 1801 1812 [ grep => ['SERVICE_NAME',$mythtv.'testmysqlsrv.bat'], 1802 1813 exec => ['sc start mysql','nocheck']], 1803 1814 [ grep => ['does not exist',$mythtv.'testmysqlsrv.bat'], 1804 exec => [ 'C:\Program Files\MySQL\MySQL Server 5.1\bin\MySQLd-nt.exe'.1805 ' --standalone -console','nocheck']],1815 exec => [$dosprogramfiles.'\MySQL\MySQL Server 5.1\bin\MySQLd-nt.exe '. 1816 '--standalone -console','nocheck']], 1806 1817 1807 1818 1808 1819 [ always => [], … … 1811 1822 echo testing connection to a local mysql server... 1812 1823 sleep 5 1813 1824 del '.$dosmythtv.'_mysqlshow_err.txt 1814 " C:\Program Files\MySQL\MySQL Server 5.1\bin\mysqlshow.exe" -u mythtv --password=mythtv 2> '.$dosmythtv.'_mysqlshow_err.txt > '.$dosmythtv.'_mysqlshow_out.txt1825 "'.$dosprogramfiles.'\MySQL\MySQL Server 5.1\bin\mysqlshow.exe" -u mythtv --password=mythtv 2> '.$dosmythtv.'_mysqlshow_err.txt > '.$dosmythtv.'_mysqlshow_out.txt 1815 1826 type '.$dosmythtv.'_mysqlshow_out.txt >> '.$dosmythtv.'_mysqlshow_err.txt 1816 1827 del '.$dosmythtv.'_mysqlshow_out.txt 1817 1828 sleep 1 … … 1829 1840 # was there, there's no need to reconfigure the server! 1830 1841 [ grep => ['(\+--------------------\+|Access denied for user)', 1831 1842 $mythtv.'_mysqlshow_err.txt'], 1832 exec => [ 'C:\Program Files\MySQL\MySQL Server 5.1\bin\MySQLd-nt.exe '.1843 exec => [$dosprogramfiles.'\MySQL\MySQL Server 5.1\bin\MySQLd-nt.exe '. 1833 1844 '--standalone -console', 'nocheck'], 1834 1845 comment => 'See if we couldnt connect to a local mysql server. '. 1835 1846 'Please re-configure the MySQL server to start as a service.'], … … 2127 2138 comment => 'Create Packaging directory'], 2128 2139 # Move required files from inno setup to setup directory 2129 2140 [ file => $mythtv."build/isfiles/UninsHs.exe", 2130 exec => 'copy /Y " C:\Program Files\Inno Setup 5\UninsHs.exe" '.2141 exec => 'copy /Y "'.$dosprogramfiles.'\Inno Setup 5\UninsHs.exe" '. 2131 2142 $dosmythtv.'build\isfiles\UninsHs.exe', 2132 2143 comment => 'Copy UninsHs to setup directory' ], 2133 2144 [ file => $mythtv."build/isfiles/isxdl.dll", 2134 exec => 'copy /Y " C:\Program Files\ISTool\isxdl.dll" '.2145 exec => 'copy /Y "'.$dosprogramfiles.'\ISTool\isxdl.dll" '. 2135 2146 $dosmythtv.'build\isfiles\isxdl.dll', 2136 2147 comment => 'Copy isxdl.dll to setup directory' ], 2137 2148 [ file => $mythtv."build/isfiles/WizModernSmallImage-IS.bmp", 2138 exec => 'copy /Y " C:\Program Files\Inno Setup 5'.2149 exec => 'copy /Y "'.$dosprogramfiles.'\Inno Setup 5'. 2139 2150 '\WizModernSmallImage-IS.bmp" '. 2140 2151 $dosmythtv.'build\isfiles\WizModernSmallImage-IS.bmp', 2141 2152 comment => 'Copy WizModernSmallImage-IS.bmp to setup directory' ], … … 2175 2186 # Run setup 2176 2187 # [ newer => [$mythtv.'setup/MythTvSetup.exe', 2177 2188 # $mythtv.'mythtv/last_build.txt'], 2178 # exec => ['" c:\Program Files\Inno Setup 5\Compil32.exe" /cc "'.2189 # exec => ['"'.$dosprogramfiles.'\Inno Setup 5\Compil32.exe" /cc "'. 2179 2190 # $dosmythtv.'build\isfiles\mythtvsetup.iss"' ]], 2180 2191 [ newer => [$mythtv.'setup/MythTvSetup.exe', 2181 2192 $mythtv.'mythtv/last_build.txt'], 2182 2193 exec => ['cd '.$dosmythtv.'build\isfiles && '. 2183 '" c:\Program Files\Inno Setup 5\iscc.exe" "'.2194 '"'.$dosprogramfiles.'\Inno Setup 5\iscc.exe" "'. 2184 2195 $dosmythtv.'build\isfiles\mythtvsetup.iss"' ]], 2185 2196 2186 2197 ;
