remove the thirdparty nsProcess plugin

This commit is contained in:
Matthias Mailänder
2015-07-26 12:31:29 +02:00
parent 4d81cc262c
commit 03ace48031
3 changed files with 0 additions and 19 deletions

View File

@@ -18,7 +18,6 @@
!include "MUI2.nsh"
!include "FileFunc.nsh"
!include "WordFunc.nsh"
!include "nsProcess.nsh"
Name "OpenRA"
OutFile "OpenRA.Setup.exe"
@@ -236,17 +235,7 @@ FunctionEnd
!insertmacro Clean "un."
Section "Uninstall"
${nsProcess::FindProcess} "OpenRA.Game.exe" $R0
IntCmp $R0 0 gameRunning
${nsProcess::FindProcess} "OpenRA.exe" $R0
IntCmp $R0 0 gameRunning
${nsProcess::Unload}
Call un.Clean
Goto end
gameRunning:
MessageBox MB_OK|MB_ICONEXCLAMATION "OpenRA is running. Please close it first" /SD IDOK
abort
end:
SectionEnd
;***************************

View File

@@ -8,11 +8,6 @@ OUTPUTDIR="$4"
if [ -x /usr/bin/makensis ]; then
pushd "$SRCDIR" >/dev/null
popd >/dev/null
if [[ ! -f /usr/share/nsis/Include/nsProcess.nsh && ! -f /usr/share/nsis/Plugin/nsProcess.dll ]]; then
echo "Installing NsProcess NSIS plugin in /usr/share/nsis"
sudo unzip -qq -o ${SRCDIR}/thirdparty/download/NsProcess.zip 'Include/*' -d /usr/share/nsis
sudo unzip -qq -j -o ${SRCDIR}/thirdparty/download/NsProcess.zip 'Plugin/*' -d /usr/share/nsis/Plugins
fi
echo "Building Windows setup.exe"
makensis -V2 -DSRCDIR="$BUILTDIR" -DDEPSDIR="${SRCDIR}/thirdparty/download/windows" OpenRA.nsi
if [ $? -eq 0 ]; then