@genex-ai/cli-demo 0.35.0 → 0.36.0
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/index.js +14 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1655,6 +1655,8 @@ async function runPublish(opts) {
|
|
|
1655
1655
|
if (opts.sourceRepoUrl) body.sourceRepoUrl = opts.sourceRepoUrl;
|
|
1656
1656
|
if (opts.sourceAuthor) body.sourceAuthor = opts.sourceAuthor;
|
|
1657
1657
|
if (opts.license) body.license = opts.license;
|
|
1658
|
+
if (opts.purchaseUrl) body.purchaseUrl = opts.purchaseUrl;
|
|
1659
|
+
if (opts.productName) body.productName = opts.productName;
|
|
1658
1660
|
if (detections.embedSdkVersion) body.embedSdkVersion = detections.embedSdkVersion;
|
|
1659
1661
|
body.multiplayer = detections.multiplayer;
|
|
1660
1662
|
body.matchmaking = detections.matchmaking ?? null;
|
|
@@ -2263,6 +2265,9 @@ ${c.bold("Options for `preview` / `publish`")}
|
|
|
2263
2265
|
shown as "Ported from \u2026" credit on the game page.
|
|
2264
2266
|
--source-author <name> (publish) Upstream author to credit.
|
|
2265
2267
|
--license <label> (publish) Upstream license label (e.g. MIT).
|
|
2268
|
+
--purchase-url <url> (operator) External purchase URL \u2014 marks the game a
|
|
2269
|
+
paid-product demo ("Get \u2026" replaces Remix). Admin-only.
|
|
2270
|
+
--product-name <name> (operator) Product name for the "Get {name}" button.
|
|
2266
2271
|
--api-url <url> (publish) Override the API base URL.
|
|
2267
2272
|
--env <path> Token env file (default: ~/.genex/env).
|
|
2268
2273
|
|
|
@@ -2323,7 +2328,9 @@ function parseArgs(argv) {
|
|
|
2323
2328
|
"--duration",
|
|
2324
2329
|
"--source-repo-url",
|
|
2325
2330
|
"--source-author",
|
|
2326
|
-
"--license"
|
|
2331
|
+
"--license",
|
|
2332
|
+
"--purchase-url",
|
|
2333
|
+
"--product-name"
|
|
2327
2334
|
]);
|
|
2328
2335
|
let i = 0;
|
|
2329
2336
|
while (i < argv.length) {
|
|
@@ -2442,6 +2449,12 @@ function applyValueFlag(options, flag, value) {
|
|
|
2442
2449
|
case "--license":
|
|
2443
2450
|
options.license = value;
|
|
2444
2451
|
break;
|
|
2452
|
+
case "--purchase-url":
|
|
2453
|
+
options.purchaseUrl = value;
|
|
2454
|
+
break;
|
|
2455
|
+
case "--product-name":
|
|
2456
|
+
options.productName = value;
|
|
2457
|
+
break;
|
|
2445
2458
|
case "--timeout": {
|
|
2446
2459
|
const n = Number(value);
|
|
2447
2460
|
if (!Number.isFinite(n) || n <= 0) {
|
package/package.json
CHANGED