소스 코드
소스 코드 가져오기
애드블록 플러스 소스 코드는 HG 웹 인터페이스를 통해 볼 수 있습니다. 소스를 로컬 컴퓨터로 복사해 가져오려면 다음 명령 줄을 실행하십시오.
hg clone https://hg.adblockplus.org/adblockplus/
유사하게 Element Hiding Helper와 Diagnostics for Adblock Plus에 대한 저장소도 제공합니다. 특정 출시 상태에 대한 로컬 컴퓨터로의 복사를 초기화하려면 다음 명령을 실행하십시오.
hg up -r 1.0.1
(필요한 버전의 태그로 1.0.1를 대체하십시오).
그렇지 않으면 최신 출시 버전의 소스 코드를 다운로드할 수도 있습니다.
개요를 보려면 소스 코드 문서를 보십시오.
HG 클라이언트와 관련 문서
애드블록 플러스의 빌드 생성하기
개발 빌드를 만드려면 "adblockplus" (저장소의 로컬 컴퓨터로 복사)의 디렉터리로 이동하고, 다음 명령을 실행하십시오.
python build.py build
The script will create a development build with a name in the form adblockplus-1.2.3.4+.nnnn.xpi. This file will contain the source code currently in the repository and all available locales.
참고 : You need Python 2.x with Jinja2 module to create builds. To install Jinja2 in Python run this command:
easy_install Jinja2
Testing your changes
To simplify the process of testing your changes you can install Extension Auto-Installer 로 이동함으로써 유니트 테스트를 실행할 수 있습니다. Assuming that Extension Auto-Installer is configured to use port 8888 (the default value), you can push your changes to this browser by running:
python build.py autoinstall 8888
The browser will be restarted automatically if necessary.