- 将所有图片路径从绝对路径改为使用 process.env.PUBLIC_URL - 修复 HomePage.tsx 中所有图片引用 - 修复 CoursePage.tsx 中所有图片引用 - 确保图片在 GitHub Pages 上正确加载 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
22 lines
390 B
Bash
Executable File
22 lines
390 B
Bash
Executable File
#! /usr/bin/env bash
|
|
|
|
set -euo pipefail
|
|
|
|
# To make it work on OSX (provided gnu-sed in installed)
|
|
if type gsed 2> /dev/null
|
|
then
|
|
alias sed=gsed
|
|
fi
|
|
|
|
|
|
version=$(jq --raw-output ' .version ' "package.json")
|
|
date=$(date +%Y-%m-%d)
|
|
|
|
sed \
|
|
--regexp-extended \
|
|
--in-place="" \
|
|
"s$^## \[Unreleased\]$\## [Unreleased\]\n\n\n## [${version}] - ${date}$" \
|
|
CHANGELOG.md
|
|
|
|
git add CHANGELOG.md
|