Skip to content

Commit 89a5233

Browse files
committed
feat(nsis): ko lang
Close #1504
1 parent fafc7ba commit 89a5233

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

packages/electron-builder/src/targets/license.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import * as path from "path"
22
import { PlatformPackager } from "../platformPackager"
33

44
// "el_GR" "lv_LV" "ko_KR" "tr_TR"
5-
export const bundledLanguages = ["en_US", "de_DE", "fr_FR", "es_ES", "zh_CN", "zh_TW", "ja_JP", "it_IT", "nl_NL", "ru_RU", "pl_PL", "uk_UA", "cs_CZ", "sv_SE", "nb_NO", "da_DK", "pt_PT", "hu_HU"]
5+
export const bundledLanguages = ["en_US", "de_DE", "fr_FR", "es_ES", "zh_CN", "zh_TW", "ja_JP", "it_IT", "nl_NL", "ru_RU", "pl_PL", "uk_UA", "cs_CZ", "sv_SE", "nb_NO", "da_DK", "pt_PT", "hu_HU", "ko_KR"]
66
const langToLangWithRegion = new Map<string, string>()
77
for (const id of bundledLanguages) {
88
langToLangWithRegion.set(id.substring(0, id.indexOf("_")), id)

packages/electron-builder/src/targets/nsis.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const debugLang = _debug("electron-builder:lang")
2424
const ELECTRON_BUILDER_NS_UUID = "50e065bc-3134-11e6-9bab-38c9862bdaf3"
2525

2626
// noinspection SpellCheckingInspection
27-
const nsisPathPromise = getBinFromBintray("nsis", "3.0.1.11", "f2489ee90a68f9dad28e724e58bc9d4289390db58359500107b4eabc7a12e846")
27+
const nsisPathPromise = getBinFromBintray("nsis", "3.0.1.12", "9217687d1710ff23f20d17fe4766df7dd4ef492711ece6e6dae4e40e1e580e90")
2828
// noinspection SpellCheckingInspection
2929
const nsisResourcePathPromise = getBinFromBintray("nsis-resources", "3.0.0", "cde0e77b249e29d74250bf006aa355d3e02b32226e1c6431fb48facae41d8a7e")
3030

packages/electron-builder/templates/nsis/langs.nsh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
!insertmacro MUI_LANGUAGE "SimpChinese"
77
!insertmacro MUI_LANGUAGE "TradChinese"
88
!insertmacro MUI_LANGUAGE "Japanese"
9-
#!insertmacro MUI_LANGUAGE "Korean"
9+
!insertmacro MUI_LANGUAGE "Korean"
1010
!insertmacro MUI_LANGUAGE "Italian"
1111
!insertmacro MUI_LANGUAGE "Dutch"
1212
!insertmacro MUI_LANGUAGE "Danish"

test/src/windows/oneClickInstallerTest.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ test.ifAll("multi language license", app({
3636
return BluebirdPromise.all([
3737
writeFile(path.join(projectDir, "build", "license_en.txt"), "Hi"),
3838
writeFile(path.join(projectDir, "build", "license_ru.txt"), "Привет"),
39+
writeFile(path.join(projectDir, "build", "license_ko.txt"), "Привет"),
3940
])
4041
},
4142
}))

0 commit comments

Comments
 (0)