5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-04 19:21:21 +08:00
wails/website/i18n/ko/docusaurus-plugin-content-docs/version-v2.7.0/guides/windows-installer.mdx
Lea Anthony 6a8322cdb5
v2.7.0
2023-12-09 17:29:56 +11:00

59 lines
1.9 KiB
Plaintext

# NSIS installer
```mdx-code-block
<p style={{ "text-align": "center" }}>
<img
src={require("@site/static/img/nsis.webp").default}
style={{ "max-width": "50%" }}
/>
<br />
</p>
```
Wails는 [NSIS installer](https://nsis.sourceforge.io/)를 사용하여 Windows 인스톨러 생성을 지원합니다.
## NSIS 설치하기
### Windows
인스톨러는 [NSIS Download](https://nsis.sourceforge.io/Download) 페이지에서 사용이 가능합니다.
만약 chocolatey 패키지 매니저를 사용한다면, 다음 스크립트를 실행하세요:
```
choco install nsis
```
만약 NSIS를 수동으로 설치하기 원한다면, NSIS가 설치된 경로에서 `makensis.exe`가 포함된 _Bin_ 폴더를 추가 해야합니다. [여기](https://www.architectryan.com/2018/03/17/add-to-the-path-on-windows-10/) Windows에서 어떻게 경로를 추가하는지에 대한 튜토리얼이 있습니다.
### Linux
`nsis` 패키지는 사용자의 배포판 패키지 매니저를 통해 이용이 가능합니다.
### MacOS
NSIS는 homebrew를 통해 설치가 가능합니다: `brew install nsis`.
## 인스톨러 생성하기
새로운 프로젝트가 생성되었을때, Wails는 NSIS 설정 파일을 `build/windows/installer`에 생성합니다. 설정 데이터는 `installer/info.json`로 부터 읽어오며 이 데이터는 이 프로젝트의 `wails.json` Info 섹션에서 설정되어 사용됩니다:
```json
// ...
"Info": {
"companyName": "My Company Name",
"productName": "Wails Vite",
"productVersion": "1.0.0",
"copyright": "Copyright.........",
"comments": "Built using Wails (https://wails.io)"
},
```
애플리케이션을 위한 인스톨러를 생성하기 위해 `-nsis` 플래그를 `wails build`와 함께 사용하세요:
```
wails build -nsis
```
이제 인스톨러는 `build/bin` 디렉토리에서 이용이 가능합니다.