mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-02 04:49:39 +08:00
docs: add direct-download badges for the desktop apps
Add macOS and Windows download badges (light/dark SVGs) to the README header, linking to releases/latest/download/<stable name>. The desktop release workflow now also uploads copies of each installer without the version in the file name, so those links always resolve to the newest build once the next release is published. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
11
.github/workflows/desktop-release.yml
vendored
11
.github/workflows/desktop-release.yml
vendored
@@ -206,7 +206,16 @@ jobs:
|
||||
shopt -s nullglob
|
||||
files=(out/*.dmg out/*-Setup.exe out/*-Portable.zip)
|
||||
[ ${#files[@]} -gt 0 ] || { echo "No downloads were produced." >&2; exit 1; }
|
||||
gh release upload "$RELEASE_TAG" "${files[@]}" --clobber
|
||||
# Also attach copies without the version in the name, so the README
|
||||
# can link to releases/latest/download/<name> and always get the newest build.
|
||||
mkdir -p out/latest
|
||||
for f in "${files[@]}"; do
|
||||
name="$(basename "$f")"
|
||||
stable="${name/-$RELEASE_TAG/}"
|
||||
[ "$stable" != "$name" ] || { echo "Expected $RELEASE_TAG in $name." >&2; exit 1; }
|
||||
cp "$f" "out/latest/$stable"
|
||||
done
|
||||
gh release upload "$RELEASE_TAG" "${files[@]}" out/latest/* --clobber
|
||||
|
||||
- name: Remove the temporary signing keychain
|
||||
if: always() && runner.os == 'macOS' && env.HAS_DEVELOPER_ID == 'true' && github.event_name != 'pull_request'
|
||||
|
||||
@@ -8,6 +8,12 @@
|
||||
<a href="https://deeptutor.info/collaborate/" target="_blank"><img alt="Collaborate — work with us" src="https://img.shields.io/badge/Collaborate-work%20with%20us%20%E2%86%97-0A0A0A?style=for-the-badge&labelColor=F5F5F4" height="36"></a>
|
||||
</p>
|
||||
|
||||
<p align="center">
|
||||
<a href="https://github.com/HKUDS/DeepTutor/releases/latest/download/Open-DeepTutor-MacOS-Apple-Silicon.dmg"><picture><source media="(prefers-color-scheme: dark)" srcset="assets/figs/badges/download-macos-dark.svg"><img alt="Download for macOS" src="assets/figs/badges/download-macos-light.svg" height="52"></picture></a>
|
||||
<a href="https://github.com/HKUDS/DeepTutor/releases/latest/download/Open-DeepTutor-Windows-Setup.exe"><picture><source media="(prefers-color-scheme: dark)" srcset="assets/figs/badges/download-windows-dark.svg"><img alt="Download for Windows" src="assets/figs/badges/download-windows-light.svg" height="52"></picture></a>
|
||||
</p>
|
||||
<p align="center"><sub>Apple Silicon Mac · Windows 10+ (x64) · <a href="https://github.com/HKUDS/DeepTutor/releases/latest">Intel Mac, portable Windows, and older versions</a></sub></p>
|
||||
|
||||
<p align="center">
|
||||
<a href="https://www.star-history.com/hkuds/deeptutor"><picture><source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/badge?repo=HKUDS/DeepTutor&type=trending&theme=dark" /><source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/badge?repo=HKUDS/DeepTutor&type=trending" /><img alt="GitHub Trending Repository of the Day" src="https://api.star-history.com/badge?repo=HKUDS/DeepTutor&type=trending" height="55" /></picture></a> <a href="https://trendshift.io/repositories/17099"><img src="https://trendshift.io/api/badge/trendshift/repositories/17099/daily" alt="HKUDS/DeepTutor | Trendshift" width="250" height="55"></a> <a href="https://www.star-history.com/hkuds/deeptutor"><picture><source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/badge?repo=HKUDS/DeepTutor&theme=dark"><source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/badge?repo=HKUDS/DeepTutor"><img alt="Star History Rank" src="https://api.star-history.com/badge?repo=HKUDS/DeepTutor" width="185" height="55"></picture></a>
|
||||
</p>
|
||||
|
||||
14
assets/figs/badges/download-macos-dark.svg
Normal file
14
assets/figs/badges/download-macos-dark.svg
Normal file
@@ -0,0 +1,14 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="200" height="56" viewBox="0 0 200 56" role="img" aria-label="Download for macOS">
|
||||
<title>Download for macOS</title>
|
||||
<defs>
|
||||
<linearGradient id="g" x1="0" y1="0" x2="0" y2="1">
|
||||
<stop offset="0" stop-color="#F4F4F5" stop-opacity="0.9"/>
|
||||
<stop offset="1" stop-color="#FFFFFF" stop-opacity="0"/>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
<rect x="0.5" y="0.5" width="199" height="55" rx="12" fill="#FFFFFF" stroke="#E4E4E7"/>
|
||||
<rect x="1" y="1" width="198" height="27" rx="11.5" fill="url(#g)" opacity="0.6"/>
|
||||
<g transform="translate(20 15) scale(1.083)" fill="#0A0A0A"><path d="M12.152 6.896c-.948 0-2.415-1.078-3.96-1.04-2.04.027-3.91 1.183-4.961 3.014-2.117 3.675-.546 9.103 1.519 12.09 1.013 1.454 2.208 3.09 3.792 3.039 1.52-.065 2.09-.987 3.935-.987 1.831 0 2.35.987 3.96.948 1.637-.026 2.676-1.48 3.676-2.948 1.156-1.688 1.636-3.325 1.662-3.415-.039-.013-3.182-1.221-3.22-4.857-.026-3.04 2.48-4.494 2.597-4.559-1.429-2.09-3.623-2.324-4.39-2.376-2-.156-3.675 1.09-4.61 1.09zM15.53 3.83c.843-1.012 1.4-2.427 1.245-3.83-1.207.052-2.662.805-3.532 1.818-.78.896-1.454 2.338-1.273 3.714 1.338.104 2.715-.688 3.559-1.701"/></g>
|
||||
<text x="62" y="23.5" fill="#71717A" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif" font-size="11" font-weight="500" letter-spacing="0.3">Download for</text>
|
||||
<text x="61.5" y="42" fill="#0A0A0A" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif" font-size="19" font-weight="600" letter-spacing="-0.2">macOS</text>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.6 KiB |
14
assets/figs/badges/download-macos-light.svg
Normal file
14
assets/figs/badges/download-macos-light.svg
Normal file
@@ -0,0 +1,14 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="200" height="56" viewBox="0 0 200 56" role="img" aria-label="Download for macOS">
|
||||
<title>Download for macOS</title>
|
||||
<defs>
|
||||
<linearGradient id="g" x1="0" y1="0" x2="0" y2="1">
|
||||
<stop offset="0" stop-color="#27272A" stop-opacity="0.9"/>
|
||||
<stop offset="1" stop-color="#0A0A0A" stop-opacity="0"/>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
<rect x="0.5" y="0.5" width="199" height="55" rx="12" fill="#0A0A0A" stroke="#0A0A0A"/>
|
||||
<rect x="1" y="1" width="198" height="27" rx="11.5" fill="url(#g)" opacity="0.6"/>
|
||||
<g transform="translate(20 15) scale(1.083)" fill="#FFFFFF"><path d="M12.152 6.896c-.948 0-2.415-1.078-3.96-1.04-2.04.027-3.91 1.183-4.961 3.014-2.117 3.675-.546 9.103 1.519 12.09 1.013 1.454 2.208 3.09 3.792 3.039 1.52-.065 2.09-.987 3.935-.987 1.831 0 2.35.987 3.96.948 1.637-.026 2.676-1.48 3.676-2.948 1.156-1.688 1.636-3.325 1.662-3.415-.039-.013-3.182-1.221-3.22-4.857-.026-3.04 2.48-4.494 2.597-4.559-1.429-2.09-3.623-2.324-4.39-2.376-2-.156-3.675 1.09-4.61 1.09zM15.53 3.83c.843-1.012 1.4-2.427 1.245-3.83-1.207.052-2.662.805-3.532 1.818-.78.896-1.454 2.338-1.273 3.714 1.338.104 2.715-.688 3.559-1.701"/></g>
|
||||
<text x="62" y="23.5" fill="#A1A1AA" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif" font-size="11" font-weight="500" letter-spacing="0.3">Download for</text>
|
||||
<text x="61.5" y="42" fill="#FFFFFF" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif" font-size="19" font-weight="600" letter-spacing="-0.2">macOS</text>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.6 KiB |
14
assets/figs/badges/download-windows-dark.svg
Normal file
14
assets/figs/badges/download-windows-dark.svg
Normal file
@@ -0,0 +1,14 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="200" height="56" viewBox="0 0 200 56" role="img" aria-label="Download for Windows">
|
||||
<title>Download for Windows</title>
|
||||
<defs>
|
||||
<linearGradient id="g" x1="0" y1="0" x2="0" y2="1">
|
||||
<stop offset="0" stop-color="#F4F4F5" stop-opacity="0.9"/>
|
||||
<stop offset="1" stop-color="#FFFFFF" stop-opacity="0"/>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
<rect x="0.5" y="0.5" width="199" height="55" rx="12" fill="#FFFFFF" stroke="#E4E4E7"/>
|
||||
<rect x="1" y="1" width="198" height="27" rx="11.5" fill="url(#g)" opacity="0.6"/>
|
||||
<g transform="translate(20 15) scale(1.083)" fill="#0A0A0A"><path d="M0 0h11.4v11.4H0zM12.6 0H24v11.4H12.6zM0 12.6h11.4V24H0zM12.6 12.6H24V24H12.6z"/></g>
|
||||
<text x="62" y="23.5" fill="#71717A" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif" font-size="11" font-weight="500" letter-spacing="0.3">Download for</text>
|
||||
<text x="61.5" y="42" fill="#0A0A0A" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif" font-size="19" font-weight="600" letter-spacing="-0.2">Windows</text>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.1 KiB |
14
assets/figs/badges/download-windows-light.svg
Normal file
14
assets/figs/badges/download-windows-light.svg
Normal file
@@ -0,0 +1,14 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="200" height="56" viewBox="0 0 200 56" role="img" aria-label="Download for Windows">
|
||||
<title>Download for Windows</title>
|
||||
<defs>
|
||||
<linearGradient id="g" x1="0" y1="0" x2="0" y2="1">
|
||||
<stop offset="0" stop-color="#27272A" stop-opacity="0.9"/>
|
||||
<stop offset="1" stop-color="#0A0A0A" stop-opacity="0"/>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
<rect x="0.5" y="0.5" width="199" height="55" rx="12" fill="#0A0A0A" stroke="#0A0A0A"/>
|
||||
<rect x="1" y="1" width="198" height="27" rx="11.5" fill="url(#g)" opacity="0.6"/>
|
||||
<g transform="translate(20 15) scale(1.083)" fill="#FFFFFF"><path d="M0 0h11.4v11.4H0zM12.6 0H24v11.4H12.6zM0 12.6h11.4V24H0zM12.6 12.6H24V24H12.6z"/></g>
|
||||
<text x="62" y="23.5" fill="#A1A1AA" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif" font-size="11" font-weight="500" letter-spacing="0.3">Download for</text>
|
||||
<text x="61.5" y="42" fill="#FFFFFF" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif" font-size="19" font-weight="600" letter-spacing="-0.2">Windows</text>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.1 KiB |
Reference in New Issue
Block a user