@@ -370,32 +370,34 @@ jobs:
370370 sha256=$(cat "bucket/${sha_file}" | cut -d ' ' -f 1)
371371 download_url="https://github.com/bgreenwell/xleak/releases/download/v${version}/${msi_file}"
372372
373- # Generate Scoop manifest
374- cat > "bucket/${app_name}.json" <<'MANIFEST'
375- {
376- " version " : " '" ${version}"'",
377- " description " : " A fast terminal Excel viewer with interactive TUI, search, formulas, and export capabilities" ,
378- " homepage " : " https://github.com/bgreenwell/xleak" ,
379- " license " : " MIT" ,
380- " architecture " : {
381- " 64bit " : {
382- " url " : " '" ${download_url}"'",
383- " hash " : " '" ${sha256}"'"
384- }
385- },
386- " bin " : " xleak.exe" ,
387- " checkver " : {
388- " github " : " https://github.com/bgreenwell/xleak"
389- },
390- " autoupdate " : {
391- " architecture " : {
392- " 64bit " : {
393- " url " : " https://github.com/bgreenwell/xleak/releases/download/v$version/xleak-x86_64-pc-windows-msvc.msi"
394- }
395- }
396- }
397- }
398- MANIFEST
373+ # Generate Scoop manifest using jq
374+ jq -n \
375+ --arg version "${version}" \
376+ --arg url "${download_url}" \
377+ --arg hash "${sha256}" \
378+ '{
379+ version: $version,
380+ description: "A fast terminal Excel viewer with interactive TUI, search, formulas, and export capabilities",
381+ homepage: "https://github.com/bgreenwell/xleak",
382+ license: "MIT",
383+ architecture: {
384+ "64bit": {
385+ url: $url,
386+ hash: $hash
387+ }
388+ },
389+ bin: "xleak.exe",
390+ checkver: {
391+ github: "https://github.com/bgreenwell/xleak"
392+ },
393+ autoupdate: {
394+ architecture: {
395+ "64bit": {
396+ url: "https://github.com/bgreenwell/xleak/releases/download/v$version/xleak-x86_64-pc-windows-msvc.msi"
397+ }
398+ }
399+ }
400+ }' > "bucket/${app_name}.json"
399401
400402 git add "bucket/${app_name}.json"
401403 git commit -m "${app_name} ${version}" || echo "Nothing to commit for ${app_name}"
0 commit comments