fix(web): render draft PRs in gray (#9537)
This commit is contained in:
1 parent
5cc369b7eb
commit
caab2fdbac
30 files changed
+152
-36
No files matched your search
@@ -2863,7 +2863,7 @@ export const packWindowsServerAsar = Effect.fn("packWindowsServerAsar")(function
|
||||
readonly arch: typeof BuildArch.Type;
|
||||
}) {
|
||||
const fs = yield* FileSystem.FileSystem;
|
||||
yield* Effect.tryPromise({
|
||||
const archiveStream = yield* Effect.tryPromise({
|
||||
try: () =>
|
||||
createPackageWithOptions(input.sourceDir, input.asarPath, {
|
||||
dot: true,
|
||||
@@ -2872,6 +2872,21 @@ export const packWindowsServerAsar = Effect.fn("packWindowsServerAsar")(function
|
||||
}),
|
||||
catch: (cause) => new WindowsServerSidecarPackError({ asarPath: input.asarPath, cause }),
|
||||
});
|
||||
yield* Effect.tryPromise({
|
||||
try: () =>
|
||||
new Promise<void>((resolve, reject) => {
|
||||
const stream = archiveStream as NodeJS.WritableStream & {
|
||||
readonly writableFinished?: boolean;
|
||||
};
|
||||
if (stream.writableFinished === true) {
|
||||
resolve();
|
||||
return;
|
||||
}
|
||||
stream.once("finish", resolve);
|
||||
stream.once("error", reject);
|
||||
}),
|
||||
catch: (cause) => new WindowsServerSidecarPackError({ asarPath: input.asarPath, cause }),
|
||||
});
|
||||
const unpackedDirPath = `${input.asarPath}.unpacked`;
|
||||
if (!(yield* fs.exists(unpackedDirPath))) {
|
||||
return yield* new WindowsServerSidecarPackError({
|
||||
|
||||
Reference in new issue
Block a user