Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"label": "",
"position": "",
"label": "개발",
"position": 3,
"link": {
"type": "",
"description": ""
"type": "생성된 색인",
"description": "UMS 구축 및 개발 방법"
}
}
Original file line number Diff line number Diff line change
@@ -1,110 +1,108 @@
# Build instructions
# 빌드 지침

This document describes how to build Universal Media Server from the source files.
이 문서는 소스 파일에서 Universal Media Server를 구축하는 방법을 설명합니다.

_Important note:_
Prebuilt Universal Media Server releases can be downloaded from: http://www.universalmediaserver.com/ so you DO NOT need to run these steps as a general user.
_중요한 참고 사항:_:
사전 구축된 Universal Media Server 릴리스는 다음에서 다운로드할 수 있습니다: http://www.universalmediaserver.com/ . 따라서 일반 사용자로서 이러한 단계를 실행할 필요가 없습니다.

The following software packages are required:
다음 소프트웨어 패키지가 필요합니다:

- The Java JDK 17 (the JRE is not enough)
- Java JDK 17 (JRE로는 충분하지 않습니다)
- Git
- Maven
- [MediaInfo](https://mediaarea.net/en/MediaInfo/Download)

Read the [Full instructions](#full-instructions) section for a complete explanation of how to
install all required software and how to build UMS for each operating system.
필요한 모든 소프트웨어를 설치하는 방법과 각 운영 체제에 맞는 UMS를 구축하는 방법에 대한 자세한 설명은 [전체 지침](#전체 지침) 섹션을 읽어보세요.

# Short instructions
# 짧은 지침

If all required software packages are installed, the following commands will
download the latest sources and build UMS:
모든 필수 소프트웨어 패키지가 설치되면 다음 명령어가 최신 소스를 다운로드하고 UMS를 구축합니다:

```bash
git clone https://github.com/UniversalMediaServer/UniversalMediaServer.git
cd universalmediaserver
mvn package -P PACKAGENAME
```

Where `PACKAGENAME` is the name of the target operating system: `windows`, `macos`, `macos-arm`, `macos-pre1015` or `linux-*`, where `*` is the architecture; one of: `x86`, `x86_64`, `arm64`, `armel`, or `armhf`
여기서 'PACKAGENAME'는 대상 운영 체제의 이름입니다: 'window', 'macos', 'macos-arm', 'macos-pre1015' 또는 'linux-_', 여기서 '_'는 아키텍처입니다. 'x86', 'x86_64', 'arm64', 'armel' 또는 'armhf' 중 하나입니다

The result will be built in the "target" directory:
결과는 "대상" 디렉터리에 구축됩니다:

- Windows: `UMS-setup.exe`
- Linux: `UMS-linux-generic-x.xx.x.tar.gz`
- macOS: `UMS-setup-macosx-x.xx.x.tar.gz`

# Full instructions
# 전체 지침

First all required software has to be installed:
먼저 필요한 모든 소프트웨어를 설치해야 합니다:

## 1. Download and install the Java JDK 17
## 1. Java JDK 17 다운로드 및 설치

See https://bell-sw.com/pages/downloads/#/java-17-lts
https://bell-sw.com/pages/downloads/ #/java-17-lts 참조

## 2. Download and install Git
## 2. Git 다운로드 및 설치

See https://git-scm.com/
https://git-scm.com/ 을 참조하세요

## 3. Download and extract Maven
## 3. Maven 다운로드 및 추출

See http://maven.apache.org/
http://maven.apache.org/ 을 참조하세요

## 4. Set environment variables
## 4. 환경 변수 설정

### Windows

Create new variables or append the value if the variable already exists:
변수가 이미 존재하는 경우 새 변수를 만들거나 값을 추가합니다:

- Level: System, variable: `JAVA_HOME`, value: JDK install location
- Level: User, variable `M2_HOME`, value: Maven extract location
- Level: User, variable `M2`, value: `%M2_HOME%\bin`
- Level: User, variable `PATH`, value `%M2%`
- 레벨: 시스템, 변수: 'JAVA_HOME', 값: JDK 설치 위치
- 레벨: 사용자, 변수 'M2_HOME', 값: 메이븐 추출 위치
- 레벨: 사용자, 변수 'M2', 값: '%M2_HOME %\\bin'
- 레벨: 사용자, 변수 'PATH', 값 '%M2%'

### Linux

Nothing to do.
할 것이 없습니다.

### macOS

Nothing to do.
할 것이 없습니다.

## 5. Download the UMS source code
## 5. UMS 소스 코드 다운로드

```bash
git clone https://github.com/UniversalMediaServer/UniversalMediaServer.git
cd universalmediaserver
```

## 6. Update to the latest source (optional)
## 6. 최신 소스 업데이트 (선택 사항)

```bash
git pull
```

## 7. Compile the latest version of UMS
## 7. 최신 버전의 UMS 컴파일

```bash
mvn package -P PACKAGENAME
```

Where `PACKAGENAME` is the name of the target operating system: `windows`, `macos`, `macos-arm`, `macos-pre1015` or `linux-*`, where `*` is the architecture; one of: `x86`, `x86_64`, `arm64`, `armel`, or `armhf`
여기서 'PACKAGENAME'는 대상 운영 체제의 이름입니다: 'window', 'macos', 'macos-arm', 'macos-pre1015' 또는 'linux-_', 여기서 '_'는 아키텍처입니다. 'x86', 'x86_64', 'arm64', 'armel' 또는 'armhf' 중 하나입니다

You can also specify an optional flag if you want to skip downloading binaries, which can be useful to speed up build time, particularly on Windows and Linux:
바이너리 다운로드를 건너뛰고 싶다면 선택적 플래그를 지정할 수도 있으며, 이 플래그는 특히 Windows와 Linux에서 빌드 시간을 단축하는 데 유용할 수 있습니다:

```bash
mvn package -P PACKAGENAME -Doffline=true
```

The resulting binaries will be built in the "target" directory:
결과적으로 생성된 바이너리는 "대상" 디렉터리에 구축됩니다:

- Windows: `UMS-setup.exe`
- Linux: `UMS-linux-generic-x.xx.x.tar.gz`
- macOS: `ums-x.xx.x-SNAPSHOT-distribution/Universal Media Server.app`

## Automatic builds
## 자동 빌드

These last two commands can easily be automated using a script e.g.:
이 마지막 두 명령어는 예를 들어 스크립트를 사용하여 쉽게 자동화할 수 있습니다:

### Windows

Expand All @@ -114,7 +112,7 @@ start /D universalmediaserver /wait /b git pull
start /D universalmediaserver /wait /b mvn package
```

### Linux, macOS &c.
### 리눅스, macOS c.

```bash
#!/bin/sh
Expand All @@ -124,107 +122,102 @@ git pull
mvn package
```

# Packaging and cross-compilation
# 패키징 및 교차 편집

This section explains how it is possible to compile and package for one system while on another.
이 섹션에서는 다른 시스템에 있는 동안 한 시스템을 컴파일하고 패키징하는 방법을 설명합니다.

## Building the Windows binaries
## Windows 바이너리 구축

The Windows installers (`UMS-setup.exe`) and Windows executable (`UMS.exe`) can be built on non-Windows platforms.
Windows 설치 프로그램 ('UMS-setup.exe')과 Windows 실행 파일 ('UMS.exe')은 비Windows 플랫폼에서 구축할 수 있습니다.

First of all, you'll need to have the `makensis` binary installed. On Debian/Ubuntu,
this can be done with:
우선, 'makensis' 바이너리를 설치해야 합니다. 데비안/우분투에서,
이 작업은 다음과 같이 수행할 수 있습니다:

```bash
sudo apt-get install nsis
```

Then the `NSISDIR` environment needs to be set to the **absolute path** to the
`nsis` directory. This can either be set per-command:
그런 다음 'NSISDIR' 환경을 'NSIS' 디렉터리의 **절대 경로**로 설정해야 합니다. 이것은 명령마다 설정할 수 있습니다:

```bash
NSISDIR=$PWD/src/main/external-resources/third-party/nsis mvn ...
```

Either:
어느 한쪽의

- Temporarily in the current shell:
- 현재 셸에서 일시적으로:
```bash
export NSISDIR=$PWD/src/main/external-resources/third-party/nsis
mvn ...
```
- Or permanently:
- 또는 영구적으로:
```bash
# these two commands only need to be run once
# 이 두 명령어는 한 번만 실행하면 됩니다
echo "export NSISDIR=$PWD/src/main/external-resources/third-party/nsis" >> ~/.bashrc
source ~/.bashrc

mvn...
```

For the sake of brevity, the following examples assume it has already been set.
간결함을 위해 다음 예시들은 이미 설정되었다고 가정합니다.

The Windows installer can now be built with one of the following commands:
이제 다음 명령 중 하나로 Windows 설치 프로그램을 빌드할 수 있습니다:

### On Linux and macOS
### Linux 및 macOS에서

```bash
mvn package -P system-makensis,windows
```

## Building a Linux tarball
## Linux tarball 만들기

### On Windows and macOS
### Windows 및 macOS에서

```bash
mvn package -P linux-*
```

where `*` is one of: x86, x86_64, arm64, armel, or armhf
여기서 '\*'는 다음 중 하나입니다: x86, x86_64, arm64, armel 또는 armhf

## Building the macOS disk image
## macOS 디스크 이미지 구축하기

### On Windows and Linux
### Windows 및 Linux에서

```bash
mvn package -P macos
hdiutil create -volname "Universal Media Server" -srcfolder target/ums-*-distribution UMS.dmg
```

## Building the macOS wizard installer
## macOS 마법사 설치 프로그램 구축

1. Build UMS
2. Install http://s.sudre.free.fr/Software/Packages/about.html
3. Set a variable storing the directory path of the build distribution file, e.g.
1. UMS 구축
2. http://s.sudre.free.fr/Software/Packages/about.html 설치
3. 빌드 배포 파일의 디렉토리 경로를 저장하는 변수를 설정합니다 (예.

```bash
export UMS_DIST_FOLDER="/Users/dev/ums/target/ums-7.3.1-SNAPSHOT-distribution/Universal Media Server.app"
export UMS_LOGO_FILE="/Users/dev/ums/src/main/external-resources/third-party/nsis/Contrib/Graphics/Wizard/win.png"
```

4. Replace desired path inside the .pkgproj file
4. .pkgproj 파일 내에서 원하는 경로 바꾸기

```bash
sed -i '' "s#UMS_DIST_FOLDER#$UMS_DIST_FOLDER#g" src/main/assembly/osx-installer.pkgproj
sed -i '' "s#UMS_LOGO_FILE#$UMS_LOGO_FILE#g" src/main/assembly/osx-installer.pkgproj
```

5. Build .pkg installer. This will output to `/target/Universal Media Server.pkg`
5. .pkg 설치 프로그램을 만듭니다. 이렇게 하면 '/target/Universal Media Server.pkg'으로 출력됩니다

```bash
/usr/local/bin/packagesbuild src/main/assembly/osx-installer.pkgproj
```

# Quick builds
# 빠른 빌드

We have quick build scripts that are recommended during development for fast
iteration. The scripts will compile the Java code, put it in the default install
directory, and run the program, which will close any existing instance of UMS.
개발 중에 빠른 반복을 위해 추천하는 빠른 빌드 스크립트가 있습니다. 스크립트는 Java 코드를 컴파일하여 기본 설치 디렉터리에 넣고 프로그램을 실행하여 기존 UMS 인스턴스를 종료합니다.

It should work for 64-bit Windows and macOS. Can be extended for others easily if desired.
64비트 Windows 및 macOS에서 작동해야 합니다. 원한다면 다른 사람들을 위해 쉽게 확장할 수 있습니다.

```bash
mvn verify -P quickrun-* -DskipTests
```

Where `*` is `macos` or `windows`
여기서 '\*'는 'macos' 또는 'windows'입니다
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"label": "",
"position": "",
"label": "Ontwikkeling",
"position": 3,
"link": {
"type": "",
"description": ""
"type": "gegenereerde index",
"description": "Hoe bouw en ontwikkel je een UMS"
}
}
Loading