Skip to content

Commit

Permalink
fix floorp_downloader.mjs
Browse files Browse the repository at this point in the history
  • Loading branch information
typeling1578 authored Jan 30, 2024
1 parent 2bf9f79 commit a1dabe2
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions floorp_downloader/floorp_downloader.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@ if (process.env.GITHUB_TOKEN) {
headers.Authorization = `Bearer ${process.env.GITHUB_TOKEN}`;
}

const resultObj = await got({
url: "https://api.github.com/repos/Floorp-Projects/Floorp/releases/latest",
headers
}).json();
const resultObj = await got(
"https://api.github.com/repos/Floorp-Projects/Floorp/releases/latest",
{
headers
}
).json();

let validAsset;
const [os, arch] = process.argv.slice(2);
Expand Down Expand Up @@ -48,4 +50,4 @@ if (name.endsWith(".tar.bz2")) {
outputFilename = "floorp-package";
}

fs.writeFileSync(outputFilename, binary);
fs.writeFileSync(outputFilename, binary);

0 comments on commit a1dabe2

Please sign in to comment.