92 lines
3.1 KiB
Bash
Executable File
92 lines
3.1 KiB
Bash
Executable File
#!/bin/sh
|
|
VERSION="1.1.0.2"
|
|
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.5/bin/x86/
|
|
|
|
OUT=$(mktemp -d /tmp/output.XXXXXXXXXX) || { echo "Failed to create temp dir"; exit 1; }
|
|
|
|
|
|
# =============================================================================================
|
|
# Build the MSI
|
|
# =============================================================================================
|
|
rm $PWD/*.aip
|
|
cp -vf $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
|
|
|
|
# copy after verison change this will correct the update for the next release
|
|
# advinst will create a new msiid that will be updated from releas to release
|
|
cp -vf $PWD/go-runtime.aip $PWD/code/go-runtime.aip
|
|
|
|
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")"
|
|
AdvancedInstaller.com /edit "$(cygpath -pw "$PWD/go-runtime.aip")" /RegisterFile System16Folder\\`basename "$i"` -registration_type Auto
|
|
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")"
|
|
AdvancedInstaller.com /edit "$(cygpath -pw "$PWD/go-runtime.aip")" /RegisterFile SystemFolder\\`basename "$i"` -registration_type Auto
|
|
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")"
|
|
AdvancedInstaller.com /edit "$(cygpath -pw "$PWD/go-runtime.aip")" /RegisterFile System64Folder\\`basename "$i"` -registration_type Auto
|
|
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
|
|
rsync -avz -e ssh $PWD/release/en/* root@192.168.11.129:/home/mario/mars/ftp/mars/AIO
|
|
|
|
|
|
|