42 lines
1.2 KiB
Bash
42 lines
1.2 KiB
Bash
|
#!/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/
|
||
|
|
||
|
|
||
|
# =============================================================================================
|
||
|
# 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}
|
||
|
|