vibecodingmachine-core 2025.11.2-7.1302 â 2025.11.2-7.1345
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -33,6 +33,8 @@ function formatVersionTimestamp(versionString, date) {
|
|
|
33
33
|
async function checkForElectronUpdates(currentVersion) {
|
|
34
34
|
return new Promise((resolve, reject) => {
|
|
35
35
|
const manifestUrl = `https://vibecodingmachine-website.s3.amazonaws.com/downloads/version.json?t=${Date.now()}`;
|
|
36
|
+
console.log(`đ [UPDATE CHECK] Current version: ${currentVersion}`);
|
|
37
|
+
console.log(`đĄ [UPDATE CHECK] Fetching: ${manifestUrl}`);
|
|
36
38
|
|
|
37
39
|
https.get(manifestUrl, (res) => {
|
|
38
40
|
let data = '';
|
|
@@ -53,6 +55,8 @@ async function checkForElectronUpdates(currentVersion) {
|
|
|
53
55
|
const manifest = JSON.parse(data);
|
|
54
56
|
const latestVersion = manifest.version;
|
|
55
57
|
const publishedDate = manifest.date;
|
|
58
|
+
console.log(`đĻ [UPDATE CHECK] Latest version from S3: ${latestVersion}`);
|
|
59
|
+
console.log(`đ [UPDATE CHECK] Comparison: "${currentVersion}" !== "${latestVersion}" = ${currentVersion !== latestVersion}`);
|
|
56
60
|
|
|
57
61
|
// Detect architecture and choose appropriate download URL
|
|
58
62
|
const arch = process.arch; // 'arm64' or 'x64'
|
|
@@ -76,6 +80,8 @@ async function checkForElectronUpdates(currentVersion) {
|
|
|
76
80
|
}
|
|
77
81
|
|
|
78
82
|
if (latestVersion !== currentVersion) {
|
|
83
|
+
console.log(`â
[UPDATE CHECK] Update available: ${currentVersion} â ${latestVersion}`);
|
|
84
|
+
console.log(`đĨ [UPDATE CHECK] Download URL: ${downloadUrl}`);
|
|
79
85
|
resolve({
|
|
80
86
|
hasUpdate: true,
|
|
81
87
|
currentVersion,
|
|
@@ -87,6 +93,7 @@ async function checkForElectronUpdates(currentVersion) {
|
|
|
87
93
|
downloadUrl
|
|
88
94
|
});
|
|
89
95
|
} else {
|
|
96
|
+
console.log(`âšī¸ [UPDATE CHECK] No update available - already on latest version ${currentVersion}`);
|
|
90
97
|
resolve({
|
|
91
98
|
hasUpdate: false,
|
|
92
99
|
currentVersion,
|
|
@@ -96,12 +103,13 @@ async function checkForElectronUpdates(currentVersion) {
|
|
|
96
103
|
});
|
|
97
104
|
}
|
|
98
105
|
} catch (error) {
|
|
99
|
-
console.error('Error parsing version manifest:', error);
|
|
106
|
+
console.error('â [UPDATE CHECK] Error parsing version manifest:', error);
|
|
107
|
+
console.error('[UPDATE CHECK] Raw data received:', data.substring(0, 200));
|
|
100
108
|
resolve({ hasUpdate: false, currentVersion, error: error.message });
|
|
101
109
|
}
|
|
102
110
|
});
|
|
103
111
|
}).on('error', (error) => {
|
|
104
|
-
console.error('Error
|
|
112
|
+
console.error('â [UPDATE CHECK] Error fetching version manifest:', error);
|
|
105
113
|
resolve({ hasUpdate: false, currentVersion, error: error.message });
|
|
106
114
|
});
|
|
107
115
|
});
|