Skip to content

Commit cdfe079

Browse files
committed
fix linux dev
1 parent 2c10455 commit cdfe079

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

packages/app/dev.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { _dirname } from "./src/utils";
66
spawnSync("bun", ["x", "prisma", "migrate", "dev", "-n", version], {
77
stdio: "inherit",
88
env: {
9+
...process.env,
910
DATABASE_URL: `file:${join(_dirname, ".docbase/data/db.sqlite")}`,
1011
},
1112
});

packages/utils/downloadRelease.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { parseTarGzip } from "nanotar";
55
import { writeFile } from "fs-extra";
66
import { join } from "path";
77
import { spawnSync } from "child_process";
8+
import { chmodSync } from "fs";
89

910
const download = (url: string, path: string) =>
1011
new Promise(async (resolve, reject) => {
@@ -44,7 +45,7 @@ const download = (url: string, path: string) =>
4445
}
4546
} else {
4647
spawnSync("sh", ["-c", `curl -L ${url} | tar xz -C ${path}`]);
47-
spawnSync("sh", ["-c", `chmod +x ${path}/dufs`]);
48+
chmodSync(join(path, "dufs"), 0o755);
4849
resolve(void 0);
4950
}
5051
});

0 commit comments

Comments
 (0)