openkrew 0.2.4 → 0.2.5
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/core-bootstrap.mjs +6 -2
- package/package.json +1 -1
package/core-bootstrap.mjs
CHANGED
|
@@ -73,15 +73,19 @@ function getGatewayName() {
|
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
/**
|
|
76
|
-
* Checks if the binary is already downloaded
|
|
76
|
+
* Checks if the binary is already downloaded.
|
|
77
|
+
* Version management is handled by the .NET SelfUpdater after first install.
|
|
78
|
+
* The bootstrapper only needs to ensure the binary exists.
|
|
77
79
|
*/
|
|
78
80
|
function isInstalled() {
|
|
79
81
|
const binaryPath = join(BIN_DIR, getBinaryName());
|
|
80
82
|
if (!existsSync(binaryPath)) return false;
|
|
81
83
|
|
|
82
84
|
try {
|
|
85
|
+
// Just check that a version file exists — the .NET auto-updater
|
|
86
|
+
// manages version checks against S3 from here on.
|
|
83
87
|
const installedVersion = readFileSync(VERSION_FILE, "utf8").trim();
|
|
84
|
-
return installedVersion
|
|
88
|
+
return installedVersion.length > 0;
|
|
85
89
|
} catch {
|
|
86
90
|
return false;
|
|
87
91
|
}
|