Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
dev:client_coding:building_the_desktop_app [2023/05/22 05:43] – [Helper Script] dstillmandev:client_coding:building_the_desktop_app [2024/01/24 01:45] (current) – [Build Steps] dstillman
Line 7: Line 7:
 //**Windows users:** The following commands assume a POSIX-compliant system. To build Zotero on Windows, please follow the [[building_the_desktop_app_windows_notes|Windows-specific steps]] first.// //**Windows users:** The following commands assume a POSIX-compliant system. To build Zotero on Windows, please follow the [[building_the_desktop_app_windows_notes|Windows-specific steps]] first.//
  
-  - Make sure you have Git and Git LFS installed.+  - Make sure you have Git and Git LFS installed. ''git lfs'' shouldn't show an error.
   - Clone the Zotero source code: <code sh>git clone --recursive https://github.com/zotero/zotero zotero-client</code>   - Clone the Zotero source code: <code sh>git clone --recursive https://github.com/zotero/zotero zotero-client</code>
   - Change to the source code repo: <code sh>cd zotero-client</code>   - Change to the source code repo: <code sh>cd zotero-client</code>
Line 18: Line 18:
 To build Zotero for another platform, first prepare Zotero's JavaScript source by running ''npm run build'' (or keep it prepared automatically as you make changes with ''npm start'') and then run ''app/scripts/dir_build'' with the ''-p'' flag for the desired platform (e.g., ''app/scripts/dir_build -p w'' for Windows). To build Zotero for another platform, first prepare Zotero's JavaScript source by running ''npm run build'' (or keep it prepared automatically as you make changes with ''npm start'') and then run ''app/scripts/dir_build'' with the ''-p'' flag for the desired platform (e.g., ''app/scripts/dir_build -p w'' for Windows).
  
 +If running ''npm run build'' manually, you may need to set the environment variable ''%%NODE_OPTIONS=--openssl-legacy-provider%%'' to avoid an ''ERR_OSSL_EVP_UNSUPPORTED'' error.
 ===== Running Your Custom Build ==== ===== Running Your Custom Build ====
  
Line 58: Line 59:
 Options: Options:
  
--r Rebuild (calling `npm run build` automatically if `npm start` isn't running) +  * ''-r''  Rebuild (calling `npm run build` automatically if `npm start` isn't running) 
- +  * ''-b''  Skip bundled styles and translators 
--b Skip bundled styles and translators +  * ''-d''  Start the devtools server for [[developer_tools|remote debugging]]
- +
--d Start the devtools server for [[developer_tools|remote debugging]]+
  
 ===== Running Zotero Plugins ===== ===== Running Zotero Plugins =====
dev/client_coding/building_the_desktop_app.1684748633.txt.gz · Last modified: 2023/05/22 05:43 by dstillman