[fix] fix version number replace for pages

This commit is contained in:
dijunkun
2025-08-15 20:52:42 +08:00
parent 2ae5e5a969
commit c7166975b3

View File

@@ -30,10 +30,10 @@ jobs:
- name: Update download links - name: Update download links
run: | run: |
cd pages cd pages
sed -i "s/crossdesk-win-x86_64-latest.exe/crossdesk-win-x86_64-${VERSION_NUM}.exe/g" index.html sed -E -i "s/crossdesk-win-x86_64-[0-9]+\.[0-9]+\.[0-9]+\.exe/crossdesk-win-x86_64-${VERSION_NUM}.exe/g" index.html
sed -i "s/crossdesk-macos-x86_64-latest.pkg/crossdesk-macos-x86_64-${VERSION_NUM}.pkg/g" index.html sed -E -i "s/crossdesk-macos-x86_64-[0-9]+\.[0-9]+\.[0-9]+\.pkg/crossdesk-macos-x86_64-${VERSION_NUM}.pkg/g" index.html
sed -i "s/crossdesk-macos-arm64-latest.pkg/crossdesk-macos-arm64-${VERSION_NUM}.pkg/g" index.html sed -E -i "s/crossdesk-macos-arm64-[0-9]+\.[0-9]+\.[0-9]+\.pkg/crossdesk-macos-arm64-${VERSION_NUM}.pkg/g" index.html
sed -i "s/crossdesk-linux-x86_64-latest.deb/crossdesk-linux-x86_64-${VERSION_NUM}.deb/g" index.html sed -E -i "s/crossdesk-linux-x86_64-[0-9]+\.[0-9]+\.[0-9]+\.deb/crossdesk-linux-x86_64-${VERSION_NUM}.deb/g" index.html
- name: Commit & Push changes - name: Commit & Push changes
run: | run: |