@praise166/vire 0.1.5 → 0.1.6
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 +7 -5
- 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
|
}
|
|
@@ -398,17 +402,15 @@ async function saveSession(token, user) {
|
|
|
398
402
|
async function ensureReleaseBinary(downloadedRuntime) {
|
|
399
403
|
if (downloadedRuntime)
|
|
400
404
|
return downloadedRuntime;
|
|
405
|
+
const updateBinary = await newestDownloadedRuntime();
|
|
406
|
+
if (updateBinary)
|
|
407
|
+
return updateBinary;
|
|
401
408
|
const exe = process.platform === 'win32' ? 'vire.exe' : 'vire';
|
|
402
409
|
const binary = join(root, 'target', 'release', exe);
|
|
403
410
|
let exists = true;
|
|
404
411
|
await access(binary).catch(() => {
|
|
405
412
|
exists = false;
|
|
406
413
|
});
|
|
407
|
-
if (!exists) {
|
|
408
|
-
const updateBinary = await newestDownloadedRuntime();
|
|
409
|
-
if (updateBinary)
|
|
410
|
-
return updateBinary;
|
|
411
|
-
}
|
|
412
414
|
if (!exists) {
|
|
413
415
|
throw new Error('runtime missing; upload the exe to r2 or place it in updates');
|
|
414
416
|
}
|
package/package.json
CHANGED
|
Binary file
|