Clean up cross-package build coupling

This commit is contained in:
weishu
2026-05-20 19:29:43 +08:00
parent 6759cf4657
commit 83795c0630
22 changed files with 557 additions and 343 deletions
+2 -2
View File
@@ -2,7 +2,7 @@
* Download tunwg binaries for all platforms
*
* Downloads pre-built tunwg binaries from GitHub releases.
* Output directory: hub/tools/tunwg/
* Output directory: shared/tools/tunwg/
*/
import { existsSync, mkdirSync, writeFileSync, chmodSync } from 'node:fs';
@@ -46,7 +46,7 @@ async function main(): Promise<void> {
} else {
scriptDir = dirname(new URL(import.meta.url).pathname);
}
const toolsDir = join(scriptDir, '..', 'tools', 'tunwg');
const toolsDir = join(scriptDir, '..', '..', 'shared', 'tools', 'tunwg');
console.log('Downloading tunwg binaries...\n');