embedlabs 0.1.0-alpha.119 → 0.1.0-alpha.120
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/bin/install-progress.js +13 -3
- package/package.json +1 -1
package/bin/install-progress.js
CHANGED
|
@@ -136,9 +136,19 @@ function isEmbedLabsShim(filePath) {
|
|
|
136
136
|
}
|
|
137
137
|
|
|
138
138
|
function verifyInstallState() {
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
139
|
+
for (const prefix of installPrefixes()) {
|
|
140
|
+
if (platform() === "win32") {
|
|
141
|
+
const shimPath = join(prefix, "embedlabs.cmd");
|
|
142
|
+
mkdirSync(dirname(shimPath), { recursive: true });
|
|
143
|
+
writeFileSync(shimPath, windowsCmdShim(), "utf8");
|
|
144
|
+
chmodSync(shimPath, 0o755);
|
|
145
|
+
continue;
|
|
146
|
+
}
|
|
147
|
+
const shimPath = join(prefix, "bin", "embedlabs");
|
|
148
|
+
mkdirSync(dirname(shimPath), { recursive: true });
|
|
149
|
+
writeFileSync(shimPath, unixShellShim(), "utf8");
|
|
150
|
+
chmodSync(shimPath, 0o755);
|
|
151
|
+
}
|
|
142
152
|
}
|
|
143
153
|
|
|
144
154
|
function windowsCmdShim() {
|