Bob the builder - kuimoani/defold GitHub Wiki

Bob the builder

Bob은 에디터 μ™ΈλΆ€μ—μ„œ Defold ν”„λ‘œμ νŠΈλ₯Ό λΉŒλ“œν•˜κΈ° μœ„ν•œ λ„κ΅¬μž…λ‹ˆλ‹€. 이 메뉴얼은 이 도ꡬλ₯Ό μ‚¬μš©ν•˜λŠ” 방법에 λŒ€ν•΄ μ„€λͺ…ν•©λ‹ˆλ‹€.

Overview

Bob은 데이터λ₯Ό λΉŒλ“œ(μ—λ””ν„°μ—μ„œ Project β–Έ Build And Launch μ„ νƒν•˜λŠ” 것에 해당함)ν•˜κ³  μ••μΆ•ν•˜κ³  독립(standalone) 및 배포 κ°€λŠ₯ν•œ μ–΄ν”Œλ¦¬μΌ€μ΄μ…˜ λ²ˆλ“€μ„ 생성(μ—λ””ν„°μ—μ„œ Project β–Έ Bundle β–Έ * 을 μ„ νƒν•˜λŠ” 것에 해당함)ν•  수 μžˆμŠ΅λ‹ˆλ‹€.

Bob은 λΉŒλ“œμ— ν•„μš”ν•œ λͺ¨λ“  것을 ν¬ν•¨ν•˜λŠ” Java JAR 파일 ν˜•μ‹μœΌλ‘œ λ°°ν¬λ©λ‹ˆλ‹€. http://d.defold.com μ—μ„œ μ΅œμ‹  "bob.jar" 배포본을 찾을 수 μžˆμŠ΅λ‹ˆλ‹€. μ›ν•˜λŠ” Releases 버전을 μ„ νƒν•΄μ„œ "bob/bob.jar" νŒŒμΌμ„ λ‹€μš΄λ‘œλ“œ ν•©λ‹ˆλ‹€. Bob 도ꡬλ₯Ό μ‹€ν–‰ν•˜λ €λ©΄ 컴퓨터에 Java 8 이 μ„€μΉ˜λ˜μ–΄μ•Ό ν•©λ‹ˆλ‹€. JavasλŠ” https://www.java.com μ—μ„œ λ‹€μš΄λ‘œλ“œ ν•  수 μžˆμŠ΅λ‹ˆλ‹€.

Usage

Bob은 μ‰˜μ΄λ‚˜ μ»€λ§¨λ“œ λΌμΈμ—μ„œ "java"(λ˜λŠ” Windowsμ—μ„œλŠ” "java.exe") ν˜ΈμΆœμ‹œ bob java νŒŒμΌμ„ 인수둜 λ„˜κ²¨μ„œ μ‹€ν–‰ν•  수 μžˆμŠ΅λ‹ˆλ‹€.

$ java -jar bob.jar --help
usage: bob [options] [commands]
 -,--identity <arg>                  Sign identity (iOS)
 -a,--archive                        Build archive
 -bo,--bundle-output <arg>           Bundle output directory
 -br,--build-report <arg>            Filepath where to save a build report
                                     as JSON
 -brhtml,--build-report-html <arg>   Filepath where to save a build report
                                     as HTML
 -ce,--certificate <arg>             Certificate (Android)
 -d,--debug                          Use debug version of dmengine (when
                                     bundling)
 -e,--email <arg>                    User email
 -h,--help                           This help message
 -i,--input <arg>                    Source directory. Default is current
                                     directory
 -k,--keep-unused                    Keep unused resources in archived
                                     output
 -mp,--mobileprovisioning <arg>      mobileprovisioning profile (iOS)
 -o,--output <arg>                   Output directory. Default is
                                     "build/default"
 -p,--platform <arg>                 Platform (when bundling)
 -pk,--private-key <arg>             Private key (Android)
 -r,--root <arg>                     Build root directory. Default is
                                     current directory
 -tp,--texture-profiles <arg>        Use texture profiles
 -u,--auth <arg>                     User auth token
 -v,--verbose                        Verbose output

Available commands:

clean

λΉŒλ“œ λ””λ ‰ν† λ¦¬μ—μ„œ λΉŒλ“œλœ νŒŒμΌλ“€μ„ μ‚­μ œν•©λ‹ˆλ‹€.

distclean

λΉŒλ“œ λ””λ ‰ν† λ¦¬μ—μ„œ λͺ¨λ“  νŒŒμΌλ“€μ„ μ‚­μ œν•©λ‹ˆλ‹€.

build

λͺ¨λ“  ν”„λ‘œμ νŠΈ 데이터λ₯Ό λΉŒλ“œν•©λ‹ˆλ‹€. "--archive" μ˜΅μ…˜μ„ μΆ”κ°€ν•΄μ„œ μ••μΆ• 파일(λΉŒλ“œ λ””λ ‰ν† λ¦¬μ˜ "game.darc")둜 λΉŒλ“œν•  수 μžˆμŠ΅λ‹ˆλ‹€.

bundle

νŠΉμ • ν”Œλž«νΌμ˜ μ–΄ν”Œλ¦¬μΌ€μ΄μ…˜ λ²ˆλ“€μ„ μƒμ„±ν•©λ‹ˆλ‹€. λ²ˆλ“€ μž‘μ—…μ„ ν•˜λ €λ©΄ λΉŒλ“œλœ μ••μΆ• 파일("build"μ—μ„œ "--archive" μ˜΅μ…˜μ„ μ‚¬μš©ν•΄μ„œ)이 μžˆμ–΄μ•Ό ν•˜λ©° νƒ€κ²Ÿ ν”Œλž«νΌμ„ μ§€μ •("--platform" μ˜΅μ…˜μ„ μ‚¬μš©ν•΄μ„œ)ν•΄μ•Ό ν•©λ‹ˆλ‹€. Bob은 "--bundle-output" μ˜΅μ…˜μ„ μ‚¬μš©ν•˜μ—¬ μ§€μ •λœ 좜λ ₯ λ””λ ‰ν† λ¦¬μ—μ„œ λ²ˆλ“€μ„ 생성할 수 μžˆμŠ΅λ‹ˆλ‹€. 이 λ²ˆλ“€μ€ "game.project"의 ν”„λ‘œμ νŠΈ 이름 섀정값에 따라 이름이 μ •ν•΄μ§‘λ‹ˆλ‹€.

resolve

λͺ¨λ“  μ™ΈλΆ€ 라이브러리 쒅속성을 μ²˜λ¦¬ν•©λ‹ˆλ‹€.

Available platforms:

x86-darwin

Mac OSX

x86_64-darwin

Mac OSX 64 bit

x86-win32

Windows

x86-linux

Linux

armv7-darwin

iOS

armv7-android

Android

js-web

HTML5

기본적으둜 Bob은 ν˜„μž¬ λ””λ ‰ν† λ¦¬μ—μ„œ λΉŒλ“œν•  ν”„λ‘œμ νŠΈλ₯Ό μ°ΎμŠ΅λ‹ˆλ‹€. λ§Œμ•½ ν˜„μž¬ 디렉토리λ₯Ό Defold ν”„λ‘œμ νŠΈλ‘œ λ³€κ²½ν•˜κ³  bob을 ν˜ΈμΆœν•˜λ©΄, κΈ°λ³Έ 좜λ ₯ 디렉토리인 "build/default" μ—μ„œ ν”„λ‘œμ νŠΈλ₯Ό λΉŒλ“œν•©λ‹ˆλ‹€.

$ cd /Applications/Defold-beta/branches/14/4/main
$ java -jar bob.jar
100%
$

ν•œλ°©μ— 일련의 μž‘μ—…λ“€μ„ μˆ˜ν–‰ν•˜λ €λ©΄ λͺ…령듀을 ν•¨κ»˜ λ‚˜μ—΄ν•˜λ©΄ λ©λ‹ˆλ‹€. μ•„λž˜ μ˜ˆμ œλŠ” 라이브러리 쒅속성을 μ²˜λ¦¬ν•˜κ³ , λΉŒλ“œ 디렉토리λ₯Ό μ§€μš°κ³ , λ²ˆλ“€κ³Ό 데이터λ₯Ό OSX용 μ–΄ν”Œλ¦¬μΌ€μ΄μ…˜(이름은 "My Game.app")으둜 λΉŒλ“œν•©λ‹ˆλ‹€.

$ java -jar bob.jar --archive --platform x86-darwin resolve distclean build bundle
100%
$ ls -al build/default/
total 70784
drwxr-xr-x   13 sicher  staff       442  1 Dec 10:15 .
drwxr-xr-x    3 sicher  staff       102  1 Dec 10:15 ..
drwxr-xr-x    3 sicher  staff       102  1 Dec 10:15 My Game.app
drwxr-xr-x    8 sicher  staff       272  1 Dec 10:15 builtins
-rw-r--r--    1 sicher  staff    140459  1 Dec 10:15 digest_cache
drwxr-xr-x    4 sicher  staff       136  1 Dec 10:15 fonts
-rw-r--r--    1 sicher  staff  35956340  1 Dec 10:15 game.darc
-rw-r--r--    1 sicher  staff       735  1 Dec 10:15 game.projectc
drwxr-xr-x  223 sicher  staff      7582  1 Dec 10:15 graphics
drwxr-xr-x    3 sicher  staff       102  1 Dec 10:15 input
drwxr-xr-x   20 sicher  staff       680  1 Dec 10:15 logic
drwxr-xr-x   27 sicher  staff       918  1 Dec 10:15 sound
-rw-r--r--    1 sicher  staff    131926  1 Dec 10:15 state
$
⚠️ **GitHub.com Fallback** ⚠️