libdragon 11.4.2 → 11.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/README.md CHANGED
@@ -222,10 +222,12 @@ npm run libdragon -- update
222
222
 
223
223
  The root `bench` recipe is for building the code in root `src` folder. This is a quick way of testing your libdragon changes or a sample code built around libdragon, and is called the test bench. This recipe together with `examples` and `tests` recipes will build and install libdragon automatically as necessary. Thus, they will always produce a rom image using the libdragon code in the repository via their make dependencies, which is ideal for experimenting with libdragon itself.
224
224
 
225
- There are also vscode launch configurations to quickly build the examples, tests and the bench. If you have the `N64_EMU` environment variable set pointing at your favourite emulator ([ares](https://ares-emu.net/) is highly recommended), the launch configurations ending in `(emu)` will kick your emulator with the selected example/code. You can also just hit F5 to launch the selected configuration.
225
+ There are also vscode launch configurations to quickly build and run the examples, tests and the bench. If you have [ares](https://ares-emu.net/) on your `PATH`, the launch configurations ending in `(emu)` will start it automatically. For the examples configuration, you can navigate to the relevant `.c` file and `Run selected example` will start it most of the time. In some cases, the output ROM name may not match the `.c` file and in those cases, you can select the ROM file instead and it should work.
226
226
 
227
227
  > [!NOTE]
228
- > This repository also uses [ed64](https://github.com/anacierdem/ed64), so you can use the launch configurations without `(emu)` to run the code if you have an everdrive plugged in and your active configuration will just boot up.
228
+ > This repository also uses [UNFLoader](https://github.com/buu342/N64-UNFLoader), so you can use the launch configurations without `(emu)` to run the code if you have a supported flashcart plugged in and have `UNFLoader` executable on your `PATH`.
229
+ >
230
+ > The special `Debug Test Bench (emu)` configuration will start ares with remote debugging for the test bench if you have `gdb-multiarch` executable on your `PATH`. It should automatically break in your `main` function.
229
231
 
230
232
  You can clean everything with the `clean` recipe/task (open the command palette and choose `Run Task -> clean`).
231
233
 
@@ -1,6 +1,6 @@
1
1
  const sea = require('node:sea');
2
2
 
3
- const { log } = require('../helpers');
3
+ const { print } = require('../helpers');
4
4
 
5
5
  const printVersion = async () => {
6
6
  // Version is set during build time. If it is not set, it is set to the
@@ -10,7 +10,7 @@ const printVersion = async () => {
10
10
  const { version } = require('../../package.json');
11
11
  globalThis.VERSION = version;
12
12
  }
13
- log(`libdragon-cli v${globalThis.VERSION} ${sea.isSea() ? '(sea)' : ''}`);
13
+ print(`libdragon-cli v${globalThis.VERSION} ${sea.isSea() ? '(sea)' : ''}`);
14
14
  };
15
15
 
16
16
  module.exports = /** @type {const} */ ({
@@ -307,7 +307,10 @@ const dockerExec = /** @type {DockerExec} */ (
307
307
  workDirIndex >= 0 ? finalDockerParams[workDirIndex + 1] : undefined;
308
308
  return spawnProcess(finalCmdWithParams[0], finalCmdWithParams.slice(1), {
309
309
  ...options,
310
- spawnOptions: { cwd: workDir, ...options?.spawnOptions },
310
+ spawnOptions: {
311
+ cwd: workDir,
312
+ ...options?.spawnOptions,
313
+ },
311
314
  });
312
315
  }
313
316
 
@@ -345,7 +348,17 @@ const dockerExec = /** @type {DockerExec} */ (
345
348
  libdragonInfo.containerId,
346
349
  ...finalCmdWithParams,
347
350
  ],
348
- options
351
+ {
352
+ ...options,
353
+ spawnOptions: {
354
+ env: {
355
+ // Prevent the annoyin docker "What's next?" message. It messes up everything.
356
+ DOCKER_CLI_HINTS: 'false',
357
+ ...options?.spawnOptions?.env,
358
+ },
359
+ ...options?.spawnOptions,
360
+ },
361
+ }
349
362
  );
350
363
  }
351
364
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "libdragon",
3
- "version": "11.4.2",
3
+ "version": "11.4.4",
4
4
  "description": "This is a docker wrapper for libdragon",
5
5
  "main": "index.js",
6
6
  "engines": {
@@ -88,7 +88,7 @@
88
88
  "label": "Linux executable"
89
89
  },
90
90
  {
91
- "path": "libdragon-macos-x86_64.tar.gz",
91
+ "path": "libdragon-macos-arm64.tar.gz",
92
92
  "label": "MacOS executable"
93
93
  },
94
94
  {