Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
dev:building_the_standalone_client [2010/12/28 22:32] – created tomrochewiki | dev:building_the_standalone_client [2017/11/12 19:53] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | < | + | < |
- | <p> | + | in the process |
- | < | + | <a href=" |
- | (apologies for docuwiki' | + | may be outdated in the meantime. Thanks for your understanding.</p></ |
- | </em> | + | |
- | </p> | + | |
- | < | ||
- | < | + | See [[dev/client coding/Building the Standalone Client]]. |
- | < | + | |
- | + | ||
- | < | + | |
- | + | ||
- | < | + | |
- | + | ||
- | < | + | |
- | < | + | |
- | + | ||
- | < | + | |
- | + | ||
- | < | + | |
- | < | + | |
- | + | ||
- | < | + | |
- | < | + | |
- | + | ||
- | < | + | |
- | </ | + | |
- | + | ||
- | Fortunately one can get prerelease xulrunners from <a href=" | + | |
- | + | ||
- | < | + | |
- | + | ||
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | + | ||
- | < | + | |
- | + | ||
- | < | + | |
- | </ | + | |
- | + | ||
- | <p>I automated a build on 64-bit linux with the following bash scriptlet. (On my humble laptop, on wireless, wall-clock &# | + | |
- | + | ||
- | <a name=" | + | |
- | < | + | |
- | # edit following vars as desired for your build | + | |
- | DOWNLOAD_ROOT="/ | + | |
- | BUILD_ARCH=" | + | |
- | BUILD_ROOT=" | + | |
- | BUILD_DIR=" | + | |
- | BUILD_PATH=" | + | |
- | BUILD_SCRIPT=" | + | |
- | BUILD_SCRIPT_BAK=" | + | |
- | XULR_SOURCE_ROOT=" | + | |
- | XULR_TARGET_PATH=" | + | |
- | XULR_VERSION=" | + | |
- | XULR_CHECKSUMS_NAME=" | + | |
- | XULR_CHECKSUMS_SOURCE=" | + | |
- | XULR_CHECKSUMS_TARGET=" | + | |
- | XULR_ARCHIVE_NAME=" | + | |
- | XULR_ARCHIVE_SOURCE=" | + | |
- | XULR_ARCHIVE_TARGET=" | + | |
- | ZOTERO_SOURCE_ROOT=" | + | |
- | ZOTERO_TARGET_EXEC=" | + | |
- | + | ||
- | # setup xulrunner | + | |
- | # download xulrunner | + | |
- | mkdir -p ${DOWNLOAD_ROOT} | + | |
- | wget -O ${XULR_CHECKSUMS_TARGET} ${XULR_CHECKSUMS_SOURCE} | + | |
- | wget -O ${XULR_ARCHIVE_TARGET} ${XULR_ARCHIVE_SOURCE} | + | |
- | # verify xulrunner | + | |
- | pushd ${DOWNLOAD_ROOT} | + | |
- | # sha512sum -c < ${XULR_CHECKSUMS_TARGET} | + | |
- | # fails with | + | |
- | # > sha512sum: standard input: no properly formatted SHA512 checksum lines found | + | |
- | # I tried (offline) some other invocations, | + | |
- | # $ sha512sum -c < / | + | |
- | # sha512sum: standard input: no properly formatted SHA512 checksum lines found | + | |
- | # $ pushd ${DOWNLOAD_ROOT} | + | |
- | # $ sha512sum -c < ${XULR_CHECKSUMS_NAME} | + | |
- | # sha512sum: standard input: no properly formatted SHA512 checksum lines found | + | |
- | # $ sha512sum -c < xulrunner-2.0b9pre.en-US.linux-x86_64.checksums | + | |
- | # sha512sum: standard input: no properly formatted SHA512 checksum lines found | + | |
- | # $ sha512sum -c xulrunner-2.0b9pre.en-US.linux-x86_64.checksums | + | |
- | # sha512sum: xulrunner-2.0b9pre.en-US.linux-x86_64.checksums: | + | |
- | # unpack xulrunner | + | |
- | tar xjf ${XULR_ARCHIVE_NAME} | + | |
- | mkdir -p ${BUILD_PATH} | + | |
- | # ASSERT: archives expand to ./ | + | |
- | mv ./xulrunner ${XULR_TARGET_PATH} | + | |
- | popd | + | |
- | + | ||
- | # setup sources, including script | + | |
- | # checkout sources | + | |
- | pushd ${BUILD_ROOT} | + | |
- | svn co ${ZOTERO_SOURCE_ROOT} ${BUILD_DIR} | + | |
- | popd | + | |
- | pushd ${BUILD_PATH} | + | |
- | # backup unhacked build script | + | |
- | cp ${BUILD_SCRIPT} ${BUILD_SCRIPT_BAK} | + | |
- | chmod 444 ${BUILD_SCRIPT_BAK} | + | |
- | # hack build script to build only linux | + | |
- | chmod 755 ${BUILD_SCRIPT} | + | |
- | sed -si ' | + | |
- | sed -si ' | + | |
- | sed -si ' | + | |
- | diff -u ${BUILD_SCRIPT_BAK} ${BUILD_SCRIPT} | + | |
- | + | ||
- | # CHECK: you should see stdout like | + | |
- | # --- build_sa.0 | + | |
- | # +++ build_sa | + | |
- | # @@ -1,7 +1,7 @@ | + | |
- | # # | + | |
- | # -BUILD_MAC=1 | + | |
- | # +BUILD_MAC=0 | + | |
- | # BUILD_WIN32=0 | + | |
- | # -BUILD_LINUX=0 | + | |
- | # +BUILD_LINUX=1 | + | |
- | + | ||
- | # build | + | |
- | BUILD_START=" | + | |
- | ./ | + | |
- | echo -e " | + | |
- | echo -e "build start=${BUILD_START}" | + | |
- | + | ||
- | # run the built sa | + | |
- | ${ZOTERO_TARGET_EXEC} & | + | |
- | echo -e " | + | |
- | echo -e " | + | |
- | </ | + | |
- | + | ||
- | <p> | + | |
- | The (penultimate) build step produced the output | + | |
- | </ | + | |
- | + | ||
- | < | + | |
- | Got Zotero r7528 | + | |
- | Building | + | |
- | Building styles.zip | + | |
- | Retrieving Zotero OpenOffice.org Integration | + | |
- | Building Zotero_linux-i686 | + | |
- | # several errors here, as I did not have the xulrunner for this arch | + | |
- | Building Zotero_linux-x86_64 | + | |
- | </ | + | |
- | + | ||
- | <p> | + | |
- | The run step puts up a zotero window similar to that normally seen in Firefox. When initially run separately from the terminal, it produced the output | + | |
- | </ | + | |
- | + | ||
- | < | + | |
- | ERROR: There is no such extension deployed: org.Zotero.integration.openoffice | + | |
- | unopkg failed. | + | |
- | </ | + | |
- | + | ||
- | <p> | + | |
- | but I have not observed that subsequently. | + | |
- | </ | + | |
- | + | ||
- | <p> | + | |
- | Unfortunately I don't currently know how to test the built sa (much less <a href=" | + | |
- | + | ||
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | </ | + | |
- | + | ||
- | <p>a browser launches and and opens the <a href=" | + | |
- | + | ||
- | < | + | |
- | < | + | |
- | + | ||
- | < | + | |
- | + | ||
- | </ | + | |
- | </ | + |