qoder 0.2.10: international check-in finds Qoder's device identity runtime where Qoder CLI and the Linux desktop really keep it (ARNO on Discord: "device identity runtime not found")
0.2.9 (#49) looked for the CLI's cached runtime in ~/.qoder/.bin/umid-<platform>-<arch>-*/ on every platform. qodercli 1.1.66 (npm) and the worker in Qoder desktop 0.4.3 (extractBinary) make that folder only on Windows (umid-win32-<arch>-<hash>\runtime-info.exe with sgsdk.dll); on macOS and Linux they write a file, ~/.qoder/.bin/runtime-info-<platform>-<arch>-<hash>. And the Linux desktop installs to /opt/Qoder/resources/umid/runtime-info (Qoder 0.4.3's .deb and .rpm), which wasn't looked at. So a macOS user with only the CLI, and every Linux user, got HTTP 502 on the international check-in, while Qoder CN (which needs no runtime) checked in. campaignRuntime now looks at /opt/Qoder on Linux, reads the CLI's cache as the CLI writes it (the newest matching file, a .tmp being written skipped), and follows the CLI's own folder settings (QODER_CONFIG_DIR, QODER_CLI_HOME, QODER_CONFIG_DIR_NAME). Windows and macOS desktop lookup is unchanged. checkin.test.mjs lays out the CLI cache as qodercli writes it on win32/x64, darwin arm64/x64 and linux x64/arm64, plus /opt/Qoder and the config-folder variables: 6 of the new tests fail on 0.2.9 (the Windows case passes on both, as 0.2.9 had it right), all pass now. bun test packages/qoder (87 pass) and scripts/check.mjs qoder under a temp HOME pass. On this Mac the real lookup returns /Applications/Qoder.app/Contents/Resources/umid/runtime-info. Not run: the runtime itself against a real account, or on Linux/Windows.
This commit is contained in:
@@ -200,9 +200,14 @@ in-flight read and caching it in memory for an hour. The same identity
|
||||
goes on the list, the claim and a device-token retry; it is not saved in
|
||||
the account's credentials.
|
||||
|
||||
- Install Qoder desktop or run Qoder CLI to make its native runtime
|
||||
available. The plugin finds the desktop's standard Windows/macOS
|
||||
location or the CLI's matching `~/.qoder/.bin/umid-*` cache.
|
||||
- Install Qoder desktop, or sign in to Qoder CLI once, to make its native
|
||||
runtime available. The plugin finds the desktop's `resources/umid`
|
||||
(`Qoder.app` on macOS, `%LOCALAPPDATA%\Programs\Qoder` on Windows,
|
||||
`/opt/Qoder` on Linux) or the runtime the CLI caches in `~/.qoder/.bin`
|
||||
(`runtime-info-<platform>-<arch>-*` on macOS and Linux,
|
||||
`umid-win32-x64-*\runtime-info.exe` on Windows; `QODER_CONFIG_DIR`,
|
||||
`QODER_CLI_HOME` and `QODER_CONFIG_DIR_NAME` move it as they move the
|
||||
CLI's folder).
|
||||
- For another installation location, set `QODER_RUNTIME_INFO` to the
|
||||
absolute path of Qoder's installed `runtime-info` executable
|
||||
(`runtime-info.exe` on Windows), with its accompanying SDK files.
|
||||
|
||||
Reference in New Issue
Block a user