@mutmutco/installer-launcher 1.2.0 → 1.2.2
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/launcher.js +4 -2
- package/dist/launcher.sea.cjs +4 -2
- package/dist/refresh.js +2 -1
- package/package.json +1 -1
package/dist/launcher.js
CHANGED
|
@@ -1853,7 +1853,8 @@ async function refreshLauncher(target, options = {}) {
|
|
|
1853
1853
|
if (compareVersions(record.version, from) <= 0) return arm("ok", from, "");
|
|
1854
1854
|
if (options.dryRun) return arm("ok", record.version, "");
|
|
1855
1855
|
let unlock;
|
|
1856
|
-
|
|
1856
|
+
const lockHeld = options.lockHeld ?? process.env.MM_OUTER_CONSOLE === "1";
|
|
1857
|
+
if (!lockHeld) {
|
|
1857
1858
|
try {
|
|
1858
1859
|
unlock = lockInstallation(productDir);
|
|
1859
1860
|
} catch {
|
|
@@ -2158,7 +2159,7 @@ function page(title, body) {
|
|
|
2158
2159
|
}
|
|
2159
2160
|
|
|
2160
2161
|
// src/index.ts
|
|
2161
|
-
var LAUNCHER_VERSION = true ? "1.2.
|
|
2162
|
+
var LAUNCHER_VERSION = true ? "1.2.2" : readVersionFromPackage();
|
|
2162
2163
|
function defaultPrint(message) {
|
|
2163
2164
|
process.stdout.write(`${message}
|
|
2164
2165
|
`);
|
|
@@ -2604,6 +2605,7 @@ async function installOrUpdateRun(config, dir, options, print, update, flags2, m
|
|
|
2604
2605
|
fetch: fetchImpl,
|
|
2605
2606
|
readVersion: async () => LAUNCHER_VERSION
|
|
2606
2607
|
}) : null;
|
|
2608
|
+
if (arm) process.env.MM_LAUNCHER_REFRESHED = "1";
|
|
2607
2609
|
if (arm) {
|
|
2608
2610
|
installer.surface({
|
|
2609
2611
|
id: LAUNCHER_SURFACE,
|
package/dist/launcher.sea.cjs
CHANGED
|
@@ -1887,7 +1887,8 @@ async function refreshLauncher(target, options = {}) {
|
|
|
1887
1887
|
if (compareVersions(record.version, from) <= 0) return arm("ok", from, "");
|
|
1888
1888
|
if (options.dryRun) return arm("ok", record.version, "");
|
|
1889
1889
|
let unlock;
|
|
1890
|
-
|
|
1890
|
+
const lockHeld = options.lockHeld ?? process.env.MM_OUTER_CONSOLE === "1";
|
|
1891
|
+
if (!lockHeld) {
|
|
1891
1892
|
try {
|
|
1892
1893
|
unlock = lockInstallation(productDir);
|
|
1893
1894
|
} catch {
|
|
@@ -2192,7 +2193,7 @@ function page(title, body) {
|
|
|
2192
2193
|
}
|
|
2193
2194
|
|
|
2194
2195
|
// src/index.ts
|
|
2195
|
-
var LAUNCHER_VERSION = true ? "1.2.
|
|
2196
|
+
var LAUNCHER_VERSION = true ? "1.2.2" : readVersionFromPackage();
|
|
2196
2197
|
function defaultPrint(message) {
|
|
2197
2198
|
process.stdout.write(`${message}
|
|
2198
2199
|
`);
|
|
@@ -2638,6 +2639,7 @@ async function installOrUpdateRun(config, dir, options, print, update, flags2, m
|
|
|
2638
2639
|
fetch: fetchImpl,
|
|
2639
2640
|
readVersion: async () => LAUNCHER_VERSION
|
|
2640
2641
|
}) : null;
|
|
2642
|
+
if (arm) process.env.MM_LAUNCHER_REFRESHED = "1";
|
|
2641
2643
|
if (arm) {
|
|
2642
2644
|
installer.surface({
|
|
2643
2645
|
id: LAUNCHER_SURFACE,
|
package/dist/refresh.js
CHANGED
|
@@ -283,7 +283,8 @@ async function refreshLauncher(target, options = {}) {
|
|
|
283
283
|
if (compareVersions(record.version, from) <= 0) return arm("ok", from, "");
|
|
284
284
|
if (options.dryRun) return arm("ok", record.version, "");
|
|
285
285
|
let unlock;
|
|
286
|
-
|
|
286
|
+
const lockHeld = options.lockHeld ?? process.env.MM_OUTER_CONSOLE === "1";
|
|
287
|
+
if (!lockHeld) {
|
|
287
288
|
try {
|
|
288
289
|
unlock = lockInstallation(productDir);
|
|
289
290
|
} catch {
|
package/package.json
CHANGED