685 lines
31 KiB
Bash
Executable File
685 lines
31 KiB
Bash
Executable File
#!/bin/sh
|
|
VERSION="1.1.0.0"
|
|
KELSRUN="8.6.2"
|
|
LEGACYRUN="1_0_0"
|
|
RICKRUN="2_2_2"
|
|
CYGVER="1.7.24-1"
|
|
ZLIBVER="128"
|
|
ZLIBWAPIVER="125"
|
|
VB1VER="100"
|
|
VB2VER="200"
|
|
VB3VER="300"
|
|
VB4VER="400"
|
|
VB5VER="50"
|
|
VB6VER="60sp6"
|
|
VC1VER="10"
|
|
VC2002VER="70sp1"
|
|
VC2003VER="71sp1"
|
|
AUTOITVER="3.3.9.19"
|
|
OPENSSLVER="1_0_1e"
|
|
SDL1VER="1.2.15"
|
|
SDL2VER="2.0.0"
|
|
|
|
ADVINSTPATH=/cygdrive/c/Programme/Caphyon/Advanced\ Installer\ 10.3/bin/x86/
|
|
|
|
OUT=$(mktemp -d /tmp/output.XXXXXXXXXX) || { echo "Failed to create temp dir"; exit 1; }
|
|
|
|
rm -rf $PWD/binary/*/*
|
|
|
|
# =============================================================================================
|
|
# Old Runtimes
|
|
# =============================================================================================
|
|
mkdir -p $OUT/yumeyao/x86
|
|
echo "Downloading file"
|
|
if [ -e $PWD/sources/vcrun$VC1VER.zip.sha1sum ]
|
|
then
|
|
SHA1SUM=`cat $PWD/sources/vcrun$VC1VER.zip.sha1sum | cut -d " " -f1`
|
|
CHECKSUM=`sha1sum $PWD/sources/vcrun$VC1VER.zip | cut -d " " -f1`
|
|
if [ "$CHECKSUM" = "$SHA1SUM" ]
|
|
then
|
|
7z x $PWD/sources/vcrun$VC1VER.zip -o$OUT/yumeyao/x86
|
|
fi
|
|
else
|
|
wget -O $PWD/sources/vcrun$VC1VER.zip http://majorgeeks.mirror.internode.on.net/graphics/required_dlls.zip
|
|
sha1sum $PWD/sources/vcrun$VC1VER.zip > $PWD/sources/vcrun$VC1VER.zip.sha1sum
|
|
7z x $PWD/sources/vcrun$VC1VER.zip -o$OUT/yumeyao/x86
|
|
fi
|
|
for i in $OUT/yumeyao/x86/*; do mv $i `echo $i | tr [:upper:] [:lower:]`; done
|
|
if [ -e $PWD/sources/YumeYao_MicrosoftOldRuntimeLibraries_Addon_$LEGACYRUN.7z.sha1sum ]
|
|
then
|
|
SHA1SUM=`cat $PWD/sources/YumeYao_MicrosoftOldRuntimeLibraries_Addon_$LEGACYRUN.7z.sha1sum | cut -d " " -f1`
|
|
CHECKSUM=`sha1sum $PWD/sources/YumeYao_MicrosoftOldRuntimeLibraries_Addon_$LEGACYRUN.7z | cut -d " " -f1`
|
|
if [ "$CHECKSUM" = "$SHA1SUM" ]
|
|
then
|
|
7z x $PWD/sources/YumeYao_MicrosoftOldRuntimeLibraries_Addon_$LEGACYRUN.7z -o$OUT/yumeyao/x86
|
|
fi
|
|
else
|
|
wget -O $PWD/sources/YumeYao_MicrosoftOldRuntimeLibraries_Addon_1_0_0.7z http://download1328.mediafire.com/1c38l3r5m3og/bzwsjw0z3dv0j6b/YumeYao_MicrosoftOldRuntimeLibraries_Addon_$LEGACYRUN.7z
|
|
sha1sum $PWD/sources/YumeYao_MicrosoftOldRuntimeLibraries_Addon_$LEGACYRUN.7z > $PWD/sources/YumeYao_MicrosoftOldRuntimeLibraries_Addon_$LEGACYRUN.7z.sha1sum
|
|
7z x $PWD/sources/YumeYao_MicrosoftOldRuntimeLibraries_Addon_$LEGACYRUN.7z -o$OUT/yumeyao/x86
|
|
fi
|
|
mv -vf $OUT/yumeyao/x86/*/* $OUT/yumeyao/x86/
|
|
for i in $OUT/yumeyao/x86/*; do mv $i `echo $i | tr [:upper:] [:lower:]`; done
|
|
mv -vf $OUT/yumeyao/x86/vb40032.dll $PWD/binary/system32
|
|
mv -vf $OUT/yumeyao/x86/*.dll $PWD/binary/system16
|
|
|
|
# =============================================================================================
|
|
# Kels Runtime
|
|
# =============================================================================================
|
|
mkdir -p $OUT/kels/x86/cab
|
|
echo "Downloading file"
|
|
if [ -e $PWD/sources/Kels_Runtimes_addon_v$KELSRUN.7z.sha1sum ]
|
|
then
|
|
SHA1SUM=`cat $PWD/sources/Kels_Runtimes_addon_v$KELSRUN.7z.sha1sum | cut -d " " -f1`
|
|
CHECKSUM=`sha1sum $PWD/sources/Kels_Runtimes_addon_v$KELSRUN.7z | cut -d " " -f1`
|
|
if [ "$CHECKSUM" = "$SHA1SUM" ]
|
|
then
|
|
7z x $PWD/sources/Kels_Runtimes_addon_v$KELSRUN.7z -o$OUT/kels/x86/cab
|
|
cabextract -d $OUT/kels/x86/ $OUT/kels/x86/cab/*.cab
|
|
fi
|
|
else
|
|
wget -O $PWD/sources/Kels_Runtimes_addon_v$KELSRUN.7z http://www.wpiw.net/downloads/addons/Kels_Runtimes_addon_v$KELSRUN.7z
|
|
sha1sum $PWD/sources/Kels_Runtimes_addon_v$KELSRUN.7z > $PWD/sources/Kels_Runtimes_addon_v$KELSRUN.7z.sha1sum
|
|
7z x $PWD/sources/Kels_Runtimes_addon_v$KELSRUN.7z -o$OUT/kels/x86/cab
|
|
cabextract -d $OUT/kels/x86/ $OUT/kels/x86/cab/*.cab
|
|
fi
|
|
mv -vf $OUT/kels/x86/plugin.dll $PWD/binary/system16
|
|
mv -vf $OUT/kels/x86/*.dll $PWD/binary/system32
|
|
mv -vf $OUT/kels/x86/*.ocx $PWD/binary/system32
|
|
|
|
# =============================================================================================
|
|
# cygwin
|
|
# =============================================================================================
|
|
mkdir -p $OUT/cygwin/x86
|
|
mkdir -p $OUT/cygwin/x64
|
|
echo "Downloading file"
|
|
if [ -e $PWD/sources/cygwin32-$CYGVER.tar.bz2.sha1sum ]
|
|
then
|
|
SHA1SUM=`cat $PWD/sources/cygwin32-$CYGVER.tar.bz2.sha1sum | cut -d " " -f1`
|
|
CHECKSUM=`sha1sum $PWD/sources/cygwin32-$CYGVER.tar.bz2 | cut -d " " -f1`
|
|
if [ "$CHECKSUM" = "$SHA1SUM" ]
|
|
then
|
|
tar jxfv $PWD/sources/cygwin32-$CYGVER.tar.bz2 -C $OUT/cygwin/x86
|
|
fi
|
|
else
|
|
wget -O $PWD/sources/cygwin32-$CYGVER.tar.bz2 http://cygwin.digitalnova.at/x86/release/cygwin/cygwin-$CYGVER.tar.bz2
|
|
sha1sum $PWD/sources/cygwin32-$CYGVER.tar.bz2 > $PWD/sources/cygwin32-$CYGVER.tar.bz2.sha1sum
|
|
tar jxfv $PWD/sources/cygwin32-$CYGVER.tar.bz2 -C $OUT/cygwin/x86
|
|
fi
|
|
if [ -e $PWD/sources/cygwin64-$CYGVER.tar.bz2.sha1sum ]
|
|
then
|
|
SHA1SUM=`cat $PWD/sources/cygwin64-$CYGVER.tar.bz2.sha1sum | cut -d " " -f1`
|
|
CHECKSUM=`sha1sum $PWD/sources/cygwin64-$CYGVER.tar.bz2 | cut -d " " -f1`
|
|
if [ "$CHECKSUM" = "$SHA1SUM" ]
|
|
then
|
|
tar jxfv $PWD/sources/cygwin64-$CYGVER.tar.bz2 -C $OUT/cygwin/x64
|
|
fi
|
|
else
|
|
wget -O $PWD/sources/cygwin64-$CYGVER.tar.bz2 http://cygwin.digitalnova.at/x86_64/release/cygwin/cygwin-$CYGVER.tar.bz2
|
|
sha1sum $PWD/sources/cygwin64-$CYGVER.tar.bz2 > $PWD/sources/cygwin64-$CYGVER.tar.bz2.sha1sum
|
|
tar jxfv $PWD/sources/cygwin64-$CYGVER.tar.bz2 -C $OUT/cygwin/x64
|
|
fi
|
|
mv -vf $OUT/cygwin/x86/usr/bin/cygwin1.dll $PWD/binary/system32
|
|
mv -vf $OUT/cygwin/x64/usr/bin/cygwin1.dll $PWD/binary/system64
|
|
|
|
# =============================================================================================
|
|
# zlib
|
|
# =============================================================================================
|
|
mkdir -p $OUT/zlib/x86
|
|
mkdir -p $OUT/zlib/x64
|
|
echo "Downloading file"
|
|
if [ -e $PWD/sources/zlib$ZLIBVER-dll32.zip.sha1sum ]
|
|
then
|
|
SHA1SUM=`cat $PWD/sources/zlib$ZLIBVER-dll32.zip.sha1sum | cut -d " " -f1`
|
|
CHECKSUM=`sha1sum $PWD/sources/zlib$ZLIBVER-dll32.zip | cut -d " " -f1`
|
|
if [ "$CHECKSUM" = "$SHA1SUM" ]
|
|
then
|
|
7z x $PWD/sources/zlib$ZLIBVER-dll32.zip -o$OUT/zlib/x86
|
|
fi
|
|
else
|
|
wget -O $PWD/sources/zlib$ZLIBVER-dll32.zip http://zlib.net/zlib$ZLIBVER-dll.zip
|
|
sha1sum $PWD/sources/zlib$ZLIBVER-dll32.zip > $PWD/sources/zlib$ZLIBVER-dll32.zip.sha1sum
|
|
7z x $PWD/sources/zlib$ZLIBVER-dll32.zip -o$OUT/zlib/x86
|
|
fi
|
|
if [ -e $PWD/sources/zlib$ZLIBVER-dll64.zip.sha1sum ]
|
|
then
|
|
SHA1SUM=`cat $PWD/sources/zlib$ZLIBVER-dll64.zip.sha1sum | cut -d " " -f1`
|
|
CHECKSUM=`sha1sum $PWD/sources/zlib$ZLIBVER-dll64.zip | cut -d " " -f1`
|
|
if [ "$CHECKSUM" = "$SHA1SUM" ]
|
|
then
|
|
7z x $PWD/sources/zlib$ZLIBVER-dll64.zip -o$OUT/zlib/x64
|
|
fi
|
|
else
|
|
wget -O $PWD/sources/zlib$ZLIBVER-dll64.zip http://zlib.net/zlib$ZLIBVER-dll.zip
|
|
sha1sum $PWD/sources/zlib$ZLIBVER-dll64.zip > $PWD/sources/zlib$ZLIBVER-dll64.zip.sha1sum
|
|
7z x $PWD/sources/zlib$ZLIBVER-dll64.zip -o$OUT/zlib/x64
|
|
fi
|
|
mv -vf $OUT/zlib/x86/zlib1.dll $PWD/binary/system32
|
|
mv -vf $OUT/zlib/x64/zlib1.dll $PWD/binary/system64
|
|
|
|
# =============================================================================================
|
|
# zlib wapi
|
|
# =============================================================================================
|
|
mkdir -p $OUT/zlibwapi/x86
|
|
mkdir -p $OUT/zlibwapi/x64
|
|
echo "Downloading file"
|
|
if [ -e $PWD/sources/zlibwapi$ZLIBWAPIVER-dll32.zip.sha1sum ]
|
|
then
|
|
SHA1SUM=`cat $PWD/sources/zlibwapi$ZLIBWAPIVER-dll32.zip.sha1sum | cut -d " " -f1`
|
|
CHECKSUM=`sha1sum $PWD/sources/zlibwapi$ZLIBWAPIVER-dll32.zip | cut -d " " -f1`
|
|
if [ "$CHECKSUM" = "$SHA1SUM" ]
|
|
then
|
|
7z x $PWD/sources/zlibwapi$ZLIBWAPIVER-dll32.zip -o$OUT/zlibwapi/x86
|
|
fi
|
|
else
|
|
wget -O $PWD/sources/zlibwapi$ZLIBWAPIVER-dll32.zip http://www.winimage.com/zLibDll/zlib${ZLIBWAPIVER}dll.zip
|
|
sha1sum $PWD/sources/zlibwapi$ZLIBWAPIVER-dll32.zip > $PWD/sources/zlibwapi$ZLIBWAPIVER-dll32.zip.sha1sum
|
|
7z x $PWD/sources/zlibwapi$ZLIBWAPIVER-dll32.zip -o$OUT/zlibwapi/x86
|
|
fi
|
|
if [ -e $PWD/sources/zlibwapi$ZLIBWAPIVER-dll64.zip.sha1sum ]
|
|
then
|
|
SHA1SUM=`cat $PWD/sources/zlibwapi$ZLIBWAPIVER-dll64.zip.sha1sum | cut -d " " -f1`
|
|
CHECKSUM=`sha1sum $PWD/sources/zlibwapi$ZLIBWAPIVER-dll64.zip | cut -d " " -f1`
|
|
if [ "$CHECKSUM" = "$SHA1SUM" ]
|
|
then
|
|
7z x $PWD/sources/zlibwapi$ZLIBWAPIVER-dll64.zip -o$OUT/zlibwapi/x64
|
|
fi
|
|
else
|
|
wget -O $PWD/sources/zlibwapi$ZLIBWAPIVER-dll64.zip http://www.winimage.com/zLibDll/zlib${ZLIBWAPIVER}dll.zip
|
|
sha1sum $PWD/sources/zlibwapi$ZLIBWAPIVER-dll64.zip > $PWD/sources/zlibwapi$ZLIBWAPIVER-dll64.zip.sha1sum
|
|
7z x $PWD/sources/zlibwapi$ZLIBWAPIVER-dll64.zip -o$OUT/zlibwapi/x64
|
|
fi
|
|
mv -vf $OUT/zlibwapi/x86/dll32/*.dll $PWD/binary/system32
|
|
mv -vf $OUT/zlibwapi/x64/dllx64/*.dll $PWD/binary/system64
|
|
|
|
# =============================================================================================
|
|
# VB 1.0.0
|
|
# =============================================================================================
|
|
mkdir -p $OUT/vb1/x86
|
|
echo "Downloading file"
|
|
if [ -e $PWD/sources/vbrun$VB1VER.exe.sha1sum ]
|
|
then
|
|
SHA1SUM=`cat $PWD/sources/vbrun$VB1VER.exe.sha1sum | cut -d " " -f1`
|
|
CHECKSUM=`sha1sum $PWD/sources/vbrun$VB1VER.exe | cut -d " " -f1`
|
|
if [ "$CHECKSUM" = "$SHA1SUM" ]
|
|
then
|
|
7z x $PWD/sources/vbrun$VB1VER.exe -o$OUT/vb1/x86
|
|
fi
|
|
else
|
|
wget -O $PWD/sources/vbrun$VB1VER.exe http://download.microsoft.com/download/vb30/sampleaa/1/w9xnt4/en-us/vbrun$VB1VER.exe
|
|
sha1sum $PWD/sources/vbrun$VB1VER.exe > $PWD/sources/vbrun$VB1VER.exe.sha1sum
|
|
7z x $PWD/sources/vbrun$VB1VER.exe -o$OUT/vb1/x86
|
|
fi
|
|
mv -vf $OUT/vb1/x86/vbrun100.dll $PWD/binary/system16
|
|
|
|
# =============================================================================================
|
|
# VB 2.0.0
|
|
# =============================================================================================
|
|
mkdir -p $OUT/vb2/x86
|
|
echo "Downloading file"
|
|
if [ -e $PWD/sources/vbrun$VB2VER.exe.sha1sum ]
|
|
then
|
|
SHA1SUM=`cat $PWD/sources/vbrun$VB2VER.exe.sha1sum | cut -d " " -f1`
|
|
CHECKSUM=`sha1sum $PWD/sources/vbrun$VB2VER.exe | cut -d " " -f1`
|
|
if [ "$CHECKSUM" = "$SHA1SUM" ]
|
|
then
|
|
7z x $PWD/sources/vbrun$VB2VER.exe -o$OUT/vb2/x86
|
|
fi
|
|
else
|
|
wget -O $PWD/sources/vbrun$VB2VER.exe http://download.microsoft.com/download/vb30/sample39/1/w9xnt4/en-us/vbrun$VB2VER.exe
|
|
sha1sum $PWD/sources/vbrun$VB2VER.exe > $PWD/sources/vbrun$VB2VER.exe.sha1sum
|
|
7z x $PWD/sources/vbrun$VB2VER.exe -o$OUT/vb2/x86
|
|
fi
|
|
mv -vf $OUT/vb2/x86/vbrun200.dll $PWD/binary/system16
|
|
|
|
# =============================================================================================
|
|
# VB 3.0.0
|
|
# =============================================================================================
|
|
mkdir -p $OUT/vb3/x86
|
|
echo "Downloading file"
|
|
if [ -e $PWD/sources/vbrun$VB3VER.exe.sha1sum ]
|
|
then
|
|
SHA1SUM=`cat $PWD/sources/vbrun$VB3VER.exe.sha1sum | cut -d " " -f1`
|
|
CHECKSUM=`sha1sum $PWD/sources/vbrun$VB3VER.exe | cut -d " " -f1`
|
|
if [ "$CHECKSUM" = "$SHA1SUM" ]
|
|
then
|
|
7z x $PWD/sources/vbrun$VB3VER.exe -o$OUT/vb3/x86
|
|
fi
|
|
else
|
|
wget -O $PWD/sources/vbrun$VB3VER.exe http://download.microsoft.com/download/vb30/utility/1/w9xnt4/en-us/vb3run.exe
|
|
sha1sum $PWD/sources/vbrun$VB3VER.exe > $PWD/sources/vbrun$VB3VER.exe.sha1sum
|
|
7z x $PWD/sources/vbrun$VB3VER.exe -o$OUT/vb3/x86
|
|
fi
|
|
mv -vf $OUT/vb3/x86/vbrun300.dll $PWD/binary/system16
|
|
|
|
# =============================================================================================
|
|
# VB 4.0.0
|
|
# =============================================================================================
|
|
mkdir -p $OUT/vb4/x86
|
|
echo "Downloading file"
|
|
if [ -e $PWD/sources/vbrun$VB4VER.exe.sha1sum ]
|
|
then
|
|
SHA1SUM=`cat $PWD/sources/vbrun$VB4VER.exe.sha1sum | cut -d " " -f1`
|
|
CHECKSUM=`sha1sum $PWD/sources/vbrun$VB4VER.exe | cut -d " " -f1`
|
|
if [ "$CHECKSUM" = "$SHA1SUM" ]
|
|
then
|
|
7z x $PWD/sources/vbrun$VB4VER.exe -o$OUT/vb4/x86
|
|
fi
|
|
else
|
|
wget -O $PWD/sources/vbrun$VB4VER.exe http://download.microsoft.com/download/vb40ent/sample27/1/w9xnt4/en-us/vb4run.exe
|
|
sha1sum $PWD/sources/vbrun$VB4VER.exe > $PWD/sources/vbrun$VB4VER.exe.sha1sum
|
|
7z x $PWD/sources/vbrun$VB4VER.exe -o$OUT/vb4/x86
|
|
fi
|
|
for i in $OUT/vb4/x86/*; do mv $i `echo $i | tr [:upper:] [:lower:]`; done
|
|
mv -vf $OUT/vb4/x86/vb40016.dll $PWD/binary/system16
|
|
mv -vf $OUT/vb4/x86/vb40032.dll $PWD/binary/system32
|
|
|
|
# =============================================================================================
|
|
# VB 5.0.0
|
|
# =============================================================================================
|
|
mkdir -p $OUT/vb5/x86
|
|
echo "Downloading file"
|
|
if [ -e $PWD/sources/vbrun$VB5VER.exe.sha1sum ]
|
|
then
|
|
SHA1SUM=`cat $PWD/sources/vbrun$VB5VER.exe.sha1sum | cut -d " " -f1`
|
|
CHECKSUM=`sha1sum $PWD/sources/vbrun$VB5VER.exe | cut -d " " -f1`
|
|
if [ "$CHECKSUM" = "$SHA1SUM" ]
|
|
then
|
|
7z x $PWD/sources/vbrun$VB5VER.exe -o$OUT/vb5/x86
|
|
fi
|
|
else
|
|
wget -O $PWD/sources/vbrun$VB5VER.exe http://download.microsoft.com/download/vb50pro/utility/1/win98/EN-US/Msvbvm50.exe
|
|
sha1sum $PWD/sources/vbrun$VB5VER.exe > $PWD/sources/vbrun$VB5VER.exe.sha1sum
|
|
7z x $PWD/sources/vbrun$VB5VER.exe -o$OUT/vb5/x86
|
|
fi
|
|
for i in $OUT/vb5/x86/*; do mv $i `echo $i | tr [:upper:] [:lower:]`; done
|
|
rm -f $OUT/vb5/x86/w95*
|
|
mv -vf $OUT/vb5/x86/msvb*.dll $PWD/binary/system32
|
|
|
|
# =============================================================================================
|
|
# VB 6.0.0
|
|
# =============================================================================================
|
|
mkdir -p $OUT/vb6/x86
|
|
echo "Downloading file"
|
|
if [ -e $PWD/sources/vbrun$VB6VER.exe.sha1sum ]
|
|
then
|
|
SHA1SUM=`cat $PWD/sources/vbrun$VB6VER.exe.sha1sum | cut -d " " -f1`
|
|
CHECKSUM=`sha1sum $PWD/sources/vbrun$VB6VER.exe | cut -d " " -f1`
|
|
if [ "$CHECKSUM" = "$SHA1SUM" ]
|
|
then
|
|
7z x $PWD/sources/vbrun$VB6VER.exe -o$OUT/vb6/x86
|
|
fi
|
|
else
|
|
wget -O $PWD/sources/vbrun$VB6VER.exe http://download.microsoft.com/download/5/a/d/5ad868a0-8ecd-4bb0-a882-fe53eb7ef348/VB6.0-KB290887-X86.exe
|
|
sha1sum $PWD/sources/vbrun$VB6VER.exe > $PWD/sources/vbrun$VB6VER.exe.sha1sum
|
|
7z x $PWD/sources/vbrun$VB6VER.exe -o$OUT/vb6/x86
|
|
fi
|
|
7z x $OUT/vb6/x86/*.exe -o$OUT/vb6/x86
|
|
for i in $OUT/vb6/x86/*; do mv $i `echo $i | tr [:upper:] [:lower:]`; done
|
|
rm -f $OUT/vb6/x86/w95*
|
|
mv -vf $OUT/vb6/x86/msvb*.dll $PWD/binary/system32
|
|
|
|
|
|
# =============================================================================================
|
|
# Vc 7.0.0
|
|
# =============================================================================================
|
|
mkdir -p $OUT/vc70/x86/cab
|
|
mkdir -p $OUT/vc70/x86/cabsp
|
|
mkdir -p $OUT/vc70/x86/rick
|
|
echo "Downloading file"
|
|
if [ -e $PWD/sources/vcrun$VC2002VER.zip.sha1sum ]
|
|
then
|
|
SHA1SUM=`cat $PWD/sources/vcrun$VC2002VER.zip.sha1sum | cut -d " " -f1`
|
|
CHECKSUM=`sha1sum $PWD/sources/vcrun$VC2002VER.zip | cut -d " " -f1`
|
|
if [ "$CHECKSUM" = "$SHA1SUM" ]
|
|
then
|
|
7z x $PWD/sources/vcrun$VC2002VER.zip -o$OUT/vc70/x86
|
|
fi
|
|
else
|
|
wget -O $PWD/sources/vcrun$VC2002VER.zip http://spench.net/drupal/files/MFC7.0_Runtime.zip
|
|
sha1sum $PWD/sources/vcrun$VC2002VER.zip > $PWD/sources/vcrun$VC2002VER.zip.sha1sum
|
|
7z x $PWD/sources/vcrun$VC2002VER.zip -o$OUT/vc70/x86
|
|
fi
|
|
for i in $OUT/vc70/x86/*; do mv $i `echo $i | tr [:upper:] [:lower:]`; done
|
|
if [ -e $PWD/sources/vcrun$VC2002VER-KB837234.exe.sha1sum ]
|
|
then
|
|
SHA1SUM=`cat $PWD/sources/vcrun$VC2002VER-KB837234.exe.sha1sum | cut -d " " -f1`
|
|
CHECKSUM=`sha1sum $PWD/sources/vcrun$VC2002VER-KB837234.exe | cut -d " " -f1`
|
|
if [ "$CHECKSUM" = "$SHA1SUM" ]
|
|
then
|
|
cabextract -d $OUT/vc70/x86/cabsp $PWD/sources/vcrun$VC2002VER-KB837234.exe
|
|
fi
|
|
else
|
|
wget -O $PWD/sources/vcrun$VC2002VER-KB837234.exe http://download.microsoft.com/download/4/1/a/41a70f33-ee71-417c-b830-4d3bd0acac13/VS7.0sp1-KB837234-X86.exe
|
|
sha1sum $PWD/sources/vcrun$VC2002VER-KB837234.exe > $PWD/sources/vcrun$VC2002VER-KB837234.exe.sha1sum
|
|
cabextract -d $OUT/vc70/x86/cabsp $PWD/sources/vcrun$VC2002VER-KB837234.exe
|
|
fi
|
|
for i in $OUT/vc70/x86/cabsp/*; do mv $i `echo $i | tr [:upper:] [:lower:]`; done
|
|
for i in atl70 msvcr70 msvci70 mfc70 mfc70u mfc70deu mfc70esp mfc70fra mfc70ita mfc70chs mfc70cht mfc70jpn mfc70kor msvcp70
|
|
do
|
|
mv -vf $OUT/vc70/x86/cabsp/fl_${i}_dll_* $OUT/vc70/x86/${i}.dll
|
|
mv -vf $OUT/vc70/x86/cabsp/fl_${i}_dll__* $OUT/vc70/x86/${i}.dll
|
|
done
|
|
if [ -e $PWD/sources/vcrun$VC2002VER-KB924642.exe.sha1sum ]
|
|
then
|
|
SHA1SUM=`cat $PWD/sources/vcrun$VC2002VER-KB924642.exe.sha1sum | cut -d " " -f1`
|
|
CHECKSUM=`sha1sum $PWD/sources/vcrun$VC2002VER-KB924642.exe | cut -d " " -f1`
|
|
if [ "$CHECKSUM" = "$SHA1SUM" ]
|
|
then
|
|
cabextract -d $OUT/vc70/x86/cab $PWD/sources/vcrun$VC2002VER-KB924642.exe
|
|
fi
|
|
else
|
|
wget -O $PWD/sources/vcrun$VC2002VER-KB924642.exe http://download.microsoft.com/download/6/b/e/6be11d8a-e0c7-429c-ac8c-9860e313ced9/VS7.0sp1-KB924642-X86.exe
|
|
sha1sum $PWD/sources/vcrun$VC2002VER-KB924642.exe > $PWD/sources/vcrun$VC2002VER-KB924642.exe.sha1sum
|
|
cabextract -d $OUT/vc70/x86/cab $PWD/sources/vcrun$VC2002VER-KB924642.exe
|
|
fi
|
|
for i in $OUT/vc70/x86/cab/*; do mv $i `echo $i | tr [:upper:] [:lower:]`; done
|
|
for i in atl70 msvcr70 msvci70 mfc70 mfc70u mfc70deu mfc70esp mfc70fra mfc70ita mfc70chs mfc70cht mfc70jpn mfc70kor msvcp70
|
|
do
|
|
mv -vf $OUT/vc70/x86/cab/fl_${i}_dll_* $OUT/vc70/x86/${i}.dll
|
|
mv -vf $OUT/vc70/x86/cab/fl_${i}_dll__* $OUT/vc70/x86/${i}.dll
|
|
done
|
|
if [ -e $PWD/sources/Ricks-YumeYao_MicrosoftVC7891012RuntimeLibraries_Addon_$RICKRUN.7z.sha1sum ]
|
|
then
|
|
SHA1SUM=`cat $PWD/sources/Ricks-YumeYao_MicrosoftVC7891012RuntimeLibraries_Addon_$RICKRUN.7z.sha1sum | cut -d " " -f1`
|
|
CHECKSUM=`sha1sum $PWD/sources/Ricks-YumeYao_MicrosoftVC7891012RuntimeLibraries_Addon_$RICKRUN.7z | cut -d " " -f1`
|
|
if [ "$CHECKSUM" = "$SHA1SUM" ]
|
|
then
|
|
7z x $PWD/sources/Ricks-YumeYao_MicrosoftVC7891012RuntimeLibraries_Addon_$RICKRUN.7z -o$OUT/vc70/x86/rick
|
|
fi
|
|
else
|
|
wget -O $PWD/sources/Ricks-YumeYao_MicrosoftVC7891012RuntimeLibraries_Addon_$RICKRUN.7z http://brianspcrepair.com/ricktendo/Archive/Ricks-YumeYao_MicrosoftVC7891012RuntimeLibraries_Addon_$RICKRUN.7z
|
|
sha1sum $PWD/sources/Ricks-YumeYao_MicrosoftVC7891012RuntimeLibraries_Addon_$RICKRUN.7z > $PWD/sources/Ricks-YumeYao_MicrosoftVC7891012RuntimeLibraries_Addon_$RICKRUN.7z.sha1sum
|
|
7z x $PWD/sources/Ricks-YumeYao_MicrosoftVC7891012RuntimeLibraries_Addon_$RICKRUN.7z -o$OUT/vc70/x86/rick
|
|
fi
|
|
for i in $OUT/vc70/x86/rick/*; do mv $i `echo $i | tr [:upper:] [:lower:]`; done
|
|
for i in atl70 msvcr70 msvci70 mfc70 mfc70u mfc70deu mfc70esp mfc70fra mfc70ita mfc70chs mfc70cht mfc70jpn mfc70kor msvcp70
|
|
do
|
|
mv -vf $OUT/vc70/x86/rick/${i}.dll $OUT/vc70/x86/${i}.dll
|
|
done
|
|
mv -vf $OUT/vc70/x86/*.dll $PWD/binary/system32
|
|
|
|
# =============================================================================================
|
|
# Vc 7.1.0
|
|
# =============================================================================================
|
|
mkdir -p $OUT/vc71/x86/cabsp
|
|
mkdir -p $OUT/vc71/x86/cab
|
|
mkdir -p $OUT/vc71/x86/rick
|
|
echo "Downloading file"
|
|
if [ -e $PWD/sources/vcrun$VC2003VER.zip.sha1sum ]
|
|
then
|
|
SHA1SUM=`cat $PWD/sources/vcrun$VC2003VER.zip.sha1sum | cut -d " " -f1`
|
|
CHECKSUM=`sha1sum $PWD/sources/vcrun$VC2003VER.zip | cut -d " " -f1`
|
|
if [ "$CHECKSUM" = "$SHA1SUM" ]
|
|
then
|
|
7z x $PWD/sources/vcrun$VC2003VER.zip -o$OUT/vc71/x86
|
|
fi
|
|
else
|
|
wget -O $PWD/sources/vcrun$VC2003VER.zip http://spench.net/drupal/files/MFC7.1_Runtime.zip
|
|
sha1sum $PWD/sources/vcrun$VC2003VER.zip > $PWD/sources/vcrun$VC2003VER.zip.sha1sum
|
|
7z x $PWD/sources/vcrun$VC2003VER.zip -o$OUT/vc71/x86
|
|
fi
|
|
for i in $OUT/vc71/x86/*; do mv $i `echo $i | tr [:upper:] [:lower:]`; done
|
|
if [ -e $PWD/sources/vcrun$VC2003VER-KB918007.exe.sha1sum ]
|
|
then
|
|
SHA1SUM=`cat $PWD/sources/vcrun$VC2003VER-KB918007.exe.sha1sum | cut -d " " -f1`
|
|
CHECKSUM=`sha1sum $PWD/sources/vcrun$VC2003VER-KB918007.exe | cut -d " " -f1`
|
|
if [ "$CHECKSUM" = "$SHA1SUM" ]
|
|
then
|
|
cabextract -d $OUT/vc71/x86/cabsp $PWD/sources/vcrun$VC2003VER-KB918007.exe
|
|
fi
|
|
else
|
|
wget -O $PWD/sources/vcrun$VC2003VER-KB918007.exe http://download.microsoft.com/download/b/5/f/b5f05fd6-2509-4a88-b70c-e0b1d1312852/VS7.1sp1-KB918007-X86.exe
|
|
sha1sum $PWD/sources/vcrun$VC2003VER-KB918007.exe > $PWD/sources/vcrun$VC2003VER-KB918007.exe.sha1sum
|
|
cabextract -d $OUT/vc71/x86/cabsp $PWD/sources/vcrun$VC2003VER-KB918007.exe
|
|
fi
|
|
for i in $OUT/vc71/x86/cabsp/*; do mv $i `echo $i | tr [:upper:] [:lower:]`; done
|
|
for i in atl71 msvcr71 msvci71 mfc71 mfc71u mfc71deu mfc71esp mfc71fra mfc71ita mfc71chs mfc71cht mfc71jpn mfc71kor msvcp71
|
|
do
|
|
mv -vf $OUT/vc71/x86/cabsp/fl_${i}_dll_* $OUT/vc71/x86/${i}.dll
|
|
mv -vf $OUT/vc71/x86/cabsp/fl_${i}_dll__* $OUT/vc71/x86/${i}.dll
|
|
done
|
|
if [ -e $PWD/sources/vcrun$VC2003VER-KB927696.exe.sha1sum ]
|
|
then
|
|
SHA1SUM=`cat $PWD/sources/vcrun$VC2003VER-KB927696.sha1sum | cut -d " " -f1`
|
|
CHECKSUM=`sha1sum $PWD/sources/vcrun$VC2003VER-KB927696.exe | cut -d " " -f1`
|
|
if [ "$CHECKSUM" = "$SHA1SUM" ]
|
|
then
|
|
cabextract -d $OUT/vc71/x86/cab $PWD/sources/vcrun$VC2003VER-KB927696.exe
|
|
fi
|
|
else
|
|
wget -O $PWD/sources/vcrun$VC2003VER-KB927696.exe http://download.microsoft.com/download/f/0/5/f052914b-3a0f-4e90-b039-395005f77ef2/VS7.1sp1-KB927696-X86.exe
|
|
sha1sum $PWD/sources/vcrun$VC2003VER-KB927696.exe > $PWD/sources/vcrun$VC2003VER-KB927696.exe.sha1sum
|
|
cabextract -d $OUT/vc71/x86/cab $PWD/sources/vcrun$VC2003VER-KB927696.exe
|
|
fi
|
|
for i in $OUT/vc71/x86/cab/*; do mv $i `echo $i | tr [:upper:] [:lower:]`; done
|
|
for i in atl71 msvcr71 msvci71 mfc71 mfc71u mfc71deu mfc71esp mfc71fra mfc71ita mfc71chs mfc71cht mfc71jpn mfc71kor msvcp71
|
|
do
|
|
mv -vf $OUT/vc71/x86/cab/fl_${i}_dll_* $OUT/vc71/x86/${i}.dll
|
|
mv -vf $OUT/vc71/x86/cab/fl_${i}_dll__* $OUT/vc71/x86/${i}.dll
|
|
done
|
|
if [ -e $PWD/sources/Ricks-YumeYao_MicrosoftVC7891012RuntimeLibraries_Addon_$RICKRUN.7z.sha1sum ]
|
|
then
|
|
SHA1SUM=`cat $PWD/sources/Ricks-YumeYao_MicrosoftVC7891012RuntimeLibraries_Addon_$RICKRUN.7z.sha1sum | cut -d " " -f1`
|
|
CHECKSUM=`sha1sum $PWD/sources/Ricks-YumeYao_MicrosoftVC7891012RuntimeLibraries_Addon_$RICKRUN.7z | cut -d " " -f1`
|
|
if [ "$CHECKSUM" = "$SHA1SUM" ]
|
|
then
|
|
7z x $PWD/sources/Ricks-YumeYao_MicrosoftVC7891012RuntimeLibraries_Addon_$RICKRUN.7z -o$OUT/vc71/x86/rick
|
|
fi
|
|
else
|
|
wget -O $PWD/sources/Ricks-YumeYao_MicrosoftVC7891012RuntimeLibraries_Addon_$RICKRUN.7z http://brianspcrepair.com/ricktendo/Archive/Ricks-YumeYao_MicrosoftVC7891012RuntimeLibraries_Addon_$RICKRUN.7z
|
|
sha1sum $PWD/sources/Ricks-YumeYao_MicrosoftVC7891012RuntimeLibraries_Addon_$RICKRUN.7z > $PWD/sources/Ricks-YumeYao_MicrosoftVC7891012RuntimeLibraries_Addon_$RICKRUN.7z.sha1sum
|
|
7z x $PWD/sources/Ricks-YumeYao_MicrosoftVC7891012RuntimeLibraries_Addon_$RICKRUN.7z -o$OUT/vc71/x86/rick
|
|
fi
|
|
for i in $OUT/vc71/x86/rick/*; do mv $i `echo $i | tr [:upper:] [:lower:]`; done
|
|
for i in atl71 msvcr71 msvci71 mfc71 mfc71u mfc71deu mfc71esp mfc71fra mfc71ita mfc71chs mfc71cht mfc71jpn mfc71kor msvcp71
|
|
do
|
|
mv -vf $OUT/vc71/x86/rick/${i}.dll $OUT/vc71/x86/${i}.dll
|
|
done
|
|
mv -vf $OUT/vc71/x86/*.dll $PWD/binary/system32
|
|
|
|
# =============================================================================================
|
|
# AutoIt
|
|
# =============================================================================================
|
|
mkdir -p $OUT/autoit/x86/cab
|
|
echo "Downloading file"
|
|
if [ -e $PWD/sources/autoit-v$AUTOITVER.zip.sha1sum ]
|
|
then
|
|
SHA1SUM=`cat $PWD/sources/autoit-v$AUTOITVER.zip.sha1sum | cut -d " " -f1`
|
|
CHECKSUM=`sha1sum $PWD/sources/autoit-v$AUTOITVER.zip | cut -d " " -f1`
|
|
if [ "$CHECKSUM" = "$SHA1SUM" ]
|
|
then
|
|
7z x $PWD/sources/autoit-v$AUTOITVER.zip -o$OUT/autoit/x86/cab
|
|
fi
|
|
else
|
|
wget -O $PWD/sources/autoit-v$AUTOITVER.zip http://www.autoitscript.com/autoit3/files/beta/autoit/autoit-v$AUTOITVER.zip
|
|
sha1sum $PWD/sources/autoit-v$AUTOITVER.zip > $PWD/sources/autoit-v$AUTOITVER.zip.sha1sum
|
|
7z x $PWD/sources/autoit-v$AUTOITVER.zip -o$OUT/autoit/x86/cab
|
|
fi
|
|
for i in $OUT/autoit/x86/cab/install/AutoItX/*; do mv $i `echo $i | tr [:upper:] [:lower:]`; done
|
|
for i in autoitx3 autoitx3_x64
|
|
do
|
|
mv -vf $OUT/autoit/x86/cab/install/AutoItX/${i}.dll $OUT/autoit/x86/${i}.dll
|
|
done
|
|
mv -vf $OUT/autoit/x86/autoitx3.dll $PWD/binary/system32
|
|
mv -vf $OUT/autoit/x86/autoitx3_x64.dll $PWD/binary/system64
|
|
|
|
|
|
# =============================================================================================
|
|
# OpenSSL
|
|
# =============================================================================================
|
|
mkdir -p $OUT/openssl/x86
|
|
mkdir -p $OUT/openssl/x64
|
|
echo "Downloading file"
|
|
if [ -e $PWD/sources/Win32OpenSSL_Light-$OPENSSLVER.exe.sha1sum ]
|
|
then
|
|
SHA1SUM=`cat $PWD/sources/Win32OpenSSL_Light-$OPENSSLVER.exe.sha1sum | cut -d " " -f1`
|
|
CHECKSUM=`sha1sum $PWD/sources/Win32OpenSSL_Light-$OPENSSLVER.exe | cut -d " " -f1`
|
|
if [ "$CHECKSUM" = "$SHA1SUM" ]
|
|
then
|
|
$PWD/tools/innounp/innounp.exe -x -d"$(cygpath -pw "$OUT/openssl/x86")" "$(cygpath -pw "$PWD/sources/Win32OpenSSL_Light-$OPENSSLVER.exe")"
|
|
fi
|
|
else
|
|
wget -O $PWD/sources/Win32OpenSSL_Light-$OPENSSLVER.exe http://slproweb.com/download/Win32OpenSSL_Light-$OPENSSLVER.exe
|
|
sha1sum $PWD/sources/Win32OpenSSL_Light-$OPENSSLVER.exe > $PWD/sources/Win32OpenSSL_Light-$OPENSSLVER.exe.sha1sum
|
|
$PWD/tools/innounp/innounp.exe -x -d"$(cygpath -pw "$OUT/openssl/x86")" "$(cygpath -pw "$PWD/sources/Win32OpenSSL_Light-$OPENSSLVER.exe")"
|
|
fi
|
|
if [ -e $PWD/sources/Win64OpenSSL_Light-$OPENSSLVER.exe.sha1sum ]
|
|
then
|
|
SHA1SUM=`cat $PWD/sources/Win64OpenSSL_Light-$OPENSSLVER.exe.sha1sum | cut -d " " -f1`
|
|
CHECKSUM=`sha1sum $PWD/sources/Win64OpenSSL_Light-$OPENSSLVER.exe | cut -d " " -f1`
|
|
if [ "$CHECKSUM" = "$SHA1SUM" ]
|
|
then
|
|
$PWD/tools/innounp/innounp.exe -x -d"$(cygpath -pw "$OUT/openssl/x64")" "$(cygpath -pw "$PWD/sources/Win64OpenSSL_Light-$OPENSSLVER.exe")"
|
|
fi
|
|
else
|
|
wget -O $PWD/sources/Win64OpenSSL_Light-$OPENSSLVER.exe http://slproweb.com/download/Win32OpenSSL_Light-$OPENSSLVER.exe
|
|
sha1sum $PWD/sources/Win64OpenSSL_Light-$OPENSSLVER.exe > $PWD/sources/Win64OpenSSL_Light-$OPENSSLVER.exe.sha1sum
|
|
$PWD/tools/innounp/innounp.exe -x -d"$(cygpath -pw "$OUT/openssl/x64")" "$(cygpath -pw "$PWD/sources/Win64OpenSSL_Light-$OPENSSLVER.exe")"
|
|
fi
|
|
mv -vf $OUT/openssl/x86/\{app\}/*.dll $PWD/binary/system32
|
|
mv -vf $OUT/openssl/x64/\{app\}/*.dll $PWD/binary/system64
|
|
|
|
# =============================================================================================
|
|
# SDL 1
|
|
# =============================================================================================
|
|
mkdir -p $OUT/sdl1/x86
|
|
mkdir -p $OUT/sdl1/x64
|
|
echo "Downloading file"
|
|
if [ -e $PWD/sources/SDL-$SDL1VER-win32-x86.zip.sha1sum ]
|
|
then
|
|
SHA1SUM=`cat $PWD/sources/SDL-$SDL1VER-win32-x86.zip.sha1sum | cut -d " " -f1`
|
|
CHECKSUM=`sha1sum $PWD/sources/SDL-$SDL1VER-win32-x86.zip | cut -d " " -f1`
|
|
if [ "$CHECKSUM" = "$SHA1SUM" ]
|
|
then
|
|
7z x $PWD/sources/SDL-$SDL1VER-win32-x86.zip -o$OUT/sdl1/x86
|
|
fi
|
|
else
|
|
wget -O $PWD/sources/SDL-$SDL1VER-win32-x86.zip http://www.libsdl.org/release/SDL-$SDL1VER-win32.zip
|
|
sha1sum $PWD/sources/SDL-$SDL1VER-win32-x86.zip > $PWD/sources/SDL-$SDL1VER-win32-x86.zip.sha1sum
|
|
7z x $PWD/sources/SDL-$SDL1VER-win32-x86.zip -o$OUT/sdl1/x86
|
|
fi
|
|
if [ -e $PWD/sources/SDL-$SDL1VER-win32-x64.zip.sha1sum ]
|
|
then
|
|
SHA1SUM=`cat $PWD/sources/SDL-$SDL1VER-win32-x64.zip.sha1sum | cut -d " " -f1`
|
|
CHECKSUM=`sha1sum $PWD/sources/SDL-$SDL1VER-win32-x64.zip | cut -d " " -f1`
|
|
if [ "$CHECKSUM" = "$SHA1SUM" ]
|
|
then
|
|
7z x $PWD/sources/SDL-$SDL1VER-win32-x64.zip -o$OUT/sdl1/x64
|
|
fi
|
|
else
|
|
wget -O $PWD/sources/SDL-$SDL1VER-win32-x64.zip http://www.libsdl.org/release/SDL-$SDL1VER-win32-x64.zip
|
|
sha1sum $PWD/sources/SDL-$SDL1VER-win32-x64.zip > $PWD/sources/SDL-$SDL1VER-win32-x64.zip.sha1sum
|
|
7z x $PWD/sources/SDL-$SDL1VER-win32-x64.zip -o$OUT/sdl1/x64
|
|
fi
|
|
mv -vf $OUT/sdl1/x86/*.dll $PWD/binary/system32
|
|
mv -vf $OUT/sdl1/x64/*.dll $PWD/binary/system64
|
|
|
|
# =============================================================================================
|
|
# SDL 2
|
|
# =============================================================================================
|
|
mkdir -p $OUT/sdl2/x86
|
|
mkdir -p $OUT/sdl2/x64
|
|
echo "Downloading file"
|
|
if [ -e $PWD/sources/SDL2-$SDL2VER-win32-x86.zip.sha1sum ]
|
|
then
|
|
SHA1SUM=`cat $PWD/sources/SDL2-$SDL2VER-win32-x86.zip.sha1sum | cut -d " " -f1`
|
|
CHECKSUM=`sha1sum $PWD/sources/SDL2-$SDL2VER-win32-x86.zip | cut -d " " -f1`
|
|
if [ "$CHECKSUM" = "$SHA1SUM" ]
|
|
then
|
|
7z x $PWD/sources/SDL2-$SDL2VER-win32-x86.zip -o$OUT/sdl2/x86
|
|
fi
|
|
else
|
|
wget -O $PWD/sources/SDL2-$SDL2VER-win32-x86.zip http://www.libsdl.org/release/SDL2-$SDL2VER-win32-x86.zip
|
|
sha1sum $PWD/sources/SDL2-$SDL2VER-win32-x86.zip > $PWD/sources/SDL2-$SDL2VER-win32-x86.zip.sha1sum
|
|
7z x $PWD/sources/SDL2-$SDL2VER-win32-x86.zip -o$OUT/sdl2/x86
|
|
fi
|
|
if [ -e $PWD/sources/SDL2-$SDL2VER-win32-x64.zip.sha1sum ]
|
|
then
|
|
SHA1SUM=`cat $PWD/sources/SDL2-$SDL2VER-win32-x64.zip.sha1sum | cut -d " " -f1`
|
|
CHECKSUM=`sha1sum $PWD/sources/SDL2-$SDL2VER-win32-x64.zip | cut -d " " -f1`
|
|
if [ "$CHECKSUM" = "$SHA1SUM" ]
|
|
then
|
|
7z x $PWD/sources/SDL2-$SDL2VER-win32-x64.zip -o$OUT/sdl2/x64
|
|
fi
|
|
else
|
|
wget -O $PWD/sources/SDL2-$SDL2VER-win32-x64.zip http://www.libsdl.org/release/SDL2-$SDL2VER-win32-x64.zip
|
|
sha1sum $PWD/sources/SDL2-$SDL2VER-win32-x64.zip > $PWD/sources/SDL2-$SDL2VER-win32-x64.zip.sha1sum
|
|
7z x $PWD/sources/SDL2-$SDL2VER-win32-x64.zip -o$OUT/sdl2/x64
|
|
fi
|
|
mv -vf $OUT/sdl2/x86/*.dll $PWD/binary/system32
|
|
mv -vf $OUT/sdl2/x64/*.dll $PWD/binary/system64
|
|
|
|
# =============================================================================================
|
|
# Build the AIORuntimes.dll and exe
|
|
# =============================================================================================
|
|
rm $PWD/*.{o,rc,res}
|
|
|
|
sed -e "s/1.2.3.4/${VERSION}/g" -e "s/1, 2, 3, 4/${VERSION//./, }/g" $PWD/code/AIORuntimes.rc > $PWD/version.rc
|
|
windres -i $PWD/version.rc -O coff -o $PWD/version.res
|
|
gcc -mwindows -c -o $PWD/AIORuntimes_dll.o $PWD/code/AIORuntimes_dll.c
|
|
gcc -mwindows -shared $PWD/version.res $PWD/AIORuntimes_dll.o -o $PWD/AIORuntimes.dll
|
|
gcc -mwindows -o AIORuntimes $PWD/code/AIORuntimes_exe.c -L./ -lAIORuntimes
|
|
|
|
mv -vf $PWD/AIORuntimes.dll $PWD/binary/system32
|
|
mv -vf $PWD/AIORuntimes.exe $PWD/binary/program32
|
|
|
|
rm $PWD/*.{o,rc,res}
|
|
|
|
# =============================================================================================
|
|
# Build the MSI
|
|
# =============================================================================================
|
|
rm $PWD/*.aip
|
|
cp $PWD/code/go-runtime.aip $PWD/go-runtime.aip
|
|
|
|
OLDPATH=$PATH
|
|
export PATH=$ADVINSTPATH:$PATH
|
|
|
|
echo $PATH
|
|
echo "$(cygpath -pw "$PWD/go-runtime.aip")"
|
|
|
|
AdvancedInstaller.com /edit "$(cygpath -pw "$PWD/go-runtime.aip")" /SetVersion $VERSION
|
|
|
|
for i in $PWD/binary/system16/*
|
|
do
|
|
echo "$(cygpath -pw "$i")"
|
|
AdvancedInstaller.com /edit "$(cygpath -pw "$PWD/go-runtime.aip")" /AddFile System16Folder "$(cygpath -pw "$i")"
|
|
done
|
|
for i in $PWD/binary/system32/*
|
|
do
|
|
echo "$(cygpath -pw "$i")"
|
|
AdvancedInstaller.com /edit "$(cygpath -pw "$PWD/go-runtime.aip")" /AddFile SystemFolder "$(cygpath -pw "$i")"
|
|
done
|
|
for i in $PWD/binary/system64/*
|
|
do
|
|
echo "$(cygpath -pw "$i")"
|
|
AdvancedInstaller.com /edit "$(cygpath -pw "$PWD/go-runtime.aip")" /AddFile System64Folder "$(cygpath -pw "$i")"
|
|
done
|
|
for i in $PWD/binary/program32/*
|
|
do
|
|
echo "$(cygpath -pw "$i")"
|
|
AdvancedInstaller.com /edit "$(cygpath -pw "$PWD/go-runtime.aip")" /AddFile APPDIR "$(cygpath -pw "$i")"
|
|
done
|
|
|
|
echo "$(cygpath -pw "$PWD/release")"
|
|
|
|
AdvancedInstaller.com /edit "$(cygpath -pw "$PWD/go-runtime.aip")" /SetOutputLocation -buildname DefaultBuild -path "$(cygpath -pw "$PWD/release")"
|
|
AdvancedInstaller.com /rebuild "$(cygpath -pw "$PWD/go-runtime.aip")"
|
|
|
|
rm $PWD/*.aip
|
|
|
|
export PATH=$OLDPATH
|
|
|
|
# =============================================================================================
|
|
# Delete Temp Dirs
|
|
# =============================================================================================
|
|
rm -rf $OUT
|
|
|
|
# =============================================================================================
|
|
# Sync the releases
|
|
# =============================================================================================
|
|
rsync -avz -e ssh $PWD/release/en/* root@213.145.233.54:/home/ftp/AIO
|
|
|
|
|
|
|