Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
dev:client_coding:building_the_standalone_client [2018/04/27 00:14]
rmzelle Update CSL style MIME type
dev:client_coding:building_the_standalone_client [2019/08/15 07:15] (current)
dstillman Add Mac packaging instructions
Line 44: Line 44:
 ==== Command-line Flags ==== ==== Command-line Flags ====
  
-You'll need to rebuild the client each time you make code changes by running ''​npm run build''​ in ''​zotero-client''​ followed by ''​scripts/​dir_build''​ in ''​zotero-standalone-build''​. ​For rapid iterationwe recommend combining these commands into a separate script. (We plan to optimize this process in the future.)+You'll need to rebuild the client each time you make code changes by running ''​npm run build''​ in ''​zotero-client''​ followed by ''​scripts/​dir_build''​ in ''​zotero-standalone-build''​. ​In most casesyou'll want to use the helper script below.
  
 You can pass ''​-ZoteroDebugText''​ or ''​-ZoteroDebug''​ to the executable for real-time debug output, and ''​-jsconsole''​ to open the Error Console. If you're working on something that doesn'​t require styles or translators,​ the ''​-ZoteroSkipBundledFiles''​ flag can speed up startup time after rebuilding. You can pass ''​-ZoteroDebugText''​ or ''​-ZoteroDebug''​ to the executable for real-time debug output, and ''​-jsconsole''​ to open the Error Console. If you're working on something that doesn'​t require styles or translators,​ the ''​-ZoteroSkipBundledFiles''​ flag can speed up startup time after rebuilding.
Line 65: Line 65:
  
 Zotero can run Firefox extensions as plugins. You can run Firefox extensions from source code in Zotero the same way you could in Firefox. Create an ''​extensions''​ directory in the [[kb:​profile_directory|Zotero profile directory]] and create a file named after the id in the extension'​s install.rdf (e.g. ''​zotplugin@example.com''​) containing the path to the extension source code. The extension will then be automatically installed when you start Zotero. Zotero can run Firefox extensions as plugins. You can run Firefox extensions from source code in Zotero the same way you could in Firefox. Create an ''​extensions''​ directory in the [[kb:​profile_directory|Zotero profile directory]] and create a file named after the id in the extension'​s install.rdf (e.g. ''​zotplugin@example.com''​) containing the path to the extension source code. The extension will then be automatically installed when you start Zotero.
-===== Packaging ​on Windows ​=====+===== Packaging ===== 
 + 
 +==== Mac ==== 
 + 
 +  * In Keychain Access, create ''​build''​ keychain with password 
 +  * Import Developer ID certificate,​ public key, and private key 
 +  * Create a ''​config-custom.sh''​ file: <code sh> 
 +SIGN=1 
 +KEYCHAIN=build 
 +KEYCHAIN_PASSWORD=<​password>​ 
 +BUILD_PLATFORMS=m 
 + 
 +alias mktemp='​mktemp -t tmp' 
 +shopt -s expand_aliases 
 +</​code>​ 
 + 
 +==== Windows ​====
  
 ==== Prerequisites ==  ==== Prerequisites == 
dev/client_coding/building_the_standalone_client.1524802499.txt.gz · Last modified: 2018/04/27 00:14 by rmzelle