feat: add in-app update checker, enhance About page and project metadata
- Add AtlasUpdateChecker with GitHub Releases API integration - Add AtlasVersionComparator for semantic version comparison - Add AboutUpdateToolbarButton with popover update UI - Enhance AboutFeatureView with social QR codes and layout refinements - Add CHANGELOG.md and CODE_OF_CONDUCT.md - Rebrand project files from Mole to Atlas for Mac - Update build script to support version/build number injection - Add installation guide to README - Add bilingual localization strings for update feature - Add unit tests for update checker and version comparator
This commit is contained in:
4
.github/workflows/check.yml
vendored
4
.github/workflows/check.yml
vendored
@@ -51,8 +51,8 @@ jobs:
|
||||
- name: Commit formatting changes
|
||||
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }}
|
||||
run: |
|
||||
git config user.name "Tw93"
|
||||
git config user.email "tw93@qq.com"
|
||||
git config user.name "github-actions[bot]"
|
||||
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
||||
if [[ -n $(git status --porcelain) ]]; then
|
||||
git add .
|
||||
git commit -m "chore: auto format code"
|
||||
|
||||
50
.github/workflows/release.yml
vendored
50
.github/workflows/release.yml
vendored
@@ -102,53 +102,3 @@ jobs:
|
||||
generate_release_notes: false
|
||||
draft: false
|
||||
prerelease: false
|
||||
|
||||
update-formula:
|
||||
runs-on: ubuntu-latest
|
||||
needs: release
|
||||
steps:
|
||||
- name: Extract version from tag
|
||||
id: tag_version
|
||||
run: |
|
||||
TAG=${GITHUB_REF#refs/tags/}
|
||||
VERSION=${TAG#V}
|
||||
echo "tag=$TAG" >> $GITHUB_OUTPUT
|
||||
echo "version=$VERSION" >> $GITHUB_OUTPUT
|
||||
echo "Releasing version: $VERSION (tag: $TAG)"
|
||||
|
||||
- name: Update Homebrew formula (Personal Tap)
|
||||
uses: mislav/bump-homebrew-formula-action@56a283fa15557e9abaa4bdb63b8212abc68e655c # v3.6
|
||||
with:
|
||||
formula-name: mole
|
||||
formula-path: Formula/mole.rb
|
||||
homebrew-tap: tw93/homebrew-tap
|
||||
tag-name: ${{ steps.tag_version.outputs.tag }}
|
||||
commit-message: |
|
||||
mole ${{ steps.tag_version.outputs.version }}
|
||||
|
||||
Automated release via GitHub Actions
|
||||
env:
|
||||
COMMITTER_TOKEN: ${{ secrets.PAT_TOKEN }}
|
||||
|
||||
- name: Update Homebrew formula (Official Core)
|
||||
uses: mislav/bump-homebrew-formula-action@56a283fa15557e9abaa4bdb63b8212abc68e655c # v3.6
|
||||
with:
|
||||
formula-name: mole
|
||||
homebrew-tap: Homebrew/homebrew-core
|
||||
tag-name: ${{ steps.tag_version.outputs.tag }}
|
||||
commit-message: |
|
||||
mole ${{ steps.tag_version.outputs.version }}
|
||||
|
||||
Automated release via GitHub Actions
|
||||
env:
|
||||
COMMITTER_TOKEN: ${{ secrets.HOMEBREW_GITHUB_API_TOKEN }}
|
||||
continue-on-error: true
|
||||
|
||||
- name: Verify formula updates
|
||||
if: success()
|
||||
run: |
|
||||
echo "✓ Homebrew formulae updated successfully"
|
||||
echo " Version: ${{ steps.tag_version.outputs.version }}"
|
||||
echo " Tag: ${{ steps.tag_version.outputs.tag }}"
|
||||
echo " Personal tap: tw93/homebrew-tap"
|
||||
echo " Official core: Homebrew/homebrew-core (PR created)"
|
||||
|
||||
Reference in New Issue
Block a user