anderlli0053 / DEV-tools

📦 General development tools for applications and games and pretty much everything else too :) . Created and maintained by Andrew Poženel - anderlli0053 . 📦
https://andrew-pozenel.xyz/
The Unlicense
115 stars 21 forks source link

paperwork@2.1.1: download via aria2 failed #61

Closed Ama1999 closed 1 year ago

Ama1999 commented 1 year ago

Missing package payload

Scoop Configuration

{
  "last_update": "2022-12-05T11:06:58.6929843+01:00",
  "use_external_7zip": true,
  "use_lessmsi": true,
  "autostash_on_conflict": true,
  "root_path": "#VALIDPATH",
  "global_path": "#VALIDPATH",
  "cache_path": "#VALIDPATH",
  "aria2-enabled": true,
  "aria2-warning-enabled": false,
  "aria2-retry-wait": "5",
  "aria2-split": "12",
  "aria2-max-connection-per-server": "12",
  "aria2-min-split-size": "6M",
  "virustotal_api_key": "#SECRET",
  "scoop_repo": "https://github.com/ScoopInstaller/Scoop",
  "scoop_branch": "develop"
}

Some fields were blanked out for privacy and/or security reasons, this should not affect the issue statement at all.

Relevant Console Output

Contents of console output when attempting install ERROR Download failed! (Error 3) Resource was not found ERROR https://download.openpaper.work/windows/x86/paperwork-master-ea1b8b01.zip referer=https://download.openpaper.work/windows/x86/ dir=#VALIDPATH\scoop-cache out=paperwork#2.1.1#https_download.openpaper.work_windows_x86_paperwork-master-ea1b8b01.zip ERROR & '#VALIDPATH\scoop\apps\aria2\current\aria2c.exe' --input-file='#VALIDPATH\scoop-cache\paperwork.txt' --user-agent=#VALIDUA --allow-overwrite=true --auto-file-renaming=false --retry-wait=5 --split=12 --max-connection-per-server=12 --min-split-size=6M --console-log-level=warn --enable-color=false --no-conf=true --follow-metalink=true --metalink-preferred-protocol=https --min-tls-version=TLSv1.2 --stop-with-process=2708 --continue --summary-interval=0 --auto-save-interval=1

Potential Mechanism

Developer of package seems to have changed the link pipeline to the resource. This may have been due to changes to versioning (following from below)

Potential Fix

Suggested change to the pipeline location to https://download.openpaper.work/windows/installer/paperwork_stable_installer.exe This seems to be the (new) correct URL for the download of the stable version of the package. Seeing as the previous version indicated 'master' version, it is unclear/unknown to me whether this would be the same versioning. If not, pulling from the resource GitLab may be a better idea, since it's more consistent and reliable.

github-actions[bot] commented 1 year ago

Cannot reproduce.

All files could be downloaded without any issue. Problems with download could be caused by:

anderlli0053 commented 1 year ago

I assume that the correct AND USEFUL download location is this: https://download.openpaper.work/windows/amd64/paperwork-master-latest.zip

since it is just ZIP, which just need to be extracted, more or less

anderlli0053 commented 1 year ago

@Ama1999 This will do for now, just needed to remove the autoupdate and checkversion structures from the manifest, since these are sadly not provided in the name of the downloaded file, but will hopefully re-add them in the future, if the Paperwork devs fix that.

Temporary fix for now

run scoop update && scoop install paperwork , be sure to install it from this bucket, if nowhere else works with this command which assumes that you aliased this bucket named "DEV-Tools"- > scoop update && scoop install DEV-Tools/paperwork

anderlli0053 commented 1 year ago

Updated the manifest