Package tk.rpjosh.installer
Class Installer
- java.lang.Object
-
- tk.rpjosh.installer.Installer
-
public class Installer extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description int
error
-
Constructor Summary
Constructors Constructor Description Installer(InstallConfig conf)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createUnitFile()
[Linux] Creates a systemd unit fileint
getResponseCode()
Returns if the installation was successful (0 = successful, <0 = error)protected java.lang.String
getVersionOfProgramm()
Gibt die zu herunterladende Version des Programms ausvoid
installProgramm(java.lang.String[] args)
Starts the installation of the program
-
-
-
Constructor Detail
-
Installer
public Installer(InstallConfig conf)
-
-
Method Detail
-
installProgramm
public void installProgramm(java.lang.String[] args)
Starts the installation of the program- Parameters:
args
- If the program has to be restarted you can specify here the parameters with which the program should been restarted. These are normally the parameters which were specified when launching your installer
-
createUnitFile
public void createUnitFile()
[Linux] Creates a systemd unit file
-
getVersionOfProgramm
protected java.lang.String getVersionOfProgramm()
Gibt die zu herunterladende Version des Programms aus- Returns:
- den entsprechenden Dateinamen (z.B. windows_x64, linux_arm64)
-
getResponseCode
public int getResponseCode()
Returns if the installation was successful (0 = successful, <0 = error)- Returns:
- the error code
-
-