Commit Graph
21 Commits
Author SHA1 Message Date
陈大猫 44d25c10e1 Fix release note script for ESM 2026-01-23 03:11:56 +08:00
bincxzandClaude 44e8167300 refactor: improve toast notifications and credentials copy format
- Use toast.success/warning instead of toast({title:}) for better UX
- Change credentials copy format to labeled multi-line format
- Add ESLint global declarations for Node.js globals

Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-23 02:40:32 +08:00
bincxz f55a1a4c15 Revert "fix: accept any v* tag to match build.yml trigger pattern"
This reverts commit d4b64d564b.
2026-01-22 23:07:39 +08:00
bincxzandClaude d4b64d564b fix: accept any v* tag to match build.yml trigger pattern
The workflow triggers on `v*` tags and build.yml extracts version from
any v-prefixed tag. Updated the regex from `^v\d+\.\d+\.\d+` to `^v\d`
to accept tags like v1, v1.2, v1.2.3, etc.

This ensures version parsing stays in sync with build.yml behavior.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-22 23:06:12 +08:00
bincxzandClaude 64d3b1f26a fix: set version in build job for both tag and workflow_dispatch
- Tag release: use version from tag (e.g., v1.2.3 -> 1.2.3)
- workflow_dispatch: use short commit ID (first 7 chars)

This ensures electron-builder artifacts match the release notes
download links in all scenarios.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-22 22:52:20 +08:00
bincxzandClaude f6148d3578 fix: use short commit ID as version fallback before package.json
Version priority is now:
1. VERSION env variable
2. Valid version tag (v1.2.3 format)
3. Short commit ID (first 7 chars)
4. package.json version as final fallback

Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-22 22:52:20 +08:00
bincxzandClaude c4d6d999c1 fix: align release-note version with built artifact version
When workflow is triggered via workflow_dispatch, GITHUB_REF_NAME is
the branch name (e.g., "main") instead of a version tag. This caused
the generated release notes to have incorrect download URLs.

Now the script:
1. Checks if GITHUB_REF_NAME is a valid version tag (v1.2.3 format)
2. Falls back to reading version from package.json if not

This ensures the release notes always match the actual artifact
filenames produced by electron-builder.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-22 22:52:20 +08:00
TachibanaLolo b3a2063ca4 ci: add upstream sync workflow 2026-01-22 22:05:44 +08:00
TachibanaLolo e6f2da48a7 ci: remove unused artifacts (zip, blockmap, yml) from upload 2026-01-22 21:59:35 +08:00
TachibanaLolo f98c578761 Remove Android download placeholder from release notes 2026-01-22 21:42:57 +08:00
TachibanaLolo 449d63ca3e feat: enhance release workflow and sftp sudo support 2026-01-22 21:40:19 +08:00
TachibanaLolo f930e80dab feat: add linux build support (x64/arm64) 2026-01-08 23:21:05 +08:00
LAPTOP-O016UC3M\Qi Chen 5954359995 Allow manual build trigger to publish releases
Enables publishing a GitHub Release when the workflow is manually
triggered and the corresponding input is set, providing more
flexibility for release management beyond tag-based automation.
2026-01-08 10:40:00 +08:00
bincxz cd458414b8 ci: filter release files by extension 2026-01-01 23:49:56 +08:00
bincxz be5ed6804c Uses dedicated release token for artifact upload
Switches from the default GitHub token to a specific release token
for artifact uploads, improving security and aligning with best
practices for token management.
2026-01-01 23:32:14 +08:00
bincxz c957540471 Sets package version from tag in CI workflow
Ensures the npm package version automatically matches the Git tag
during CI builds triggered by version tags, improving consistency
between releases and tags.
2026-01-01 22:56:37 +08:00
bincxz ca280690c6 Refines artifact handling in CI workflow
Limits uploaded and released artifacts to specific file types
to avoid unnecessary files, improving release clarity.
Adds artifact listing for easier debugging and ensures
release notes are auto-generated. Sets unmatched files
to not fail the release step for smoother automation.
2026-01-01 22:55:20 +08:00
bincxz f1955f44cc Moves release process to separate workflow job
Separates artifact release steps into a dedicated job triggered
only on tag refs, improving workflow clarity and ensuring that
release permissions are only granted when needed.
2025-12-30 02:52:55 +08:00
bincxz 15deca7bea Prevents publishing during macOS and Windows builds
Sets the environment variable to disable publishing artifacts
when building for macOS and Windows. Ensures builds do not
accidentally trigger publish actions in CI environments.
2025-12-30 02:20:57 +08:00
bincxz dd31e2d1f9 Updates macOS packaging config and removes unused dependency
Switches macOS package target from pkg to dmg and zip, disables hardened runtime, and sets code signing identity discovery off to resolve build issues. Removes an unused Windows-specific package to clean up dependencies.
2025-12-30 02:15:27 +08:00
bincxz bef05e52d6 Load OAuth client secrets from environment variables
Improves configuration security and flexibility by reading OAuth
client IDs and secrets from environment variables instead of
hardcoding them. Enables easier key management across environments
and adds support for Google client secret in token exchange flows.
2025-12-30 02:11:17 +08:00