Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects, and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Developer articles
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
CopilotKit
OpenBot
Repository navigation
Code
Issues
77
(77)
Pull requests
77
(77)
Actions
Projects
Wiki
Security and quality
Insights
More
items
Files
Expand file tree
main
Breadcrumbs
OpenBot
/
scripts
/
release-download-names.sh
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
executable file
·
33 lines (31 loc) · 1.55 KB
main
Breadcrumbs
OpenBot
/
scripts
/
release-download-names.sh
Copy path
Top
File metadata and controls
Code
Blame
executable file
·
33 lines (31 loc) · 1.55 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/usr/bin/env bash
# Prints the fixed name a release attaches an installer under.
#
# Usage: release-download-names.sh <installer file>
# release-download-names.sh --all every fixed name, one per line
#
# Tauri puts the version in every installer's name, `OpenBot_0.3.0_aarch64.dmg`, so a link to
# `releases/latest/download/<that name>` breaks with the next release. Each installer is also
# attached under a name without the version, and a web page links to that one. These names are a
# public address: docs/releasing.md lists them, and changing one breaks every page that links to it.
#
# A file that is not one of the known installers fails, so a new platform or a renamed product is
# noticed instead of being published without a stable link.
set -euo pipefail
# Every fixed name. A stable release becomes Latest only once each of these is on it, signed
# (scripts/release-make-latest.sh), so a new one here is one more installer it waits for.
if [ "${1:-}" = --all ]; then
printf '%s\n' OpenBot-mac-arm64.dmg OpenBot-mac-x64.dmg OpenBot-windows-x64-setup.exe
exit 0
fi
name="$(basename "${1:?usage: release-download-names.sh <installer file>}")"
if [[ "$name" =~ ^OpenBot_[^_]+_aarch64\.dmg$ ]]; then
echo OpenBot-mac-arm64.dmg
elif [[ "$name" =~ ^OpenBot_[^_]+_x64\.dmg$ ]]; then
echo OpenBot-mac-x64.dmg
elif [[ "$name" =~ ^OpenBot_[^_]+_x64-setup\.exe$ ]]; then
echo OpenBot-windows-x64-setup.exe
else
echo "::error::$name is not an installer with a fixed download name. Add it to scripts/release-download-names.sh and docs/releasing.md." >&2
exit 1
fi
You can’t perform that action at this time.