Skip to content

Commit

Permalink
fix: format
Browse files Browse the repository at this point in the history
  • Loading branch information
ayushmanchhabra committed Nov 3, 2023
1 parent 0bd4f38 commit 61d884d
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions src/get.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,8 @@ async function getNwjs({
const bar = new progress.SingleBar({}, progress.Presets.rect);
const out = resolve(
cacheDir,
`nwjs${flavor === "sdk" ? "-sdk" : ""}-v${version}-${platform}-${arch}.${platform === "linux" ? "tar.gz" : "zip"
`nwjs${flavor === "sdk" ? "-sdk" : ""}-v${version}-${platform}-${arch}.${
platform === "linux" ? "tar.gz" : "zip"
}`,
);
// If options.cache is false, remove cache.
Expand Down Expand Up @@ -183,9 +184,11 @@ async function getNwjs({
downloadUrl === "https://npm.taobao.org/mirrors/nwjs" ||
downloadUrl === "https://npmmirror.com/mirrors/nwjs"
) {
url = `${downloadUrl}/v${version}/nwjs${flavor === "sdk" ? "-sdk" : ""
}-v${version}-${platform}-${arch}.${platform === "linux" ? "tar.gz" : "zip"
}`;
url = `${downloadUrl}/v${version}/nwjs${
flavor === "sdk" ? "-sdk" : ""
}-v${version}-${platform}-${arch}.${
platform === "linux" ? "tar.gz" : "zip"
}`;
}

getRequest(url, (response) => {
Expand Down Expand Up @@ -401,13 +404,13 @@ async function getNodeHeaders({

exec(
"patch " +
resolve(
cacheDir,
`node-v${version}-${platform}-${arch}`,
"common.gypi",
) +
" " +
resolve("..", "..", "patches", "node_header.patch"),
resolve(
cacheDir,
`node-v${version}-${platform}-${arch}`,
"common.gypi",
) +
" " +
resolve("..", "..", "patches", "node_header.patch"),
(error) => {
log.error(error);
},
Expand Down

0 comments on commit 61d884d

Please sign in to comment.