diff --git a/GUI/js/updater.js b/GUI/js/updater.js
index c11277d..b6aaad0 100644
--- a/GUI/js/updater.js
+++ b/GUI/js/updater.js
@@ -49,9 +49,6 @@ function showUpdateModal(updateInfo) {
Downloading...
-
@@ -64,12 +61,10 @@ function showUpdateModal(updateInfo) {
async function downloadUpdate() {
const downloadBtn = updateModal.querySelector('.btn-primary');
- const laterBtn = updateModal.querySelector('.btn-secondary');
const progressDiv = updateModal.querySelector('.update-progress');
- // Disable buttons and show progress
+ // Disable button and show progress
downloadBtn.disabled = true;
- laterBtn.disabled = true;
progressDiv.style.display = 'block';
try {
@@ -117,9 +112,6 @@ function showInstallUpdatePrompt(info) {
The launcher will restart to complete the installation.
-
diff --git a/backend/updateManager.js b/backend/updateManager.js
deleted file mode 100644
index f0c08c3..0000000
--- a/backend/updateManager.js
+++ /dev/null
@@ -1,73 +0,0 @@
-const axios = require('axios');
-
-const UPDATE_CHECK_URL = 'https://files.hytalef2p.com/api/version_launcher';
-const CURRENT_VERSION = '2.0.2';
-const GITHUB_DOWNLOAD_URL = 'https://github.com/amiayweb/Hytale-F2P/';
-
-class UpdateManager {
- constructor() {
- this.updateAvailable = false;
- this.remoteVersion = null;
- }
-
- async checkForUpdates() {
- try {
- console.log('Checking for updates...');
- console.log(`Local version: ${CURRENT_VERSION}`);
-
- const response = await axios.get(UPDATE_CHECK_URL, {
- timeout: 5000,
- headers: {
- 'User-Agent': 'Hytale-F2P-Launcher'
- }
- });
-
- if (response.data && response.data.launcher_version) {
- this.remoteVersion = response.data.launcher_version;
- console.log(`Remote version: ${this.remoteVersion}`);
-
- if (this.remoteVersion !== CURRENT_VERSION) {
- this.updateAvailable = true;
- console.log('Update available!');
- return {
- updateAvailable: true,
- currentVersion: CURRENT_VERSION,
- newVersion: this.remoteVersion,
- downloadUrl: GITHUB_DOWNLOAD_URL
- };
- } else {
- console.log('Launcher is up to date');
- return {
- updateAvailable: false,
- currentVersion: CURRENT_VERSION,
- newVersion: this.remoteVersion
- };
- }
- } else {
- throw new Error('Invalid API response');
- }
- } catch (error) {
- console.error('Error checking for updates:', error.message);
- return {
- updateAvailable: false,
- error: error.message,
- currentVersion: CURRENT_VERSION
- };
- }
- }
-
- getDownloadUrl() {
- return GITHUB_DOWNLOAD_URL;
- }
-
- getUpdateInfo() {
- return {
- updateAvailable: this.updateAvailable,
- currentVersion: CURRENT_VERSION,
- remoteVersion: this.remoteVersion,
- downloadUrl: this.getDownloadUrl()
- };
- }
-}
-
-module.exports = UpdateManager;
\ No newline at end of file
diff --git a/package.json b/package.json
index 8e72989..1b1fcf7 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "hytale-f2p-launcher",
- "version": "2.0.1",
+ "version": "2.1.0",
"description": "A modern, cross-platform launcher for Hytale with automatic updates and multi-client support",
"homepage": "https://github.com/amiayweb/Hytale-F2P",
"main": "main.js",