authorgravatar for julius0216@outlook.comJulius Marminge <julius0216@outlook.com> 2026-03-03 09:12:24-08:00
committergravatar for julius0216@outlook.comJulius Marminge <julius0216@outlook.com> 2026-03-03 09:12:28-08:00
logf6d40ce841c43433e7a4afa94fc54b952f0c5d8b
treef23172b13b3e6077d9e011dcdeac8c779b39cb5d
parent36fb1bb7e4712fe8bf62467d31f062d04d386664

log?


2 files changed, 8 insertions(+), 6 deletions(-)

apps/server/scripts/cli.ts+1-1
...@@ -19,7 +19,7 @@ const RepoRoot = Effect.service(Path.Path).pipe(...@@ -19,7 +19,7 @@ const RepoRoot = Effect.service(Path.Path).pipe(
19 Effect.flatMap((path) => path.fromFileUrl(new URL("../../..", import.meta.url))),19 Effect.flatMap((path) => path.fromFileUrl(new URL("../../..", import.meta.url))),
20);20);
2121
22const runCommand = Effect.fn(function* (command: ChildProcess.Command) {22const runCommand = Effect.fn("runCommand")(function* (command: ChildProcess.Command) {
23 const spawner = yield* ChildProcessSpawner.ChildProcessSpawner;23 const spawner = yield* ChildProcessSpawner.ChildProcessSpawner;
24 const child = yield* spawner.spawn(command);24 const child = yield* spawner.spawn(command);
25 const exitCode = yield* child.exitCode;25 const exitCode = yield* child.exitCode;
scripts/build-desktop-artifact.ts+7-5
...@@ -162,7 +162,7 @@ const resolveBooleanFlag = (flag: Option.Option<boolean>, envValue: boolean) =>...@@ -162,7 +162,7 @@ const resolveBooleanFlag = (flag: Option.Option<boolean>, envValue: boolean) =>
162const mergeOptions = <A>(a: Option.Option<A>, b: Option.Option<A>, defaultValue: A) =>162const mergeOptions = <A>(a: Option.Option<A>, b: Option.Option<A>, defaultValue: A) =>
163 Option.getOrElse(a, () => Option.getOrElse(b, () => defaultValue));163 Option.getOrElse(a, () => Option.getOrElse(b, () => defaultValue));
164164
165const resolveBuildOptions = Effect.fn(function* (input: BuildCliInput) {165const resolveBuildOptions = Effect.fn("resolveBuildOptions")(function* (input: BuildCliInput) {
166 const path = yield* Path.Path;166 const path = yield* Path.Path;
167 const repoRoot = yield* RepoRoot;167 const repoRoot = yield* RepoRoot;
168 const env = yield* BuildEnvConfig.asEffect();168 const env = yield* BuildEnvConfig.asEffect();
...@@ -208,7 +208,7 @@ const commandOutputOptions = (verbose: boolean) =>...@@ -208,7 +208,7 @@ const commandOutputOptions = (verbose: boolean) =>
208 stderr: "inherit",208 stderr: "inherit",
209 }) as const;209 }) as const;
210210
211const runCommand = Effect.fn(function* (command: ChildProcess.Command) {211const runCommand = Effect.fn("runCommand")(function* (command: ChildProcess.Command) {
212 const commandSpawner = yield* ChildProcessSpawner.ChildProcessSpawner;212 const commandSpawner = yield* ChildProcessSpawner.ChildProcessSpawner;
213 const child = yield* commandSpawner.spawn(command);213 const child = yield* commandSpawner.spawn(command);
214 const exitCode = yield* child.exitCode;214 const exitCode = yield* child.exitCode;
...@@ -321,7 +321,7 @@ function validateBundledClientAssets(clientDir: string) {...@@ -321,7 +321,7 @@ function validateBundledClientAssets(clientDir: string) {
321 });321 });
322}322}
323323
324const createBuildConfig = Effect.fn(function* (324const createBuildConfig = Effect.fn("createBuildConfig")(function* (
325 platform: typeof BuildPlatform.Type,325 platform: typeof BuildPlatform.Type,
326 target: string,326 target: string,
327 productName: string,327 productName: string,
...@@ -366,7 +366,7 @@ const createBuildConfig = Effect.fn(function* (...@@ -366,7 +366,7 @@ const createBuildConfig = Effect.fn(function* (
366 return buildConfig;366 return buildConfig;
367});367});
368368
369const assertPlatformBuildResources = Effect.fn(function* (369const assertPlatformBuildResources = Effect.fn("assertPlatformBuildResources")(function* (
370 platform: typeof BuildPlatform.Type,370 platform: typeof BuildPlatform.Type,
371 stageResourcesDir: string,371 stageResourcesDir: string,
372 verbose: boolean,372 verbose: boolean,
...@@ -399,7 +399,9 @@ const assertPlatformBuildResources = Effect.fn(function* (...@@ -399,7 +399,9 @@ const assertPlatformBuildResources = Effect.fn(function* (
399 }399 }
400});400});
401401
402const buildDesktopArtifact = Effect.fn(function* (options: ResolvedBuildOptions) {402const buildDesktopArtifact = Effect.fn("buildDesktopArtifact")(function* (
403 options: ResolvedBuildOptions,
404) {
403 const repoRoot = yield* RepoRoot;405 const repoRoot = yield* RepoRoot;
404 const path = yield* Path.Path;406 const path = yield* Path.Path;
405 const fs = yield* FileSystem.FileSystem;407 const fs = yield* FileSystem.FileSystem;