@praise166/vire 0.1.5 → 0.1.7
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/dist/vire.js +9 -4
- package/package.json +1 -1
- package/assets/Poppins-Regular.ttf +0 -0
package/dist/vire.js
CHANGED
|
@@ -186,6 +186,10 @@ function telemetryUrl() {
|
|
|
186
186
|
return target.toString();
|
|
187
187
|
}
|
|
188
188
|
function applyRemoteConfig(status) {
|
|
189
|
+
const url = statusUrl();
|
|
190
|
+
if (url && !process.env.VIRE_STATUS_URL) {
|
|
191
|
+
process.env.VIRE_STATUS_URL = url;
|
|
192
|
+
}
|
|
189
193
|
if (status.database_url && !process.env.DATABASE_URL) {
|
|
190
194
|
process.env.DATABASE_URL = status.database_url;
|
|
191
195
|
}
|
|
@@ -404,11 +408,12 @@ async function ensureReleaseBinary(downloadedRuntime) {
|
|
|
404
408
|
await access(binary).catch(() => {
|
|
405
409
|
exists = false;
|
|
406
410
|
});
|
|
407
|
-
if (
|
|
408
|
-
|
|
409
|
-
if (updateBinary)
|
|
410
|
-
return updateBinary;
|
|
411
|
+
if (exists && process.env.VIRE_USE_UPDATED_RUNTIME !== 'true') {
|
|
412
|
+
return binary;
|
|
411
413
|
}
|
|
414
|
+
const updateBinary = await newestDownloadedRuntime();
|
|
415
|
+
if (updateBinary)
|
|
416
|
+
return updateBinary;
|
|
412
417
|
if (!exists) {
|
|
413
418
|
throw new Error('runtime missing; upload the exe to r2 or place it in updates');
|
|
414
419
|
}
|
package/package.json
CHANGED
|
Binary file
|