mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-09-20 12:54:52 -04:00
- Reworked Windows Installer
- cleaned code and files - changed location of the source files to release build - added header logo - added standard/portable install - added convert of NSIS language files to/from Qt ts files for translation on Transifex - waiting for more translations on Transifex - Fixed format of the french license file - Updated english translation git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.5@7094 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
11b60073ac
commit
1e3fb3e960
29 changed files with 2904 additions and 660 deletions
56
build_scripts/Windows/make_installer.bat
Normal file
56
build_scripts/Windows/make_installer.bat
Normal file
|
@ -0,0 +1,56 @@
|
|||
@echo off
|
||||
|
||||
setlocal
|
||||
|
||||
:: Modify variable when makensis.exe doesn't exist in PATH
|
||||
set NSIS_EXE=makensis.exe
|
||||
|
||||
:: Set needed environment variables
|
||||
if "%SourceDir%"=="" set SourceDir=
|
||||
if "%ReleaseDir%"=="" set ReleaseDir=
|
||||
if "%QtDir%"=="" set QtDir=
|
||||
if "%MinGWDir%"=="" set MinGWDir=
|
||||
|
||||
:: Check environment variables
|
||||
if "%SourceDir%"=="" call :error_environment & goto :exit
|
||||
if "%ReleaseDir%"=="" call :error_environment & goto :exit
|
||||
if "%QtDir%"=="" call :error_environment & goto :exit
|
||||
if "%MinGWDir%"=="" call :error_environment & goto :exit
|
||||
|
||||
:: Scan version from source
|
||||
set Version=
|
||||
set VersionFile="%SourceDir%\retroshare-gui\src\util\rsguiversion.h"
|
||||
|
||||
if not exist "%VersionFile%" (
|
||||
echo.
|
||||
echo Version file doesn't exist.
|
||||
echo %VersionFile%
|
||||
goto :exit
|
||||
)
|
||||
|
||||
for /F "usebackq tokens=1,2,*" %%A in (%VersionFile%) do (
|
||||
if "%%A"=="#define" (
|
||||
if "%%B"=="GUI_VERSION" (
|
||||
set Version=%%~C
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
if "%Version%"=="" (
|
||||
echo.
|
||||
echo Version not found in
|
||||
echo %VersionFile%
|
||||
goto :exit
|
||||
)
|
||||
|
||||
:: Create installer
|
||||
"%NSIS_EXE%" "%~dp0retroshare.nsi"
|
||||
|
||||
:exit
|
||||
endlocal
|
||||
|
||||
goto :EOF
|
||||
|
||||
:error_environment
|
||||
echo.
|
||||
echo Please set the needed environment variables.
|
Loading…
Add table
Add a link
Reference in a new issue