Skip to content
Source
Sign inSign up
pingdotgg/t3code

Stage fff native binaries in desktop builds #3109

Mergedjuliusmarmingemerged 1 commit intomain fromrefs/pull/3109/headmerged by juliusmarminge View on GitHub

Showing 6 changed files with 88 additions and 1 deletion (loading 2).

x
0 of 6 viewed, 6 left
1 addition and 1 deletionapps/server/package.jsonModified
View file
@@ -27,7 +27,7 @@
"@effect/platform-node": "catalog:",
"@effect/platform-node-shared": "catalog:",
"@effect/sql-sqlite-bun": "catalog:",
- "@ff-labs/fff-node": "^0.9.4",
+ "@ff-labs/fff-node": "0.9.4",
"@opencode-ai/sdk": "^1.3.15",
"@pierre/diffs": "catalog:",
"effect": "catalog:",
37 additions and 0 deletionspatches/@ff-labs__fff-node@0.9.4.patchAdded
View file
@@ -0,0 +1,37 @@
+diff --git a/dist/src/binary.js b/dist/src/binary.js
+index ee181aef5007e4bf34a49479c089ca30f73a320b..327e2c55c83cc4c50d396a3109190ef10af75ca7 100644
+--- a/dist/src/binary.js
++++ b/dist/src/binary.js
+@@ -7,7 +7,7 @@
+ */
+ import { existsSync, readFileSync } from "node:fs";
+ import { createRequire } from "node:module";
+-import { dirname, join } from "node:path";
++import { dirname, join, sep } from "node:path";
+ import { fileURLToPath } from "node:url";
+ import { getLibFilename, getNpmPackageName } from "./platform.js";
+ /**
+@@ -46,6 +46,14 @@ function getPackageDir() {
+ // Fallback: assume we're one level deep in src/
+ return dirname(currentDir);
+ }