diff --git a/packaging/package-all.sh b/packaging/package-all.sh index d9bad66f8d..ea5fd7c8d8 100755 --- a/packaging/package-all.sh +++ b/packaging/package-all.sh @@ -34,11 +34,11 @@ popd popd pushd linux/pkgbuild/ -#sh buildpackage.sh "ftp.open-ra.org" "httpdocs/releases/linux" "$2" "$3" "$VERSION" +sh buildpackage.sh "ftp.open-ra.org" "httpdocs/releases/linux" "$2" "$3" "$VERSION" popd pushd linux/rpm/ -#sh buildpackage.sh "ftp.open-ra.org" "httpdocs/releases/linux" "$2" "$3" "$VERSION" ~/rpmbuild +sh buildpackage.sh "ftp.open-ra.org" "httpdocs/releases/linux" "$2" "$3" "$VERSION" ~/rpmbuild popd pushd osx/ @@ -46,3 +46,10 @@ sh package-game.sh ~/openra-package/$_gitname-build "$VERSION" popd sh uploader.sh osx "$VERSION" ~/openra-package/$_gitname-build/osxbuild/OpenRA-$VERSION.zip "$2" "$3" + +pushd windows/ +makensis -DSRCDIR=~/openra-package/$_gitname-build OpenRA.nsi +mv OpenRA.exe OpenRA-$VERSION.exe +popd + +sh uploader.sh windows "$VERSION" windows/OpenRA-$VERSION.exe diff --git a/packaging/windows/OpenRA.nsi b/packaging/windows/OpenRA.nsi index 283bc67c31..0654121d53 100644 --- a/packaging/windows/OpenRA.nsi +++ b/packaging/windows/OpenRA.nsi @@ -25,7 +25,7 @@ InstallDir $PROGRAMFILES\OpenRA SetCompressor lzma !insertmacro MUI_PAGE_WELCOME -!insertmacro MUI_PAGE_LICENSE "..\..\COPYING" +!insertmacro MUI_PAGE_LICENSE "${SRCDIR}\COPYING" !insertmacro MUI_PAGE_DIRECTORY !define MUI_STARTMENUPAGE_REGISTRY_ROOT "HKCU" @@ -52,35 +52,35 @@ Var StartMenuFolder ;*************************** Section "Client" Client SetOutPath "$INSTDIR" - File "..\..\OpenRA.Game.exe" - File "..\..\OpenRA.FileFormats.dll" - File "..\..\OpenRA.Gl.dll" - File "..\..\COPYING" - File "..\..\HACKING" - File "..\..\INSTALL" - File "..\..\*.ttf" + File "${SRCDIR}\OpenRA.Game.exe" + File "${SRCDIR}\OpenRA.FileFormats.dll" + File "${SRCDIR}\OpenRA.Gl.dll" + File "${SRCDIR}\COPYING" + File "${SRCDIR}\HACKING" + File "${SRCDIR}\INSTALL" + File "${SRCDIR}\*.ttf" - File "..\..\OpenRA.Game\OpenRA.ico" + File "${SRCDIR}\OpenRA.Game\OpenRA.ico" - File "..\..\thirdparty\Tao\*.dll" + File "${SRCDIR}\thirdparty\Tao\*.dll" !insertmacro MUI_STARTMENU_WRITE_BEGIN Application CreateDirectory "$SMPROGRAMS\$StartMenuFolder" - CreateShortCut "$SMPROGRAMS\$StartMenuFolder\OpenRA - Red Alert.lnk" $OUTDIR\OpenRA.Game.exe "" \ + CreateShortCut "$SMPROGRAMS\$StartMenuFolder\OpenRA - Red Alert.lnk" $OUTDIR\OpenRA.Game.exe "InitialMods=ra" \ "$OUTDIR\OpenRA.ico" "" "" "" "" CreateShortCut "$SMPROGRAMS\$StartMenuFolder\OpenRA - Command & Conquer.lnk" $OUTDIR\OpenRA.Game.exe "InitialMods=cnc" \ "$OUTDIR\OpenRA.ico" "" "" "" "" !insertmacro MUI_STARTMENU_WRITE_END SetOutPath "$INSTDIR\shaders" - File "..\..\shaders\*.fx" + File "${SRCDIR}\shaders\*.fx" SetOutPath "$INSTDIR\maps" - File "..\..\maps\README" + File "${SRCDIR}\maps\README" SectionEnd Section "Editor" Editor SetOutPath "$INSTDIR" - File "..\..\OpenRA.Editor.exe" + File "${SRCDIR}\OpenRA.Editor.exe" !insertmacro MUI_STARTMENU_WRITE_BEGIN Application CreateDirectory "$SMPROGRAMS\$StartMenuFolder" @@ -95,10 +95,10 @@ SectionGroup /e "Mods" SectionGroup "Red Alert" RA Section "-RA_Core" SetOutPath "$INSTDIR\mods\ra" - File "..\..\mods\ra\*.*" - File /r "..\..\mods\ra\maps" - File /r "..\..\mods\ra\chrome" - File /r "..\..\mods\ra\extras" + File "${SRCDIR}\mods\ra\*.*" + File /r "${SRCDIR}\mods\ra\maps" + File /r "${SRCDIR}\mods\ra\chrome" + File /r "${SRCDIR}\mods\ra\extras" SectionEnd Section "Download content" RA_Content AddSize 10137 @@ -117,9 +117,9 @@ SectionGroup /e "Mods" SectionGroup "Command & Conquer" CNC Section "-CNC_Core" SetOutPath "$INSTDIR\mods\cnc" - File "..\..\mods\cnc\*.*" - File /r "..\..\mods\cnc\maps" - File /r "..\..\mods\cnc\chrome" + File "${SRCDIR}\mods\cnc\*.*" + File /r "${SRCDIR}\mods\cnc\maps" + File /r "${SRCDIR}\mods\cnc\chrome" SectionEnd Section "Download content" CNC_Content AddSize 9431