From a1dabe2fd943caa805e867a41df99dfd5d254d61 Mon Sep 17 00:00:00 2001 From: typeling1578 Date: Tue, 30 Jan 2024 11:52:15 +0900 Subject: [PATCH] fix floorp_downloader.mjs --- floorp_downloader/floorp_downloader.mjs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/floorp_downloader/floorp_downloader.mjs b/floorp_downloader/floorp_downloader.mjs index 08524e5..6b637b5 100644 --- a/floorp_downloader/floorp_downloader.mjs +++ b/floorp_downloader/floorp_downloader.mjs @@ -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); @@ -48,4 +50,4 @@ if (name.endsWith(".tar.bz2")) { outputFilename = "floorp-package"; } -fs.writeFileSync(outputFilename, binary); \ No newline at end of file +fs.writeFileSync(outputFilename, binary);