Skip to content

Commit 2fbb21c

Browse files
committed
refactor(locales): remove locale cleanup script and update packaging configuration
- Removed the `remove-locales.js` script as its functionality is no longer needed. - Updated `electron-builder.yml` to include additional language options for macOS. - Adjusted the `after-pack.js` script to eliminate the locale cleanup process.
1 parent 5bfa131 commit 2fbb21c

File tree

3 files changed

+6
-60
lines changed

3 files changed

+6
-60
lines changed

electron-builder.yml

+6
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,13 @@ electronLanguages:
55
- zh-TW
66
- en-GB
77
- en-US
8+
- zh_CN # for mac
9+
- zh_TW # for mac
10+
- en_GB # for mac
11+
- en_US # for mac
12+
- en # for mac
813
- ru
14+
915
directories:
1016
buildResources: build
1117
files:

scripts/after-pack.js

-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
const { Arch } = require('electron-builder')
2-
const { default: removeLocales } = require('./remove-locales')
32
const fs = require('fs')
43
const path = require('path')
54

65
exports.default = async function (context) {
7-
await removeLocales(context)
86
const platform = context.packager.platform.name
97
const arch = context.arch
108

scripts/remove-locales.js

-58
This file was deleted.

0 commit comments

Comments
 (0)