mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-01-11 20:00:29 +01:00
[PR #55] [CLOSED] Manage NodeJS binary at runtime #23
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/mountain-loop/yaak/pull/55
Author: @gschier
Created: 7/24/2024
Status: ❌ Closed
Base:
master← Head:fetch-nodejs📝 Commits (1)
828c88bAdd NodeJS fetching (not lazy yet)📊 Changes
6 files changed (+406 additions, -16 deletions)
View changed files
📝
src-tauri/Cargo.lock(+192 -1)📝
src-tauri/tauri-plugin-plugin-runtime/Cargo.toml(+7 -0)➕
src-tauri/tauri-plugin-plugin-runtime/src/archive.rs(+110 -0)📝
src-tauri/tauri-plugin-plugin-runtime/src/lib.rs(+3 -1)📝
src-tauri/tauri-plugin-plugin-runtime/src/nodejs.rs(+93 -12)📝
src-tauri/tauri.conf.json(+1 -2)📄 Description
This PR changes the NodeJS dependency from a Tauri Sidecar to self-managed binary. There is some Rust code to download and extract the Node binary into the correct place.
The management of this download is tricky because I haven't been able to figure out a way to lazily set a mutable global within Tauri state.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.