cherry-studio/scripts
beyondkmp 86d8e10dcb
refactor: fix asar integration (#9753)
* refactor: replace afterPack script with beforePack and remove after-pack.js file

- Updated electron-builder configuration to use beforePack instead of afterPack.
- Removed the after-pack.js script as its functionality is no longer needed.

* refactor: streamline filter logic for architecture-specific packages in before-pack script

- Consolidated platform-specific filter conditions for arm64 and x64 architectures.
- Improved readability and maintainability by using arrays to manage filters for different architectures.
- Ensured that the correct filters are applied based on the architecture during the packaging process.

* chore: remove npm build commands from CI workflows

- Eliminated unnecessary `yarn build:npm` commands from the nightly build and release workflows for Linux, macOS, and Windows.
- Streamlined the build process by focusing on platform-specific build commands.

* delete build npm

* refactor: enhance architecture-specific package management in before-pack script

- Updated the before-pack script to include additional architecture-specific packages for arm64 and x64.
- Improved the organization of package filters and streamlined the logic for handling different architectures during the packaging process.
- Ensured that the correct filters are applied based on the architecture, enhancing the build process for various platforms.

* docs: clarify comment on prebuild binaries in before-pack script

* format code

* chore: add afterPack script to electron-builder configuration

- Included afterPack script in electron-builder.yml to enhance the packaging process.
- This addition allows for post-packaging tasks to be executed, improving build automation.

* chore: update macOS entitlements to disable library validation

- Added the key `com.apple.security.cs.disable-library-validation` to the entitlements file to enhance security settings for macOS builds.

* chore: remove unused package for win32 arm64 architecture

- Deleted the `@strongtz/win32-arm64-msvc` package from `package.json` and `yarn.lock` as it is no longer needed.
- Updated the `before-pack.js` script to improve architecture-specific package management by refining filter logic and ensuring correct package downloads based on architecture.
- Enhanced the `downloadNpmPackage` function to use Node.js streams for downloading and extracting packages, improving efficiency and error handling.
2025-09-01 19:48:24 +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 feat(translate): brand new translate feature (#8513) 2025-08-11 13:33:31 +08:00
before-pack.js refactor: fix asar integration (#9753) 2025-09-01 19:48:24 +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 chore(i18n): forced nested structure to support i18n ally (#8457) 2025-07-25 17:36:04 +08:00
cloudflare-worker.js revert: cloudflare-worker.js 2024-12-24 17:38:30 +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 chore(i18n): improve i18n translation scripts (#8441) 2025-07-24 10:21:48 +08:00
update-i18n.ts fix typo secounds (#9751) 2025-09-01 11:45:00 +08:00
update-languages.ts Revert "feat(cherry-store): add cherry store (#8683)" 2025-08-06 14:29:55 +08:00
utils.js refactor: fix asar integration (#9753) 2025-09-01 19:48:24 +08:00
version.js chore(version): 0.3.7 2024-07-26 11:04:02 +08:00
win-sign.js build: add win-sign script 2025-05-22 19:33:40 +08:00