Skip to content

Commit

Permalink
Fix downloading package
Browse files Browse the repository at this point in the history
  • Loading branch information
kwent committed Feb 8, 2023
1 parent ee88632 commit 89f2726
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ node_modules
*.secret.*
gen
.env
scripts/archive.synology.com/
archive.synology.com
global.download.synology.com
npm-debug.log
tmp
8 changes: 7 additions & 1 deletion scripts/download_spk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,10 @@ for pkg in ${PACKAGES[@]}; do
done
done

wget --execute="robots = off" --mirror --convert-links --no-parent --accept $str https://archive.synology.com/download/Package/spk
wget --execute="robots = off" --mirror --convert-links --no-parent --accept $str https://archive.synology.com/download/Package

for f in $(find archive.synology.com/download/Package)
do
url=`sed -n 's/.*href="\([^"]*.spk\).*/\1/p' $f`
wget --execute="robots = off" --mirror "$url"
done

0 comments on commit 89f2726

Please sign in to comment.