forked from I2P_Developers/i2p.i2p

The aging v3.1.x of the java wrapper is being replaced in this checkin with the latest (current) stable release, 3.5.9. There is now only one copy of wrapper.jar, located in wrapper/all. The build.xml scripts have been changed to reflect this new path. All binaries--with the exception of solaris (I don't have SPARC hardware)--have been stripped. FreeBSD x64 is being included in this release. I have only included the x86 macosx wrapper due to not having a system to test the x64 code on. On the plus side, the wrapper is universal (a FAT powerpc & Intel Mac) binary. No more prompting to install Rosetta!
56 lines
1.6 KiB
Batchfile
56 lines
1.6 KiB
Batchfile
:: I2P Installer - Installs and pre-configures I2P.
|
|
::
|
|
:: postinstall.bat
|
|
:: 2004 The I2P Project
|
|
:: http://www.i2p2.de/
|
|
:: This code is public domain.
|
|
::
|
|
:: author: hypercubus
|
|
::
|
|
:: Installs the Java Service Wrapper support files for Win32 then launches the
|
|
:: I2P router as a background service.
|
|
|
|
@echo off
|
|
setlocal
|
|
|
|
if "%OS%"=="Windows_NT" (
|
|
set INSTALL_PATH=%~dp0
|
|
) else (
|
|
set INSTALL_PATH="%1"
|
|
)
|
|
|
|
copy "%INSTALL_PATH%lib\wrapper\win32\I2Psvc.exe" "%INSTALL_PATH%"
|
|
copy "%INSTALL_PATH%lib\wrapper\win32\wrapper.dll" "%INSTALL_PATH%lib"
|
|
copy "%INSTALL_PATH%lib\wrapper\all\wrapper.jar" "%INSTALL_PATH%lib"
|
|
|
|
if "%OS%"=="Windows_NT" (
|
|
|
|
del /f /q "%INSTALL_PATH%i2prouter"
|
|
:: del /f /q "%INSTALL_PATH%install_i2p_service_unix"
|
|
del /f /q "%INSTALL_PATH%install-headless.txt"
|
|
del /f /q "%INSTALL_PATH%osid"
|
|
del /f /q "%INSTALL_PATH%postinstall.sh"
|
|
del /f /q "%INSTALL_PATH%startRouter.sh"
|
|
:: del /f /q "%INSTALL_PATH%uninstall_i2p_service_unix"
|
|
del /f /q "%INSTALL_PATH%icons\*.xpm"
|
|
rmdir /q /s "%INSTALL_PATH%lib\wrapper"
|
|
start /b /i /d"%INSTALL_PATH%" i2prouter.bat %INSTALL_PATH%
|
|
|
|
) else (
|
|
|
|
del "%INSTALL_PATH%eepget"
|
|
del "%INSTALL_PATH%i2prouter"
|
|
:: del "%INSTALL_PATH%install_i2p_service_unix"
|
|
del "%INSTALL_PATH%install_i2p_service_winnt.bat"
|
|
del "%INSTALL_PATH%install-headless.txt"
|
|
del "%INSTALL_PATH%osid"
|
|
del "%INSTALL_PATH%postinstall.sh"
|
|
del "%INSTALL_PATH%startRouter.sh"
|
|
:: del "%INSTALL_PATH%uninstall_i2p_service_unix"
|
|
del "%INSTALL_PATH%uninstall_i2p_service_winnt.bat"
|
|
del "%INSTALL_PATH%icons\*.xpm"
|
|
deltree /Y "%INSTALL_PATH%lib\wrapper"
|
|
start /M "%INSTALL_PATH%i2prouter.bat" %INSTALL_PATH%
|
|
|
|
)
|