Bob the builder - kuimoani/defold GitHub Wiki
Bobμ μλν° μΈλΆμμ Defold νλ‘μ νΈλ₯Ό λΉλνκΈ° μν λꡬμ λλ€. μ΄ λ©λ΄μΌμ μ΄ λꡬλ₯Ό μ¬μ©νλ λ°©λ²μ λν΄ μ€λͺ ν©λλ€.
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 μμ λ€μ΄λ‘λ ν μ μμ΅λλ€.
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
λΉλ λλ ν 리μμ λΉλλ νμΌλ€μ μμ ν©λλ€.
λΉλ λλ ν 리μμ λͺ¨λ νμΌλ€μ μμ ν©λλ€.
λͺ¨λ νλ‘μ νΈ λ°μ΄ν°λ₯Ό λΉλν©λλ€. "--archive" μ΅μ μ μΆκ°ν΄μ μμΆ νμΌ(λΉλ λλ ν 리μ "game.darc")λ‘ λΉλν μ μμ΅λλ€.
νΉμ νλ«νΌμ μ΄ν리μΌμ΄μ λ²λ€μ μμ±ν©λλ€. λ²λ€ μμ μ νλ €λ©΄ λΉλλ μμΆ νμΌ("build"μμ "--archive" μ΅μ μ μ¬μ©ν΄μ)μ΄ μμ΄μΌ νλ©° νκ² νλ«νΌμ μ§μ ("--platform" μ΅μ μ μ¬μ©ν΄μ)ν΄μΌ ν©λλ€. Bobμ "--bundle-output" μ΅μ μ μ¬μ©νμ¬ μ§μ λ μΆλ ₯ λλ ν 리μμ λ²λ€μ μμ±ν μ μμ΅λλ€. μ΄ λ²λ€μ "game.project"μ νλ‘μ νΈ μ΄λ¦ μ€μ κ°μ λ°λΌ μ΄λ¦μ΄ μ ν΄μ§λλ€.
λͺ¨λ μΈλΆ λΌμ΄λΈλ¬λ¦¬ μ’ μμ±μ μ²λ¦¬ν©λλ€.
Mac OSX
Mac OSX 64 bit
Windows
Linux
iOS
Android
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
$