cherry-studio/scripts
beyondkmp 153c1024f6
refactor: use pnpm install instead of manual download for prebuild packages (#12358)
* refactor: use pnpm install instead of manual download for prebuild packages

Replace manual tgz download with pnpm install for architecture-specific
prebuild binaries, simplifying the build process.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>

* delete utils

* update after pack

* udpate before pack

* use optional deps

* refactor: use js-yaml to modify pnpm-workspace.yaml for cross-platform builds

- Add all prebuild packages to optionalDependencies in package.json
- Use js-yaml to parse and modify pnpm-workspace.yaml
- Add target platform to supportedArchitectures.os and cpu
- Restore original config after pnpm install

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>

* fix version

* refactor: streamline package management and filtering logic in before… (#12370)

refactor: streamline package management and filtering logic in before-pack.js

- Consolidated architecture-specific package definitions into a single array for better maintainability.
- Simplified the logic for determining target platform and architecture.
- Enhanced the filtering process for excluding and including packages based on architecture and platform.
- Improved console logging for clarity during package installation.

This refactor aims to improve the readability and efficiency of the prebuild package handling process.

* refactor: update package filtering logic in before-pack.js to read from electron-builder.yml

- Modified the package filtering process to load configuration directly from electron-builder.yml, reducing potential errors from multiple overrides.
- Enhanced maintainability by centralizing the file configuration management.

This change aims to streamline the prebuild package handling and improve configuration clarity.

---------

Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
Co-authored-by: 亢奋猫 <kangfenmao@qq.com>
2026-01-08 17:07:41 +08:00
..
__tests__ chore(i18n): Separate check-i18n and sync-i18n; add auto sort i18n (#8206) 2025-07-19 23:26:40 +08:00
after-pack.js refactor: fix asar integration (#9753) 2025-09-01 19:48:24 +08:00
artifact-build-completed.js chore(dependencies): update electron-builder to 26.0.15 (#5651) 2025-05-04 18:34:43 +08:00
auto-translate-i18n.ts refactor: switch yarn to pnpm (#12260) 2026-01-05 22:16:34 +08:00
before-pack.js refactor: use pnpm install instead of manual download for prebuild packages (#12358) 2026-01-08 17:07:41 +08:00
check-custom-exts.ts chore(languages): update languages with a script (#8445) 2025-07-24 15:57:09 +08:00
check-i18n.ts refactor: switch yarn to pnpm (#12260) 2026-01-05 22:16:34 +08:00
cloudflare-worker.js revert: cloudflare-worker.js 2024-12-24 17:38:30 +08:00
feishu-notify.ts feat(scripts): migrate feishu-notify to TypeScript CLI tool with subcommands (#12371) 2026-01-08 16:55:46 +08:00
notarize.js fix: clean up code (#5851) 2025-05-11 00:37:01 +08:00
sort.ts chore(i18n): Separate check-i18n and sync-i18n; add auto sort i18n (#8206) 2025-07-19 23:26:40 +08:00
sync-i18n.ts ci(i18n): update translation config to use TRANSLATION_BASE_LOCALE (#10965) 2025-10-26 15:58:54 +08:00
update-app-upgrade-config.ts ♻️ refactor: implement config-based update system with version compatibility control (#11147) 2025-11-14 17:49:40 +08:00
update-i18n.ts chore: migrate from openai to @cherrystudio/openai package (#10802) 2025-10-22 17:34:23 +08:00
update-languages.ts refactor: switch yarn to pnpm (#12260) 2026-01-05 22:16:34 +08:00
version.js refactor: switch yarn to pnpm (#12260) 2026-01-05 22:16:34 +08:00
win-sign.js chore: add gitcode release sync workflow (#11807) 2025-12-11 14:05:41 +08:00