-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Bootstrap: pass proj.ver to javafx. * bootstrap: set version to match fx * MS: added remove temp file when a new one has been found ! * updater: fixed issues with fx not starting based on older bootstraps. Resolved handling boostrap version passed in via bootstrap. * MS: Change launcher update message to make it clearer. added a boolean to bootstrap model that is used to determin if its an bootstrap update that is happening. Using this boolean to force an bootstrap update on exit click if its avilable. * added a download URL to test bootstrap update. * force windows app to close once the bootstrap installer opens * close app on exec and dont wait for it * catch explorer blocking users IP address * disable FXTrayIcon from pom for now as bootstrap needs swing for this to work * MS: added a dialog that tells the user when the install faild and opens the temp folder. Co-authored-by: Fim-84 <[email protected]>
- Loading branch information
Showing
17 changed files
with
253 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
bootstrap/src/main/resources-filtered/org/unigrid/bootstrap/application.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
proj.ver=${project.version} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
71 changes: 71 additions & 0 deletions
71
fx/src/main/java/org/unigrid/janus/model/BootstrapModel.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
/* | ||
The Janus Wallet | ||
Copyright © 2021-2022 The Unigrid Foundation, UGD Software AB | ||
This program is free software: you can redistribute it and/or modify it under the terms of the | ||
addended GNU Affero General Public License as published by the Free Software Foundation, version 3 | ||
of the License (see COPYING and COPYING.addendum). | ||
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without | ||
even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU Affero General Public License for more details. | ||
You should have received an addended copy of the GNU Affero General Public License with this program. | ||
If not, see <http://www.gnu.org/licenses/> and <https://github.com/unigrid-project/janus-java>. | ||
*/ | ||
|
||
package org.unigrid.janus.model; | ||
|
||
import jakarta.enterprise.context.ApplicationScoped; | ||
import org.unigrid.janus.model.cdi.Eager; | ||
|
||
@Eager | ||
@ApplicationScoped | ||
public class BootstrapModel { | ||
|
||
private static BootstrapModel bootstrapModel = null; | ||
private String bootstrapVer = "0.0.0"; | ||
private String downloadUrl = "https://github.com/unigrid-project/janus-java/releases/download/"; | ||
private Boolean testing = false; | ||
|
||
private boolean bootstrapUpdate = false; | ||
|
||
public static BootstrapModel getInstance() { | ||
if (bootstrapModel == null) { | ||
bootstrapModel = new BootstrapModel(); | ||
} | ||
return bootstrapModel; | ||
} | ||
|
||
public String getBootstrapVer() { | ||
return this.bootstrapVer; | ||
} | ||
|
||
public void setBootstrapVer(String ver) { | ||
this.bootstrapVer = ver; | ||
} | ||
|
||
public void setBootstrapUpdate(boolean update) { | ||
this.bootstrapUpdate = update; | ||
} | ||
|
||
public boolean getBootstrapUpdate() { | ||
return this.bootstrapUpdate; | ||
} | ||
|
||
public String getDownloadUrl() { | ||
return this.downloadUrl; | ||
} | ||
|
||
public void setDownloadUrl(String url) { | ||
this.downloadUrl = url; | ||
} | ||
|
||
public Boolean getTesting() { | ||
return this.testing; | ||
} | ||
|
||
public void setTesting(Boolean test) { | ||
this.testing = test; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.