lecodes-cli 2.4.3 → 2.4.4
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 +4 -4
- package/package.json +8 -8
- package/runtime/sdk-types.json +1 -1
- package/runtime/web/VERSION.json +3 -3
- package/runtime/web/player.js +17 -17
- package/runtime/web-lite/lite.js +3 -3
- package/runtime/web-page/page.js +6 -6
- package/src/commands/app/index.ts +1 -1
- package/src/commands/app/shared.ts +4 -2
package/dist/index.js
CHANGED
|
@@ -52,7 +52,7 @@ var package_default;
|
|
|
52
52
|
var init_package = __esm(() => {
|
|
53
53
|
package_default = {
|
|
54
54
|
name: "lecodes-cli",
|
|
55
|
-
version: "2.4.
|
|
55
|
+
version: "2.4.4",
|
|
56
56
|
dependencies: {
|
|
57
57
|
"@letary/chisel": "^0.15.0",
|
|
58
58
|
jimp: "^1.6.1",
|
|
@@ -77,7 +77,7 @@ var init_package = __esm(() => {
|
|
|
77
77
|
},
|
|
78
78
|
peerDependencies: {
|
|
79
79
|
"lecodes-design": "^0.11.0",
|
|
80
|
-
"lecodes-headless": "^2.4.
|
|
80
|
+
"lecodes-headless": "^2.4.4",
|
|
81
81
|
"lecodes-3d-editor": "^0.9.0",
|
|
82
82
|
"lecodes-assets": "^0.2.1",
|
|
83
83
|
"heic-decode": "^2.1.0",
|
|
@@ -147,7 +147,7 @@ var init_package = __esm(() => {
|
|
|
147
147
|
});
|
|
148
148
|
|
|
149
149
|
// ../../sdk/src/version.ts
|
|
150
|
-
var SDK_VERSION = "2.4.
|
|
150
|
+
var SDK_VERSION = "2.4.4", sdkMajor = (version) => {
|
|
151
151
|
const m = version?.match(/^(\d+)\.\d+\.\d+/);
|
|
152
152
|
return m ? Number(m[1]) : null;
|
|
153
153
|
}, bundleSdkVersion = (head) => head.slice(0, 2000).match(/^\/\/ sdk: (\d+\.\d+\.\d+\S*)/m)?.[1] ?? null, bundleRunsOn = (bundleVersion, hostVersion) => sdkMajor(bundleVersion) !== null && sdkMajor(bundleVersion) === sdkMajor(hostVersion);
|
|
@@ -241079,7 +241079,7 @@ var sync2 = defineCommand({
|
|
|
241079
241079
|
usage: "[ios|android]",
|
|
241080
241080
|
description: `Compiles the bundle and embeds the assets it references (ios/App/Resources/ resp. the android assets/; offline by default, also for server projects — app.json "resources": {"remote": [globs]} keeps heavy assets streaming), picks the SDK variant from the bundle's engine use, vendors the app.json plugins (pinned in plugins.lock.json) and regenerates the CLI-owned shell files. User files (ios/App/*.swift, android/app/) are never touched.
|
|
241081
241081
|
|
|
241082
|
-
Native OTA JS updates at launch (both shells): the first launch of an installed build waits (≤ 5 s, the splash held) for the check and runs the newest bundle; every later launch runs the newest LOCAL bundle and a download applies on the next. On by default for a pushed project (its bundle on the platform, the launcher's own URL), app.json "update": {"url": …} for custom hosting, "update": false turns it off. A download runs only when it is of the shell's SDK major and not older than the bundle running; a store update keeps a downloaded bundle only when it is newer code than the one it ships. app.json "icon" (a square ≥1024px image) renders the app icons every sync ("iconBackground": the adaptive / flatten backdrop). app.json "splash" ({"background": "#RRGGBB", "image": "./splash.png", "size": 160}, all optional) renders the launch screen of both shells every sync — the colour with the image fitted centred into a size × size pt / dp square, 160 by default (iOS LaunchScreen.storyboard, Android the system splash of Theme.LeCodesRuntime, which the app's theme inherits). app.json "urlScheme" ("myshop") is the scheme the shells open on: iOS CFBundleURLTypes, Android a BROWSABLE intent-filter — a link arrives as app.launchUrl / the "url" event (the return of Browser.open with a returnUrl). app.json "appLinks" (["https://shop.example/pay/"]) are the verified https links they open on — iOS universal links (associated-domains in App.entitlements), Android App Links (autoVerify intent-filters in the manifest); sync prints the apple-app-site-association / assetlinks.json each site must serve. No platform = every shell that exists; a dual-shell project compiles once.`,
|
|
241082
|
+
Native OTA JS updates at launch (both shells): the first launch of an installed build waits (≤ 5 s, the splash held) for the check and runs the newest bundle (a source not newer than the build answers 304 to the build's compile date: nothing downloaded, the embedded bundle runs); every later launch runs the newest LOCAL bundle and a download applies on the next. On by default for a pushed project (its bundle on the platform, the launcher's own URL), app.json "update": {"url": …} for custom hosting, "update": false turns it off. A download runs only when it is of the shell's SDK major and not older than the bundle running; a store update keeps a downloaded bundle only when it is newer code than the one it ships. app.json "icon" (a square ≥1024px image) renders the app icons every sync ("iconBackground": the adaptive / flatten backdrop). app.json "splash" ({"background": "#RRGGBB", "image": "./splash.png", "size": 160}, all optional) renders the launch screen of both shells every sync — the colour with the image fitted centred into a size × size pt / dp square, 160 by default (iOS LaunchScreen.storyboard, Android the system splash of Theme.LeCodesRuntime, which the app's theme inherits). app.json "urlScheme" ("myshop") is the scheme the shells open on: iOS CFBundleURLTypes, Android a BROWSABLE intent-filter — a link arrives as app.launchUrl / the "url" event (the return of Browser.open with a returnUrl). app.json "appLinks" (["https://shop.example/pay/"]) are the verified https links they open on — iOS universal links (associated-domains in App.entitlements), Android App Links (autoVerify intent-filters in the manifest); sync prints the apple-app-site-association / assetlinks.json each site must serve. No platform = every shell that exists; a dual-shell project compiles once.`,
|
|
241083
241083
|
examples: ["lecodes app sync", "lecodes app sync android"],
|
|
241084
241084
|
run: ({ args }) => runSync(args[0])
|
|
241085
241085
|
});
|
package/package.json
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lecodes-cli",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.4",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"@letary/chisel": "^0.15.0",
|
|
6
6
|
"jimp": "^1.6.1",
|
|
7
|
-
"lecodes-sdk": "2.4.
|
|
7
|
+
"lecodes-sdk": "2.4.4",
|
|
8
8
|
"selfsigned": "^2.4.1"
|
|
9
9
|
},
|
|
10
10
|
"devDependencies": {
|
|
11
11
|
"lecodes-design": "https://storage.yandexcloud.net/le-codes/releases/packages/lecodes-design/lecodes-design-0.11.0.tgz",
|
|
12
|
-
"lecodes-headless": "2.4.
|
|
12
|
+
"lecodes-headless": "2.4.4",
|
|
13
13
|
"qrcode-terminal": "^0.12.0",
|
|
14
14
|
"lecodes-3d-editor": "https://storage.yandexcloud.net/le-codes/releases/packages/lecodes-3d-editor/lecodes-3d-editor-0.9.0.tgz",
|
|
15
15
|
"lecodes-assets": "0.2.1",
|
|
16
16
|
"lecodes-creator-nav": "0.19.0",
|
|
17
|
-
"lecodes-gl-lite": "2.4.
|
|
18
|
-
"lecodes-web-frame": "2.4.
|
|
19
|
-
"lecodes-web-player": "2.4.
|
|
20
|
-
"lecodes-web-shared": "2.4.
|
|
17
|
+
"lecodes-gl-lite": "2.4.4",
|
|
18
|
+
"lecodes-web-frame": "2.4.4",
|
|
19
|
+
"lecodes-web-player": "2.4.4",
|
|
20
|
+
"lecodes-web-shared": "2.4.4",
|
|
21
21
|
"lecodes-web-lite": "2.0.7",
|
|
22
22
|
"heic-decode": "^2.1.0",
|
|
23
23
|
"marcidb-embedded": "^0.15.0",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"lecodes-design": "^0.11.0",
|
|
28
|
-
"lecodes-headless": "^2.4.
|
|
28
|
+
"lecodes-headless": "^2.4.4",
|
|
29
29
|
"lecodes-3d-editor": "^0.9.0",
|
|
30
30
|
"lecodes-assets": "^0.2.1",
|
|
31
31
|
"heic-decode": "^2.1.0",
|