Skip to content

Commit

Permalink
fix: 🐛 mac build & download progress
Browse files Browse the repository at this point in the history
  • Loading branch information
caorushizi committed Oct 7, 2024
1 parent 1de2f48 commit 4998901
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [windows-latest, macos-14-large, ubuntu-latest]
os: [windows-latest, macos-13, ubuntu-latest]

# create steps
steps:
Expand Down
4 changes: 4 additions & 0 deletions packages/backend/src/vendor/SocketIO.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ export default class SocketIO implements Vendor {
},
});

this.io.engine.on("headers", (headers) => {
headers["Access-Control-Allow-Private-Network"] = true;
});

this.io.on("connection", () => {});

this.downloadService.on("download-ready-start", this.onDownloadReadyStart);
Expand Down
6 changes: 5 additions & 1 deletion packages/renderer/src/utils/socket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ export function getSocket() {
return _instance;
}

_instance = io("http://localhost:8899");
_instance = io("http://localhost:8899", {
extraHeaders: {
"Access-Control-Request-Private-Network": "true",
},
});

return _instance;
}

0 comments on commit 4998901

Please sign in to comment.