Bitmap App은 게임 컨텐츠를 관리하기 위해 Bitmap App 시스템에 최적화된 desync 기반 bitmap-disttool을 사용합니다.
desync를 사용하면 게임 컨텐츠 중 변경된 부분만 새로 다운로드하므로, 게임을 업데이트할 때 게임 파일이 담긴 zip 아카이브를 다운로드하고, 압축을 푸는 기존 방식보다 네트워크 트래픽 사용이 최적화되는 이점이 있습니다.
Bitmap 배포 도구(이하 bitmap-disttool)은 게임 파일을 업로드하고 업데이트를 관리할 수 있는 명령줄 인터페이스 도구입니다.
bitmap-disttool GitHub Releases에서 업로드하는 PC의 운영체제와 아키텍처에 맞는 빌드를 다운로드하십시오.
bitmap_disttool_VERSION_darwin_arm64bitmap_disttool_VERSION_linux_amd64bitmap_disttool_VERSION_windows_amd64.exe또는 Homebrew에서 아래 명령어를 입력하여 설치할 수도 있습니다:
brew tap bmplatina/bitmap-app
brew trust bmplatina/bitmap-app
brew install bitmap-disttool
macOS에서 바이너리가 정상적으로 실행되지 않으면 Mac 환경이 Apple Silicon인지 확인하십시오.
$ uname -m
arm64
arm64가 출력되면 Apple Silicon 환경입니다. 또한, 실행 파일에 대한 권한이 충분하지 않거나 웹 브라우저에서 다운로드했을 경우 Operation not permitted 또는 Permission denied 오류가 발생할 수 있습니다. 이 경우 아래 명령어를 입력하십시오.
chmod +x <bitmap-disttool 위치>
xattr -c <bitmap-disttool 위치>
Windows에서는 winget을 비롯한 패키지 설치 도구를 지원하지 않으므로 bitmap-disttool을 다운로드한 후PATH 환경 변수에 등록하여야 어떤 경로에서든 bitmap-disttool으로 도구를 호출할 수 있습니다.
❯ bitmap-disttool
Bitmap Developer Distribution Tool
Usage:
bitmap-disttool [command]
Available Commands:
auth Authentication commands
help Help about any command
info Show information about an index
tar Chunk a directory tree and upload to the chunk server, producing a caidx index
untar Extract a directory tree from a catar archive or index
verify Read chunks in a store and verify their integrity
verify-index Verify an index matches a file
Flags:
--config string config file (default $HOME/.config/desync/config.json)
--digest string digest algorithm, sha512-256 or sha256 (default "sha512-256")
-h, --help help for bitmap-disttool
--verbose verbose mode
Use "bitmap-disttool [command] --help" for more information about a command.
bitmap-disttool은 Bitmap Developer가 활성화된 Bitmap ID로 로그인되어야 합니다. Bitmap ID 설정에서 Bitmap Developer가 활성화되었는지 확인하고 배포 도구에서 로그인하십시오.
$ bitmap-disttool auth login
Logging in via Bitmap ID
Email: <Bitmap ID 메일>
Password: ********
Login successful.
게임을 업로드할 때에는 bitmap-disttool tar 명령어를 사용하며 명령어 구조는 다음과 같습니다. 이미 배포한 게임을 업데이트할 때에도 동일한 명령어 세트를 사용합니다.
bitmap-disttool tar <변경점을 기록하는 caidx 파일> <게임의 루트 디렉터리>;
bitmap-disttool은 파일을 일정 크기로 쪼개어 변경된 부분만 갈아끼는 방식으로 동작합니다. 이 쪼개진 파일을 청크 (chunk)라 부릅니다. caidx 파일(이하 게임 버전 식별자)은 변경된 청크를 기록하는 파일로, 버전 컨트롤을 담당합니다. 따라서 게임 버전 식별자 파일은 반드시 제거하거나 유실하지 말고 Bitmap 웹사이트의 퍼블리셔 대시보드에 이 파일을 업로드하여야 합니다.