Use pastebin URLs for the changelog and update check
This commit is contained in:
parent
9245ab6592
commit
2b82215678
|
@ -341,7 +341,7 @@ public class CamrecApplication extends Application {
|
||||||
private void checkForUpdates() {
|
private void checkForUpdates() {
|
||||||
Thread updateCheck = new Thread(() -> {
|
Thread updateCheck = new Thread(() -> {
|
||||||
try {
|
try {
|
||||||
String url = "https://api.github.com/repos/0xboobface/ctbrec/releases";
|
String url = "https://pastebin.com/raw/mUxtKzyB";
|
||||||
Request request = new Request.Builder().url(url).build();
|
Request request = new Request.Builder().url(url).build();
|
||||||
Response response = httpClient.execute(request);
|
Response response = httpClient.execute(request);
|
||||||
if (response.isSuccessful()) {
|
if (response.isSuccessful()) {
|
||||||
|
|
|
@ -41,7 +41,7 @@ public class UpdateTab extends Tab {
|
||||||
setContent(vbox);
|
setContent(vbox);
|
||||||
|
|
||||||
new Thread(() -> {
|
new Thread(() -> {
|
||||||
Request req = new Request.Builder().url("https://raw.githubusercontent.com/0xboobface/ctbrec/master/CHANGELOG.md").build();
|
Request req = new Request.Builder().url("https://pastebin.com/raw/fiAPtM0s").build();
|
||||||
try(Response resp = CamrecApplication.httpClient.execute(req)) {
|
try(Response resp = CamrecApplication.httpClient.execute(req)) {
|
||||||
if(resp.isSuccessful()) {
|
if(resp.isSuccessful()) {
|
||||||
changelog.setText(resp.body().string());
|
changelog.setText(resp.body().string());
|
||||||
|
|
Loading…
Reference in New Issue