update script cross compilation windows
This commit is contained in:
parent
519811fd91
commit
78223c9962
1 changed files with 8 additions and 8 deletions
|
@ -18,17 +18,17 @@ download()
|
||||||
if [ ! -e $URLPREFIX$PACK$URLSUFFIX ]
|
if [ ! -e $URLPREFIX$PACK$URLSUFFIX ]
|
||||||
then
|
then
|
||||||
echo "Downloading $PACK... [$URL$URLPREFIX$PACK$URLSUFFIX]"
|
echo "Downloading $PACK... [$URL$URLPREFIX$PACK$URLSUFFIX]"
|
||||||
wget -q $URL$URLPREFIX$PACK$URLSUFFIX
|
wget -q $URL$URLPREFIX$PACK$URLSUFFIX || exit 2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Extracting $PACK..."
|
echo "Extracting $PACK..."
|
||||||
7z x $URLPREFIX$PACK$URLSUFFIX 1> /dev/null
|
7z -y -o$BASEDIR x $URLPREFIX$PACK$URLSUFFIX 1> /dev/null || exit 2
|
||||||
|
|
||||||
RET=$?
|
RET=$?
|
||||||
|
|
||||||
if [ -d $PACK/bin ]
|
if [ -d $BASEDIR/$PACK/bin ]
|
||||||
then
|
then
|
||||||
chmod +x $PACK/bin/*.exe
|
chmod +x $BASEDIR/$PACK/bin/*.exe
|
||||||
fi
|
fi
|
||||||
|
|
||||||
return $RET
|
return $RET
|
||||||
|
@ -114,12 +114,12 @@ if [ ! -z $WINEVERSION ]
|
||||||
then
|
then
|
||||||
export BASEWINEDIR=$BASEDIR/wineversion
|
export BASEWINEDIR=$BASEDIR/wineversion
|
||||||
export WINEDIR=$BASEWINEDIR/$WINEVERSION/bin
|
export WINEDIR=$BASEWINEDIR/$WINEVERSION/bin
|
||||||
if [ ! -d $WINEDIR ]
|
if [ ! -d $WINEDIR ]
|
||||||
then
|
then
|
||||||
echo "Downloading WINE $WINEVERSION... [http://www.playonlinux.com/wine/binaries/linux-amd64/PlayOnLinux-wine-$WINEVERSION-linux-amd64.pol]"
|
echo "Downloading WINE $WINEVERSION... [http://www.playonlinux.com/wine/binaries/linux-amd64/PlayOnLinux-wine-$WINEVERSION-linux-amd64.pol]"
|
||||||
wget -q http://www.playonlinux.com/wine/binaries/linux-amd64/PlayOnLinux-wine-$WINEVERSION-linux-amd64.pol
|
wget -q http://www.playonlinux.com/wine/binaries/linux-amd64/PlayOnLinux-wine-$WINEVERSION-linux-amd64.pol
|
||||||
echo "Extracting WINE $WINEVERSION..."
|
echo "Extracting WINE $WINEVERSION... ($BASEDIR)"
|
||||||
tar xjf PlayOnLinux-wine-$WINEVERSION-linux-amd64.pol
|
tar xjf PlayOnLinux-wine-$WINEVERSION-linux-amd64.pol --directory=/opt/wincross
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -175,7 +175,7 @@ export WINEPREFIX=$BASEDIR/wine/$WINEVERSION
|
||||||
|
|
||||||
mkdir -p $WINEPREFIX
|
mkdir -p $WINEPREFIX
|
||||||
|
|
||||||
# launch WINE fot the first time
|
# launch WINE for the first time
|
||||||
wine ping
|
wine ping
|
||||||
|
|
||||||
# Copy winemenubuilder.exe to wine to avoid missing X11 warnings
|
# Copy winemenubuilder.exe to wine to avoid missing X11 warnings
|
||||||
|
|
Loading…
Reference in a new issue