mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 14:16:16 -04:00
Added new parameter for Windows MinGW build
- Service - Friend Server - embedded Friend Server
This commit is contained in:
parent
ef456b2ef7
commit
f125539d79
17 changed files with 190 additions and 25 deletions
|
@ -13,11 +13,11 @@ call "%~dp0build-libs\build-libs.bat"
|
||||||
if errorlevel 1 %cecho% error "Failed to build libraries." & exit /B %ERRORLEVEL%
|
if errorlevel 1 %cecho% error "Failed to build libraries." & exit /B %ERRORLEVEL%
|
||||||
|
|
||||||
%cecho% info "Build %SourceName%"
|
%cecho% info "Build %SourceName%"
|
||||||
call "%~dp0build\build.bat" release autologin jsonapi plugins nativedialogs
|
call "%~dp0build\build.bat" release autologin jsonapi plugins nativedialogs service
|
||||||
if errorlevel 1 %cecho% error "Failed to build %SourceName%." & exit /B %ERRORLEVEL%
|
if errorlevel 1 %cecho% error "Failed to build %SourceName%." & exit /B %ERRORLEVEL%
|
||||||
|
|
||||||
%cecho% info "Pack %SourceName%"
|
%cecho% info "Pack %SourceName%"
|
||||||
call "%~dp0build\pack.bat" release plugins
|
call "%~dp0build\pack.bat" release plugins service
|
||||||
if errorlevel 1 %cecho% error "Failed to pack %SourceName%." & exit /B %ERRORLEVEL%
|
if errorlevel 1 %cecho% error "Failed to pack %SourceName%." & exit /B %ERRORLEVEL%
|
||||||
|
|
||||||
%cecho% info "Build installer"
|
%cecho% info "Build installer"
|
||||||
|
|
|
@ -9,7 +9,7 @@ call "%EnvPath%\env.bat"
|
||||||
if errorlevel 1 goto error_env
|
if errorlevel 1 goto error_env
|
||||||
|
|
||||||
:: Initialize environment
|
:: Initialize environment
|
||||||
call "%~dp0env.bat" release
|
call "%~dp0env.bat" installer release
|
||||||
if errorlevel 2 exit /B 2
|
if errorlevel 2 exit /B 2
|
||||||
if errorlevel 1 goto error_env
|
if errorlevel 1 goto error_env
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ call "%EnvPath%\env.bat"
|
||||||
if errorlevel 1 goto error_env
|
if errorlevel 1 goto error_env
|
||||||
|
|
||||||
:: Initialize environment
|
:: Initialize environment
|
||||||
call "%~dp0env.bat" %*
|
call "%~dp0env.bat" build %*
|
||||||
if errorlevel 2 exit /B 2
|
if errorlevel 2 exit /B 2
|
||||||
if errorlevel 1 goto error_env
|
if errorlevel 1 goto error_env
|
||||||
|
|
||||||
|
@ -49,11 +49,14 @@ echo.
|
||||||
|
|
||||||
title Build - %SourceName%-%RsBuildConfig% [qmake]
|
title Build - %SourceName%-%RsBuildConfig% [qmake]
|
||||||
|
|
||||||
set RS_QMAKE_CONFIG=%RsBuildConfig% no_rs_cppwarning
|
set RS_QMAKE_CONFIG=%RsBuildConfig%
|
||||||
if "%ParamAutologin%"=="1" set RS_QMAKE_CONFIG=%RS_QMAKE_CONFIG% rs_autologin
|
if "%ParamAutologin%"=="1" set RS_QMAKE_CONFIG=%RS_QMAKE_CONFIG% rs_autologin
|
||||||
if "%ParamJsonApi%"=="1" set RS_QMAKE_CONFIG=%RS_QMAKE_CONFIG% rs_jsonapi
|
if "%ParamJsonApi%"=="1" set RS_QMAKE_CONFIG=%RS_QMAKE_CONFIG% rs_jsonapi
|
||||||
if "%ParamPlugins%"=="1" set RS_QMAKE_CONFIG=%RS_QMAKE_CONFIG% retroshare_plugins
|
if "%ParamPlugins%"=="1" set RS_QMAKE_CONFIG=%RS_QMAKE_CONFIG% retroshare_plugins
|
||||||
if "%ParamUseNativeDialogs%"=="1" set RS_QMAKE_CONFIG=%RS_QMAKE_CONFIG% rs_use_native_dialogs
|
if "%ParamUseNativeDialogs%"=="1" set RS_QMAKE_CONFIG=%RS_QMAKE_CONFIG% rs_use_native_dialogs
|
||||||
|
if "%ParamService%" NEQ "1" set RS_QMAKE_CONFIG=%RS_QMAKE_CONFIG% no_retroshare_service
|
||||||
|
if "%ParamFriendServer%" NEQ "1" set RS_QMAKE_CONFIG=%RS_QMAKE_CONFIG% no_rs_friendserver
|
||||||
|
if "%ParamEmbeddedFriendServer%"=="1" set RS_QMAKE_CONFIG=%RS_QMAKE_CONFIG% rs_efs
|
||||||
|
|
||||||
qmake "%SourcePath%\RetroShare.pro" -r -spec win32-g++ "CONFIG+=%RS_QMAKE_CONFIG%" "EXTERNAL_LIB_DIR=%BuildLibsPath%\libs"
|
qmake "%SourcePath%\RetroShare.pro" -r -spec win32-g++ "CONFIG+=%RS_QMAKE_CONFIG%" "EXTERNAL_LIB_DIR=%BuildLibsPath%\libs"
|
||||||
if errorlevel 1 goto error
|
if errorlevel 1 goto error
|
||||||
|
|
|
@ -4,11 +4,17 @@ set ParamDebug=0
|
||||||
set ParamAutologin=0
|
set ParamAutologin=0
|
||||||
set ParamPlugins=0
|
set ParamPlugins=0
|
||||||
set ParamJsonApi=0
|
set ParamJsonApi=0
|
||||||
|
set ParamService=0
|
||||||
|
set ParamFriendServer=0
|
||||||
|
set ParamEmbeddedFriendServer=0
|
||||||
set ParamUseNativeDialogs=0
|
set ParamUseNativeDialogs=0
|
||||||
set ParamTor=0
|
set ParamTor=0
|
||||||
set NonInteractive=0
|
set NonInteractive=0
|
||||||
set CoreCount=%NUMBER_OF_PROCESSORS%
|
set CoreCount=%NUMBER_OF_PROCESSORS%
|
||||||
|
|
||||||
|
set Module=%~1
|
||||||
|
shift /1
|
||||||
|
|
||||||
:parameter_loop
|
:parameter_loop
|
||||||
if "%~1" NEQ "" (
|
if "%~1" NEQ "" (
|
||||||
for /f "tokens=1,2 delims==" %%a in ("%~1") do (
|
for /f "tokens=1,2 delims==" %%a in ("%~1") do (
|
||||||
|
@ -20,6 +26,12 @@ if "%~1" NEQ "" (
|
||||||
set ParamAutologin=1
|
set ParamAutologin=1
|
||||||
) else if "%%~a"=="jsonapi" (
|
) else if "%%~a"=="jsonapi" (
|
||||||
set ParamJsonApi=1
|
set ParamJsonApi=1
|
||||||
|
) else if "%%~a"=="service" (
|
||||||
|
set ParamService=1
|
||||||
|
) else if "%%~a"=="friendserver" (
|
||||||
|
set ParamFriendServer=1
|
||||||
|
) else if "%%~a"=="embedded-friendserver" (
|
||||||
|
set ParamEmbeddedFriendServer=1
|
||||||
) else if "%%~a"=="plugins" (
|
) else if "%%~a"=="plugins" (
|
||||||
set ParamPlugins=1
|
set ParamPlugins=1
|
||||||
) else if "%%~a"=="tor" (
|
) else if "%%~a"=="tor" (
|
||||||
|
@ -32,7 +44,7 @@ if "%~1" NEQ "" (
|
||||||
set ParamUseNativeDialogs=1
|
set ParamUseNativeDialogs=1
|
||||||
) else (
|
) else (
|
||||||
echo.
|
echo.
|
||||||
echo Unknown parameter %1
|
echo Unknown parameter %1 for %Module%
|
||||||
goto :usage
|
goto :usage
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
@ -102,21 +114,31 @@ echo.
|
||||||
echo Usage: release^|debug [^<optional parameters^>]
|
echo Usage: release^|debug [^<optional parameters^>]
|
||||||
echo.
|
echo.
|
||||||
echo Mandatory parameter
|
echo Mandatory parameter
|
||||||
echo release^|debug Build release or debug version
|
echo release^|debug Build release or debug version
|
||||||
echo.
|
echo.
|
||||||
echo Optional parameter (need clean when changed)
|
if "%Module%"=="build" (
|
||||||
echo autologin Build with autologin
|
echo Optional parameter ^(need clean when changed^)
|
||||||
echo jsonapi Build with jsonapi
|
echo autologin Build with autologin
|
||||||
echo plugins Build plugins
|
echo jsonapi Build with jsonapi
|
||||||
echo nativedialogs Build with native dialogs
|
echo service Build service
|
||||||
echo.
|
echo friendserver Build Friend Server
|
||||||
echo Optional parameter
|
echo embedded-friendserver Build with embedded Friend Server
|
||||||
echo singlethread Use only 1 thread for building
|
echo plugins Build plugins
|
||||||
echo.
|
echo nativedialogs Build with native dialogs
|
||||||
echo Parameter for pack
|
echo.
|
||||||
echo tor Pack tor version
|
echo Optional parameter
|
||||||
echo.
|
echo singlethread Use only 1 thread for building
|
||||||
echo Parameter for git-log
|
)
|
||||||
echo non-interactive Non-interactive mode
|
if "%Module%"=="pack" (
|
||||||
|
echo Optional parameter
|
||||||
|
echo service Pack service
|
||||||
|
echo friendserver Pack Friend Server ^(needs Tor^)
|
||||||
|
echo tor Pack Tor version
|
||||||
|
echo plugins Pack plugins
|
||||||
|
)
|
||||||
|
if "%Module%"=="git-log" (
|
||||||
|
echo Optional parameter
|
||||||
|
echo non-interactive Non-interactive mode
|
||||||
|
)
|
||||||
echo.
|
echo.
|
||||||
exit /B 2
|
exit /B 2
|
||||||
|
|
|
@ -8,7 +8,7 @@ if errorlevel 1 goto error_env
|
||||||
call "%EnvPath%\env.bat"
|
call "%EnvPath%\env.bat"
|
||||||
if errorlevel 1 goto error_env
|
if errorlevel 1 goto error_env
|
||||||
|
|
||||||
call "%~dp0env.bat" %*
|
call "%~dp0env.bat" git-log %*
|
||||||
if errorlevel 2 exit /B 2
|
if errorlevel 2 exit /B 2
|
||||||
if errorlevel 1 goto error_env
|
if errorlevel 1 goto error_env
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@ call "%EnvPath%\env.bat"
|
||||||
if errorlevel 1 goto error_env
|
if errorlevel 1 goto error_env
|
||||||
|
|
||||||
:: Initialize environment
|
:: Initialize environment
|
||||||
call "%~dp0env.bat" %*
|
call "%~dp0env.bat" pack %*
|
||||||
if errorlevel 2 exit /B 2
|
if errorlevel 2 exit /B 2
|
||||||
if errorlevel 1 goto error_env
|
if errorlevel 1 goto error_env
|
||||||
|
|
||||||
|
@ -95,9 +95,23 @@ copy nul "%RsDeployPath%\portable" %Quite%
|
||||||
|
|
||||||
echo copy binaries
|
echo copy binaries
|
||||||
copy "%RsBuildPath%\retroshare-gui\src\%RsBuildConfig%\retroshare*.exe" "%RsDeployPath%" %Quite%
|
copy "%RsBuildPath%\retroshare-gui\src\%RsBuildConfig%\retroshare*.exe" "%RsDeployPath%" %Quite%
|
||||||
copy "%RsBuildPath%\retroshare-service\src\%RsBuildConfig%\retroshare*-service.exe" "%RsDeployPath%" %Quite%
|
|
||||||
if exist "%RsBuildPath%\libretroshare\src\lib\retroshare.dll" copy "%RsBuildPath%\libretroshare\src\lib\retroshare.dll" "%RsDeployPath%" %Quite%
|
if exist "%RsBuildPath%\libretroshare\src\lib\retroshare.dll" copy "%RsBuildPath%\libretroshare\src\lib\retroshare.dll" "%RsDeployPath%" %Quite%
|
||||||
|
|
||||||
|
if "%ParamService%"=="1" (
|
||||||
|
copy "%RsBuildPath%\retroshare-service\src\%RsBuildConfig%\retroshare*-service.exe" "%RsDeployPath%" %Quite%
|
||||||
|
if errorlevel 1 %cecho% error "Service not found"& goto error
|
||||||
|
)
|
||||||
|
|
||||||
|
if "%ParamFriendServer%"=="1" (
|
||||||
|
if "%ParamTor%"=="1" (
|
||||||
|
copy "%RsBuildPath%\retroshare-friendserver\src\%RsBuildConfig%\retroshare-friendserver.exe" "%RsDeployPath%" %Quite%
|
||||||
|
if errorlevel 1 %cecho% error "Friend Server not found"& goto error
|
||||||
|
) else (
|
||||||
|
%cecho% error "Friend Server needs Tor"
|
||||||
|
goto error
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
echo copy extensions
|
echo copy extensions
|
||||||
if "%ParamPlugins%"=="1" (
|
if "%ParamPlugins%"=="1" (
|
||||||
for /D %%D in ("%RsBuildPath%\plugins\*") do (
|
for /D %%D in ("%RsBuildPath%\plugins\*") do (
|
||||||
|
|
|
@ -2,6 +2,10 @@
|
||||||
!insertmacro LANG_STRING Section_Main_Desc "Instal·la ${APPNAME} i els components necessaris."
|
!insertmacro LANG_STRING Section_Main_Desc "Instal·la ${APPNAME} i els components necessaris."
|
||||||
!insertmacro LANG_STRING Section_Tor "Tor"
|
!insertmacro LANG_STRING Section_Tor "Tor"
|
||||||
!insertmacro LANG_STRING Section_Tor_Desc "Installs Tor."
|
!insertmacro LANG_STRING Section_Tor_Desc "Installs Tor."
|
||||||
|
!insertmacro LANG_STRING Section_Service "Service"
|
||||||
|
!insertmacro LANG_STRING Section_Service_Desc "Installs Service."
|
||||||
|
!insertmacro LANG_STRING Section_FriendServer "Friend Server"
|
||||||
|
!insertmacro LANG_STRING Section_FriendServer_Desc "Installs Friend Server."
|
||||||
!insertmacro LANG_STRING Section_Data "Pells"
|
!insertmacro LANG_STRING Section_Data "Pells"
|
||||||
!insertmacro LANG_STRING Section_Data_Desc "Instal·la pells."
|
!insertmacro LANG_STRING Section_Data_Desc "Instal·la pells."
|
||||||
!insertmacro LANG_STRING Section_Shortcuts "Icones d'accés directe"
|
!insertmacro LANG_STRING Section_Shortcuts "Icones d'accés directe"
|
||||||
|
|
|
@ -2,6 +2,10 @@
|
||||||
!insertmacro LANG_STRING Section_Main_Desc "Installiert ${APPNAME} und die benötigten Komponenten."
|
!insertmacro LANG_STRING Section_Main_Desc "Installiert ${APPNAME} und die benötigten Komponenten."
|
||||||
!insertmacro LANG_STRING Section_Tor "Tor"
|
!insertmacro LANG_STRING Section_Tor "Tor"
|
||||||
!insertmacro LANG_STRING Section_Tor_Desc "Installiert Tor."
|
!insertmacro LANG_STRING Section_Tor_Desc "Installiert Tor."
|
||||||
|
!insertmacro LANG_STRING Section_Service "Service"
|
||||||
|
!insertmacro LANG_STRING Section_Service_Desc "Installiert Service."
|
||||||
|
!insertmacro LANG_STRING Section_FriendServer "Friend Server"
|
||||||
|
!insertmacro LANG_STRING Section_FriendServer_Desc "Installiert Friend Server."
|
||||||
!insertmacro LANG_STRING Section_Data "Skins"
|
!insertmacro LANG_STRING Section_Data "Skins"
|
||||||
!insertmacro LANG_STRING Section_Data_Desc "Skins installieren."
|
!insertmacro LANG_STRING Section_Data_Desc "Skins installieren."
|
||||||
!insertmacro LANG_STRING Section_Shortcuts "Verknüpfungssymbole"
|
!insertmacro LANG_STRING Section_Shortcuts "Verknüpfungssymbole"
|
||||||
|
|
|
@ -2,6 +2,10 @@
|
||||||
!insertmacro LANG_STRING Section_Main_Desc "Installs ${APPNAME} and required components."
|
!insertmacro LANG_STRING Section_Main_Desc "Installs ${APPNAME} and required components."
|
||||||
!insertmacro LANG_STRING Section_Tor "Tor"
|
!insertmacro LANG_STRING Section_Tor "Tor"
|
||||||
!insertmacro LANG_STRING Section_Tor_Desc "Installs Tor."
|
!insertmacro LANG_STRING Section_Tor_Desc "Installs Tor."
|
||||||
|
!insertmacro LANG_STRING Section_Service "Service"
|
||||||
|
!insertmacro LANG_STRING Section_Service_Desc "Installs Service."
|
||||||
|
!insertmacro LANG_STRING Section_FriendServer "Friend Server"
|
||||||
|
!insertmacro LANG_STRING Section_FriendServer_Desc "Installs Friend Server."
|
||||||
!insertmacro LANG_STRING Section_Data "Skins"
|
!insertmacro LANG_STRING Section_Data "Skins"
|
||||||
!insertmacro LANG_STRING Section_Data_Desc "Installs skins."
|
!insertmacro LANG_STRING Section_Data_Desc "Installs skins."
|
||||||
!insertmacro LANG_STRING Section_Shortcuts "Shortcut icons"
|
!insertmacro LANG_STRING Section_Shortcuts "Shortcut icons"
|
||||||
|
|
|
@ -2,6 +2,10 @@
|
||||||
!insertmacro LANG_STRING Section_Main_Desc "Instala ${APPNAME} y los componentes requeridos."
|
!insertmacro LANG_STRING Section_Main_Desc "Instala ${APPNAME} y los componentes requeridos."
|
||||||
!insertmacro LANG_STRING Section_Tor "Tor"
|
!insertmacro LANG_STRING Section_Tor "Tor"
|
||||||
!insertmacro LANG_STRING Section_Tor_Desc "Installs Tor."
|
!insertmacro LANG_STRING Section_Tor_Desc "Installs Tor."
|
||||||
|
!insertmacro LANG_STRING Section_Service "Service"
|
||||||
|
!insertmacro LANG_STRING Section_Service_Desc "Installs Service."
|
||||||
|
!insertmacro LANG_STRING Section_FriendServer "Friend Server"
|
||||||
|
!insertmacro LANG_STRING Section_FriendServer_Desc "Installs Friend Server."
|
||||||
!insertmacro LANG_STRING Section_Data "Coberturas (skins)"
|
!insertmacro LANG_STRING Section_Data "Coberturas (skins)"
|
||||||
!insertmacro LANG_STRING Section_Data_Desc "Instalar coberturas"
|
!insertmacro LANG_STRING Section_Data_Desc "Instalar coberturas"
|
||||||
!insertmacro LANG_STRING Section_Shortcuts "Iconos de accesos directos"
|
!insertmacro LANG_STRING Section_Shortcuts "Iconos de accesos directos"
|
||||||
|
|
|
@ -2,6 +2,10 @@
|
||||||
!insertmacro LANG_STRING Section_Main_Desc "Installe ${APPNAME} et les composants requis."
|
!insertmacro LANG_STRING Section_Main_Desc "Installe ${APPNAME} et les composants requis."
|
||||||
!insertmacro LANG_STRING Section_Tor "Tor"
|
!insertmacro LANG_STRING Section_Tor "Tor"
|
||||||
!insertmacro LANG_STRING Section_Tor_Desc "Installs Tor."
|
!insertmacro LANG_STRING Section_Tor_Desc "Installs Tor."
|
||||||
|
!insertmacro LANG_STRING Section_Service "Service"
|
||||||
|
!insertmacro LANG_STRING Section_Service_Desc "Installs Service."
|
||||||
|
!insertmacro LANG_STRING Section_FriendServer "Friend Server"
|
||||||
|
!insertmacro LANG_STRING Section_FriendServer_Desc "Installs Friend Server."
|
||||||
!insertmacro LANG_STRING Section_Data "Habillages"
|
!insertmacro LANG_STRING Section_Data "Habillages"
|
||||||
!insertmacro LANG_STRING Section_Data_Desc "Installe des habillages."
|
!insertmacro LANG_STRING Section_Data_Desc "Installe des habillages."
|
||||||
!insertmacro LANG_STRING Section_Shortcuts "Icônes de raccourci"
|
!insertmacro LANG_STRING Section_Shortcuts "Icônes de raccourci"
|
||||||
|
|
|
@ -2,6 +2,10 @@
|
||||||
!insertmacro LANG_STRING Section_Main_Desc "Instaluje ${APPNAME} oraz wymagane komponenty."
|
!insertmacro LANG_STRING Section_Main_Desc "Instaluje ${APPNAME} oraz wymagane komponenty."
|
||||||
!insertmacro LANG_STRING Section_Tor "Tor"
|
!insertmacro LANG_STRING Section_Tor "Tor"
|
||||||
!insertmacro LANG_STRING Section_Tor_Desc "Installs Tor."
|
!insertmacro LANG_STRING Section_Tor_Desc "Installs Tor."
|
||||||
|
!insertmacro LANG_STRING Section_Service "Service"
|
||||||
|
!insertmacro LANG_STRING Section_Service_Desc "Installs Service."
|
||||||
|
!insertmacro LANG_STRING Section_FriendServer "Friend Server"
|
||||||
|
!insertmacro LANG_STRING Section_FriendServer_Desc "Installs Friend Server."
|
||||||
!insertmacro LANG_STRING Section_Data "Skórki"
|
!insertmacro LANG_STRING Section_Data "Skórki"
|
||||||
!insertmacro LANG_STRING Section_Data_Desc "Instaluje skórki."
|
!insertmacro LANG_STRING Section_Data_Desc "Instaluje skórki."
|
||||||
!insertmacro LANG_STRING Section_Shortcuts "Ikony skrótów"
|
!insertmacro LANG_STRING Section_Shortcuts "Ikony skrótów"
|
||||||
|
|
|
@ -2,6 +2,10 @@
|
||||||
!insertmacro LANG_STRING Section_Main_Desc "Установка ${APPNAME} и необходимых компонентов."
|
!insertmacro LANG_STRING Section_Main_Desc "Установка ${APPNAME} и необходимых компонентов."
|
||||||
!insertmacro LANG_STRING Section_Tor "Tor"
|
!insertmacro LANG_STRING Section_Tor "Tor"
|
||||||
!insertmacro LANG_STRING Section_Tor_Desc "Installs Tor."
|
!insertmacro LANG_STRING Section_Tor_Desc "Installs Tor."
|
||||||
|
!insertmacro LANG_STRING Section_Service "Service"
|
||||||
|
!insertmacro LANG_STRING Section_Service_Desc "Installs Service."
|
||||||
|
!insertmacro LANG_STRING Section_FriendServer "Friend Server"
|
||||||
|
!insertmacro LANG_STRING Section_FriendServer_Desc "Installs Friend Server."
|
||||||
!insertmacro LANG_STRING Section_Data "Оболочки"
|
!insertmacro LANG_STRING Section_Data "Оболочки"
|
||||||
!insertmacro LANG_STRING Section_Data_Desc "Установка оболочек."
|
!insertmacro LANG_STRING Section_Data_Desc "Установка оболочек."
|
||||||
!insertmacro LANG_STRING Section_Shortcuts "Ярлыки"
|
!insertmacro LANG_STRING Section_Shortcuts "Ярлыки"
|
||||||
|
|
|
@ -2,6 +2,10 @@
|
||||||
!insertmacro LANG_STRING Section_Main_Desc "${APPNAME} ve gerekli bileşenleri kurar."
|
!insertmacro LANG_STRING Section_Main_Desc "${APPNAME} ve gerekli bileşenleri kurar."
|
||||||
!insertmacro LANG_STRING Section_Tor "Tor"
|
!insertmacro LANG_STRING Section_Tor "Tor"
|
||||||
!insertmacro LANG_STRING Section_Tor_Desc "Installs Tor."
|
!insertmacro LANG_STRING Section_Tor_Desc "Installs Tor."
|
||||||
|
!insertmacro LANG_STRING Section_Service "Service"
|
||||||
|
!insertmacro LANG_STRING Section_Service_Desc "Installs Service."
|
||||||
|
!insertmacro LANG_STRING Section_FriendServer "Friend Server"
|
||||||
|
!insertmacro LANG_STRING Section_FriendServer_Desc "Installs Friend Server."
|
||||||
!insertmacro LANG_STRING Section_Data "Temalar"
|
!insertmacro LANG_STRING Section_Data "Temalar"
|
||||||
!insertmacro LANG_STRING Section_Data_Desc "Tema yükleyin."
|
!insertmacro LANG_STRING Section_Data_Desc "Tema yükleyin."
|
||||||
!insertmacro LANG_STRING Section_Shortcuts "Kısayol simgeleri"
|
!insertmacro LANG_STRING Section_Shortcuts "Kısayol simgeleri"
|
||||||
|
|
|
@ -22,6 +22,34 @@
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>Section_Service</name>
|
||||||
|
<message>
|
||||||
|
<source>Service</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>Section_Service_Desc</name>
|
||||||
|
<message>
|
||||||
|
<source>Installs Service.</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>Section_FriendServer</name>
|
||||||
|
<message>
|
||||||
|
<source>Friend Server</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>Section_FriendServer_Desc</name>
|
||||||
|
<message>
|
||||||
|
<source>Installs Friend Server.</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>Section_Data</name>
|
<name>Section_Data</name>
|
||||||
<message>
|
<message>
|
||||||
|
|
|
@ -2,6 +2,10 @@
|
||||||
!insertmacro LANG_STRING Section_Main_Desc "Installs ${APPNAME} and required components."
|
!insertmacro LANG_STRING Section_Main_Desc "Installs ${APPNAME} and required components."
|
||||||
!insertmacro LANG_STRING Section_Tor "Tor"
|
!insertmacro LANG_STRING Section_Tor "Tor"
|
||||||
!insertmacro LANG_STRING Section_Tor_Desc "Installs Tor."
|
!insertmacro LANG_STRING Section_Tor_Desc "Installs Tor."
|
||||||
|
!insertmacro LANG_STRING Section_Service "Service"
|
||||||
|
!insertmacro LANG_STRING Section_Service_Desc "Installs Service."
|
||||||
|
!insertmacro LANG_STRING Section_FriendServer "Friend Server"
|
||||||
|
!insertmacro LANG_STRING Section_FriendServer_Desc "Installs Friend Server."
|
||||||
!insertmacro LANG_STRING Section_Data "皮肤"
|
!insertmacro LANG_STRING Section_Data "皮肤"
|
||||||
!insertmacro LANG_STRING Section_Data_Desc "安装皮肤"
|
!insertmacro LANG_STRING Section_Data_Desc "安装皮肤"
|
||||||
!insertmacro LANG_STRING Section_Shortcuts "快捷方式图标"
|
!insertmacro LANG_STRING Section_Shortcuts "快捷方式图标"
|
||||||
|
|
|
@ -60,6 +60,9 @@
|
||||||
!define /date DATE "%Y%m%d"
|
!define /date DATE "%Y%m%d"
|
||||||
!endif
|
!endif
|
||||||
|
|
||||||
|
# Service
|
||||||
|
${!defineifexist} SERVICE_EXISTS "${RELEASEDIR}\retroshare-service\src\release\retroshare-service.exe"
|
||||||
|
|
||||||
# Tor
|
# Tor
|
||||||
!ifdef TORDIR
|
!ifdef TORDIR
|
||||||
${!defineifexist} TOR_EXISTS "${TORDIR}\tor.exe"
|
${!defineifexist} TOR_EXISTS "${TORDIR}\tor.exe"
|
||||||
|
@ -68,6 +71,12 @@ ${!defineifexist} TOR_EXISTS "${TORDIR}\tor.exe"
|
||||||
!endif
|
!endif
|
||||||
!endif
|
!endif
|
||||||
|
|
||||||
|
# Friend Server
|
||||||
|
!ifdef TOR_EXISTS
|
||||||
|
# Add Friend Server with Tor only
|
||||||
|
#${!defineifexist} FRIENDSERVER_EXISTS "${RELEASEDIR}\retroshare-friendserver\src\release\retroshare-friendserver.exe"
|
||||||
|
!endif
|
||||||
|
|
||||||
# Application name and version
|
# Application name and version
|
||||||
!define APPNAME "RetroShare"
|
!define APPNAME "RetroShare"
|
||||||
!define APPNAMEANDVERSION "${APPNAME} ${VERSION}"
|
!define APPNAMEANDVERSION "${APPNAME} ${VERSION}"
|
||||||
|
@ -193,7 +202,6 @@ Section $(Section_Main) Section_Main
|
||||||
; Main binaries
|
; Main binaries
|
||||||
SetOutPath "$INSTDIR"
|
SetOutPath "$INSTDIR"
|
||||||
File "${RELEASEDIR}\retroshare-gui\src\release\retroshare.exe"
|
File "${RELEASEDIR}\retroshare-gui\src\release\retroshare.exe"
|
||||||
File "${RELEASEDIR}\retroshare-service\src\release\retroshare-service.exe"
|
|
||||||
File /nonfatal "${RELEASEDIR}\libretroshare\src\lib\retroshare.dll"
|
File /nonfatal "${RELEASEDIR}\libretroshare\src\lib\retroshare.dll"
|
||||||
|
|
||||||
; Qt binaries
|
; Qt binaries
|
||||||
|
@ -282,6 +290,22 @@ Section $(Section_Main) Section_Main
|
||||||
File /r "${SOURCEDIR}\retroshare-gui\src\license\*.*"
|
File /r "${SOURCEDIR}\retroshare-gui\src\license\*.*"
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
|
# Service
|
||||||
|
!ifdef SERVICE_EXISTS
|
||||||
|
Section /o $(Section_Service) Section_Service
|
||||||
|
SetOutPath "$INSTDIR"
|
||||||
|
File "${RELEASEDIR}\retroshare-service\src\release\retroshare-service.exe"
|
||||||
|
SectionEnd
|
||||||
|
!endif
|
||||||
|
|
||||||
|
# Friend Server
|
||||||
|
!ifdef FRIENDSERVER_EXISTS
|
||||||
|
Section /o $(Section_FriendServer) Section_FriendServer
|
||||||
|
SetOutPath "$INSTDIR"
|
||||||
|
File "${RELEASEDIR}\retroshare-friendserver\src\release\retroshare-friendserver.exe"
|
||||||
|
SectionEnd
|
||||||
|
!endif
|
||||||
|
|
||||||
# Tor
|
# Tor
|
||||||
!ifdef TOR_EXISTS
|
!ifdef TOR_EXISTS
|
||||||
Section /o $(Section_Tor) Section_Tor
|
Section /o $(Section_Tor) Section_Tor
|
||||||
|
@ -355,6 +379,22 @@ Section $(Section_StartMenu) Section_StartMenu
|
||||||
CreateDirectory "$SMPROGRAMS\${APPNAME}"
|
CreateDirectory "$SMPROGRAMS\${APPNAME}"
|
||||||
CreateShortCut "$SMPROGRAMS\${APPNAME}\$(Link_Uninstall).lnk" "$INSTDIR\uninstall.exe" "" "$INSTDIR\uninstall.exe" 0
|
CreateShortCut "$SMPROGRAMS\${APPNAME}\$(Link_Uninstall).lnk" "$INSTDIR\uninstall.exe" "" "$INSTDIR\uninstall.exe" 0
|
||||||
CreateShortCut "$SMPROGRAMS\${APPNAME}\${APPNAME}.lnk" "$INSTDIR\retroshare.exe" "" "$INSTDIR\retroshare.exe" 0
|
CreateShortCut "$SMPROGRAMS\${APPNAME}\${APPNAME}.lnk" "$INSTDIR\retroshare.exe" "" "$INSTDIR\retroshare.exe" 0
|
||||||
|
|
||||||
|
!ifdef SERVICE_EXISTS
|
||||||
|
SectionGetFlags ${Section_Service} $0
|
||||||
|
IntOp $0 $0 & ${SF_SELECTED}
|
||||||
|
${If} $0 == ${SF_SELECTED}
|
||||||
|
CreateShortCut "$SMPROGRAMS\${APPNAME}\${APPNAME} Service.lnk" "$INSTDIR\retroshare-service.exe" "" "$INSTDIR\retroshare-service.exe" 0
|
||||||
|
${EndIf}
|
||||||
|
!endif
|
||||||
|
|
||||||
|
!ifdef FRIENDSERVER_EXISTS
|
||||||
|
SectionGetFlags ${Section_FriendServer} $0
|
||||||
|
IntOp $0 $0 & ${SF_SELECTED}
|
||||||
|
${If} $0 == ${SF_SELECTED}
|
||||||
|
CreateShortCut "$SMPROGRAMS\${APPNAME}\${APPNAME} Friend Server.lnk" "$INSTDIR\retroshare-friendserver.exe" "" "$INSTDIR\retroshare-friendserver.exe" 0
|
||||||
|
${EndIf}
|
||||||
|
!endif
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
Section $(Section_Desktop) Section_Desktop
|
Section $(Section_Desktop) Section_Desktop
|
||||||
|
@ -407,6 +447,8 @@ SectionEnd
|
||||||
; !insertmacro MUI_DESCRIPTION_TEXT ${Section_Link} $(Section_Link_Desc)
|
; !insertmacro MUI_DESCRIPTION_TEXT ${Section_Link} $(Section_Link_Desc)
|
||||||
!insertmacro MUI_DESCRIPTION_TEXT ${Section_AutoStart} $(Section_AutoStart_Desc)
|
!insertmacro MUI_DESCRIPTION_TEXT ${Section_AutoStart} $(Section_AutoStart_Desc)
|
||||||
!insertmacro MUI_DESCRIPTION_TEXT ${Section_Tor} $(Section_Tor_Desc)
|
!insertmacro MUI_DESCRIPTION_TEXT ${Section_Tor} $(Section_Tor_Desc)
|
||||||
|
!insertmacro MUI_DESCRIPTION_TEXT ${Section_Service} $(Section_Service_Desc)
|
||||||
|
!insertmacro MUI_DESCRIPTION_TEXT ${Section_FriendServer} $(Section_FriendServer_Desc)
|
||||||
!insertmacro MUI_FUNCTION_DESCRIPTION_END
|
!insertmacro MUI_FUNCTION_DESCRIPTION_END
|
||||||
|
|
||||||
# Uninstall
|
# Uninstall
|
||||||
|
@ -461,6 +503,26 @@ Function .onInit
|
||||||
!insertmacro MUI_LANGDLL_DISPLAY
|
!insertmacro MUI_LANGDLL_DISPLAY
|
||||||
FunctionEnd
|
FunctionEnd
|
||||||
|
|
||||||
|
!ifdef FRIENDSERVER_EXISTS
|
||||||
|
Function .onSelChange
|
||||||
|
SectionGetFlags ${Section_FriendServer} $0
|
||||||
|
IntOp $0 $0 & ${SF_SELECTED}
|
||||||
|
${If} $0 == ${SF_SELECTED}
|
||||||
|
# Activate Tor and set readonly
|
||||||
|
SectionGetFlags ${Section_Tor} $1
|
||||||
|
IntOp $1 $1 | ${SF_SELECTED}
|
||||||
|
IntOp $1 $1 | ${SF_RO}
|
||||||
|
SectionSetFlags ${Section_Tor} $1
|
||||||
|
${Else}
|
||||||
|
# Remove readonly from Tor
|
||||||
|
SectionGetFlags ${Section_Tor} $1
|
||||||
|
IntOp $2 ${SF_RO} ~
|
||||||
|
IntOp $1 $1 & $2
|
||||||
|
SectionSetFlags ${Section_Tor} $1
|
||||||
|
${EndIf}
|
||||||
|
FunctionEnd
|
||||||
|
!endif
|
||||||
|
|
||||||
# Installation mode
|
# Installation mode
|
||||||
|
|
||||||
Function RequireAdmin
|
Function RequireAdmin
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue