@todesktop/runtime
Advanced tools
Comparing version 1.6.3-8 to 1.6.3-9
@@ -23,3 +23,3 @@ "use strict"; | ||
const updateYamlPath = path.join(process.resourcesPath, "app-update.yml"); | ||
const updateYaml = yield readFlatYam(updateYamlPath); | ||
const updateYaml = yield readFlatYaml(updateYamlPath); | ||
const autoUpdateUrl = updateYaml.url || ""; | ||
@@ -69,3 +69,3 @@ const isDev = autoUpdateUrl.includes("todesktop-builds-dev"); | ||
} | ||
function readFlatYam(yamlPath) { | ||
function readFlatYaml(yamlPath) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
@@ -77,11 +77,11 @@ const result = {}; | ||
for (const line of lines) { | ||
const [key, value] = line.split(":").map((s) => s.trim()); | ||
result[key] = value; | ||
const [key, ...parts] = line.split(":").map((s) => s.trim()); | ||
result[key] = parts.join(":"); | ||
} | ||
return result; | ||
} | ||
catch (e) { | ||
throw new Error(`Failed to read or parse YAML file at ${yamlPath}: ${e}`); | ||
catch (_a) { | ||
// When can't read, return an empty object | ||
} | ||
return result; | ||
}); | ||
} |
@@ -1,1 +0,1 @@ | ||
export declare const CLIENT_VERSION = "1.6.3-8"; | ||
export declare const CLIENT_VERSION = "1.6.3-9"; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.CLIENT_VERSION = void 0; | ||
exports.CLIENT_VERSION = "1.6.3-8"; | ||
exports.CLIENT_VERSION = "1.6.3-9"; |
@@ -7,3 +7,3 @@ { | ||
"name": "@todesktop/runtime", | ||
"version": "1.6.3-8", | ||
"version": "1.6.3-9", | ||
"license": "MIT", | ||
@@ -10,0 +10,0 @@ "author": "ToDesktop <hi@todesktop.com> (https://www.todesktop.com/)", |
100629