From d46ddab639561a6bdfae72e560bb2b1c4e1dd9bf Mon Sep 17 00:00:00 2001
From: Kai Reinhard <K.Reinhard@micromata.de>
Date: Mon, 14 Jan 2019 22:52:30 +0000
Subject: [PATCH] Auto-install borg...

---
 borgbutler-core/src/main/java/de/micromata/borgbutler/config/Configuration.java |   14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)

diff --git a/borgbutler-core/src/main/java/de/micromata/borgbutler/config/Configuration.java b/borgbutler-core/src/main/java/de/micromata/borgbutler/config/Configuration.java
index 68fbdcf..996f873 100644
--- a/borgbutler-core/src/main/java/de/micromata/borgbutler/config/Configuration.java
+++ b/borgbutler-core/src/main/java/de/micromata/borgbutler/config/Configuration.java
@@ -22,7 +22,9 @@
     private static final String RESTORE_DIRNAME = "restore";
 
     @Getter
-    private String[][] binaries = {
+    private String binariesDownloadUrl = "https://github.com/borgbackup/borg/releases/download/1.1.8/";
+    @Getter
+    private String[][] borgBinaries = {
             {"freebsd64", "FreeBSD 64"},
             {"linux32", "Linux 32"},
             {"linux64", "Linux 64"},
@@ -32,7 +34,17 @@
     @Setter(AccessLevel.PACKAGE)
     private File workingDir;
 
+    /**
+     * One of the values "macosx64", "linux64" etc. for using a binary provided by BorgButler or null / "manual" for
+     * using a manual installed borg version.
+     */
     @Getter
+    private String borgBinary;
+    /**
+     * The path of the borg command to use.
+     */
+    @Getter
+    @Setter
     private String borgCommand = "borg";
     /**
      * Default is 100 MB (approximately).

--
Gitblit v1.10.0