]> khamidou — GitHub mirrors - electron.git/commitdiff
Update as upstream
authorPlusb Preco <plusb21@gmail.com>
Wed, 4 Nov 2015 08:47:14 +0000 (17:47 +0900)
committerPlusb Preco <plusb21@gmail.com>
Wed, 4 Nov 2015 08:47:14 +0000 (17:47 +0900)
docs-translations/ko-KR/api/app.md
docs-translations/ko-KR/api/auto-updater.md
docs-translations/ko-KR/tutorial/using-native-node-modules.md

index a443d1252f8e1f7f24240113cb2ab8f5aa0a86c4..26235fbe444b54788a1b4aff0509f2c64193b533 100644 (file)
@@ -362,6 +362,12 @@ app.on('ready', function() {
 });
 ```
 
+### `app.setAppUserModelId(id)` _Windows_
+
+* `id` String
+
+[Application User Model ID][app-user-model-id]를 `id`로 변경합니다.
+
 ### `app.commandLine.appendSwitch(switch[, value])`
 
 Chrominum의 명령줄에 스위치를 추가합니다. `value`는 추가적인 값을 뜻하며 옵션입니다.
@@ -418,3 +424,4 @@ dock 아이콘을 표시합니다.
 
 [dock-menu]:https://developer.apple.com/library/mac/documentation/Carbon/Conceptual/customizing_docktile/concepts/dockconcepts.html#//apple_ref/doc/uid/TP30000986-CH2-TPXREF103
 [tasks]:http://msdn.microsoft.com/en-us/library/windows/desktop/dd378460(v=vs.85).aspx#tasks
+[app-user-model-id]: https://msdn.microsoft.com/en-us/library/windows/desktop/dd378459(v=vs.85).aspx
index b940bb536181edc489223f1f12a895d985be895e..f12d04042ef2b0fb839845e052ebed39848c3c10 100644 (file)
@@ -15,7 +15,13 @@ OS X에선 `auto-updater` 모듈이 [Squirrel.Mac][squirrel-mac]를 기반으로
 ### Windows
 
 Windows에선 `auto-updater` 모듈을 사용하기 전에 어플리케이션을 사용자의 장치에 설치해야 합니다.
-[grunt-electron-installer][installer]를 사용하여 어플리케이션 셋업을 만드는 것을 권장합니다.
+[grunt-electron-installer][installer]를 사용하여 어플리케이션 인스톨러를 만드는 것을 권장합니다.
+
+Squirrel로 생성된 인스톨러는 [Application User Model ID][app-user-model-id]와 함께
+`com.squirrel.PACKAGE_ID.YOUR_EXE_WITHOUT_DOT_EXE`으로 형식화된 바로가기 아이콘을 생성합니다.
+`com.squirrel.slack.Slack` 과 `com.squirrel.code.Code`가 그 예시입니다.
+`app.setAppUserModelId` API를 통해 어플리케이션 ID를 동일하게 유지해야 합니다.
+그렇지 않으면 Windows 작업 표시줄에 어플리케이션을 고정할 때 제대로 적용되지 않을 수 있습니다.
 
 서버 사이드 요구 사항 또한 OS X와 다르게 적용됩니다. 자세한 내용은 [Squirrel.Windows][squirrel-windows]를 참고하세요.
 
@@ -74,7 +80,7 @@ Returns:
 
 서버에 새로운 업데이트가 있는지 요청을 보내 확인합니다. API를 사용하기 전에 `setFeedUrl`를 호출해야 합니다.
 
-### `autoUpdater.quitAndUpdate()`
+### `autoUpdater.quitAndInstall()`
 
 어플리케이션을 다시 시작하고 다운로드된 업데이트를 설치합니다.
 이 메서드는 `update-downloaded` 이벤트가 발생한 이후에만 사용할 수 있습니다.
@@ -83,3 +89,4 @@ Returns:
 [server-support]: https://github.com/Squirrel/Squirrel.Mac#server-support
 [squirrel-windows]: https://github.com/Squirrel/Squirrel.Windows
 [installer]: https://github.com/atom/grunt-electron-installer
+[app-user-model-id]: https://msdn.microsoft.com/en-us/library/windows/desktop/dd378459(v=vs.85).aspx
index 0691fefc864d5a7e108325334ab6d573ed60aa17..45c4811aa1a1f726321c33a4f6c33b267dd78f74 100644 (file)
@@ -29,6 +29,9 @@ npm install --save-dev electron-rebuild
 
 # 필요한 네이티브 모듈을 `npm install`로 설치한 후 다음 명령을 실행하세요:
 ./node_modules/.bin/electron-rebuild
+
+# Windows에서 문제가 발생하면 다음 명령을 대신 실행하세요:
+.\node_modules\.bin\electron-rebuild.cmd
 ```
 
 ### `npm`을 이용한 방법