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 }}
SongLin99
HireWatch
Repository navigation
Code
Issues
Pull requests
Actions
Security and quality
Insights
More
items
Files
Expand file tree
main
Breadcrumbs
HireWatch
/
build_macos.command
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
executable file
·
34 lines (32 loc) · 1.71 KB
main
Breadcrumbs
HireWatch
/
build_macos.command
Copy path
Top
File metadata and controls
Code
Blame
executable file
·
34 lines (32 loc) · 1.71 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
34
#!/bin/bash
# Run locally on a Mac. This helper never uploads the project or installs Homebrew.
set -euo pipefail
cd -- "$(dirname -- "$0")"
failed() {
printf '\n构建未完成。请保留上方错误信息,查看 Mac构建说明.md 后重试。\n'
if [[ -t 0 ]]; then read -r -p '按回车关闭窗口…' _answer; fi
}
trap failed ERR
if [[ "$(uname -s)" != Darwin ]]; then
printf '请在 Mac 上运行此文件;Windows 不能生成可运行的 macOS App。\n'
exit 1
fi
if ! command -v python3 >/dev/null 2>&1; then
printf '请先从 python.org 安装适合这台 Mac 的 Python 3.12,再重新打开本文件。\n'
exit 1
fi
python3 -c 'import platform,sys; assert sys.version_info >= (3,10), "需要 Python 3.10 或更新版本,建议 3.12"; assert int(platform.mac_ver()[0].split(".")[0]) >= 14, "需要 macOS 14 或更新版本"'
if ! /usr/bin/xcrun --find clang >/dev/null 2>&1; then
printf '请先安装 Apple Command Line Tools(终端运行 xcode-select --install),安装后再重新打开本文件。\n'
exit 1
fi
printf '正在为这台 Mac 构建招聘雷达。首次需要联网下载构建依赖和内置采集浏览器;不会调用付费模型或发送推送。\n'
python3 -m venv .mac-build-venv
.mac-build-venv/bin/python -m pip install --upgrade pip
.mac-build-venv/bin/python -m pip install -r requirements-build-macos.txt
.mac-build-venv/bin/python -m pytest -q
.mac-build-venv/bin/python scripts/build_macos.py
.mac-build-venv/bin/python scripts/verify_macos_package.py
printf '\n构建及本机检查完成。请分享 release 中与本机芯片对应的 macOS ZIP,不要分享个人数据目录。\n'
/usr/bin/open release
if [[ -t 0 ]]; then read -r -p '按回车关闭窗口…' _answer; fi
You can’t perform that action at this time.