====== Building the Zotero Desktop App ======
**Note:** If you don't plan to make any code changes yourself, and only wish to run the latest prerelease versions of Zotero, you can just install a [[/support/beta_builds|beta build]].
===== Build Steps ====
//**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. ''git lfs'' shouldn't show an error.
- Clone the Zotero source code: git clone --recursive https://github.com/zotero/zotero zotero-client
- Change to the source code repo: cd zotero-client
- Check your system for the necessary tools and install any that are missing: app/scripts/check_requirements
This script checks all requirements for the official Zotero distribution system. If you're only creating a custom build, you only need the build requirements listed at the top, not the distribution requirements.
- Install Node.js modules using Node 18 or later: npm i
- Build and run Zotero: app/scripts/build_and_run -r
The build will be placed in the ''app/staging/'' folder in unpackaged form.
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 ====
After you've built the client, you can continue to run it from ''app/staging/'' or move the app directory to a location of your choosing and start it normally.
For development, you'll generally want to leave the app in the staging directory and use the ''build_and_run'' [[#helper_script|helper script]], but you can also call the launcher directly:
=== Mac ===
''app/staging/Zotero.app/Contents/MacOS/zotero''
=== Linux ===
''app/staging/Zotero_linux-x86_64/zotero''
=== Windows ===
''app/staging/Zotero_win-x64/zotero.exe''
==== Command-line Flags ====
In most cases, you'll want to use the [[#helper_script|helper script]] below instead of passing these flags directly to the launcher, but it's helpful to know the available options, which also work with release and beta builds:
* ''-ZoteroDebugText'' or ''-ZoteroDebug'' enable [[:debug_output#logging_to_a_terminal_window|real-time debug output]] from ''Zotero.debug()''
* ''-jsconsole'' will open the Error Console (Tools → Developer → Error Console)
* ''-jsdebugger'' starts the Firefox Browser Toolbox for [[developer_tools|debugging]], if Zotero was built with devtools enabled; not available in release builds
* ''-ZoteroSkipBundledFiles'' skips style and translator initialization, which speeds up startup time after rebuilding if you're working on something that doesn't require styles or translators
==== Helper Script ====
For local development, you'll want to use the [[https://raw.githubusercontent.com/zotero/zotero/master/app/scripts/build_and_run|build_and_run]] helper script, which automates rebuilding Zotero and starting it with debug output enabled and the error console open. Create an alias for ''app/scripts/build_and_run'' with an appropriate name (e.g., ''zotero-source''), or create a shell script in your path that selects a preexisting development [[:kb/multiple_profiles|profile]] and forwards command-line parameters:
#!/bin/bash -e
export ZOTERO_PROFILE="Dev"
~/zotero-client/app/scripts/build_and_run "$@"
You can then run, e.g., ''zotero-source -r'' to rebuild Zotero with your changes and start it up.
Options:
* ''-r'' Rebuild (calling `npm run build` automatically if `npm start` isn't running)
* ''-d'' Include Firefox Developer Tools in a rebuild and open the Browser Toolbox
* ''-b'' Skip bundled styles and translators —?avoids extra work at startup if not needed
===== Running Zotero Plugins =====
See [[plugin_development#setting_up_a_plugin_development_environment|Setting Up a Plugin Development Environment]].
===== Packaging =====
==== Mac ====
* In Keychain Access, create ''build'' keychain with password
* Import Developer ID certificate, public key, and private key
* Set up app-specific password for Apple developer account
* Create a ''config-custom.sh'' file in ''app/'':
SIGN=1
KEYCHAIN=build
KEYCHAIN_PASSWORD=
==== Windows ====
* Verify that git is set to check out files without modifying line endings.
$ git config --global core.autocrlf
The response should be either empty (meaning ''false'') or ''input''. If set to ''true'' (as it may be if you selected the default option while installing the Windows version of git), change this with the following command:
git config --global core.autocrlf false
See the [[http://git-scm.com/docs/git-config|git manual]] for details on this setting.
* [[https://nsis.sourceforge.io/Download|Install NSIS 3]] and install the necessary plugins by running ''app/win/download-nsis-plugins''.
* The [[https://developer.microsoft.com/en-US/windows/downloads/windows-sdk/|Windows SDK]] is needed for the included ''signtool.exe'' utility. You can uncheck all other installation options. Adjust the path in ''app/config.sh'' to point to the correct version of the Windows SDK.
===== Installation and Packaging Notes =====
**Note:** These instructions are not applicable on macOS, which handles protocol handler and MIME type registration through the bundled Info.plist file. Additionally, they are only applicable on Windows if for some reason you want to run Zotero without running the installer.
=== Protocol handler registration ===
Zotero should be registered as the system's default protocol handler for the ''zotero:%%//%%'' protocol.
=== File extensions and MIME types ===
Zotero should be registered as a handler for the following file extensions and MIME types:
^ File type description ^ File extension(s) ^ MIME type(s) ^
| Research Information Systems Document | ris | application/x-research-info-systems\\ application/x-endnote-refer\\ text/x-research-info-systems\\ text/application/x-research-info-systems \\ text/ris\\ ris |
| ISI Common Export Format Document | ciw, isi | application/x-inst-for-Scientific-info |
| Metadata Object Description Schema Document | mods | application/mods+xml |
| Resource Description Framework Document | rdf | application/rdf+xml |
| BibTeX Document | bib, bibtex | application/x-bibtex\\ text/x-bibtex |
| MARC Record | mrc, marc | application/marc |
| CSL Citation Style | csl | vnd.citationstyles.style+xml |
===== Distribution =====
Distribution steps are beyond the scope of this page, but see ''app/scripts/build_and_deploy'' for an example of the necessary steps.Among the most interesting of Plutarch’s religious writings is one entitled On the Delays in the Divine Vengeance. As might be expected from the name, it deals with a problem closely akin to that which ages before had been made the subject of such sublime imagery and such inconclusive reasoning by the author of the Book of Job. What troubled the Hebrew poet was the apparently undeserved suffering of the just. What the Greek moralist feels himself called on to explain is the apparent prosperity and impunity of the wicked. He will not for a moment admit that crime remains unavengeful; his object is to show why the retribution does not follow directly on the deed. And, in order to account for this, he adduces a number of very ingenious reasons. By acting deliberately rather than in blind anger, the gods wish to read us a useful lesson in patience and forbearance. Sometimes their object is to give the sinner an opportunity for repentance and amendment; or else they may be holding him in reserve for the performance of some beneficial work. At other times, their justice is delayed only that it may be manifested by some signal and striking form of retribution. In many cases, the final stroke has been preceded by long years of secret torment; and even where no suffering seems to be inflicted, the pangs of remorse may furnish a sufficient expiation. Or again, vengeance may be reserved for a future generation. Some persons hold that to267 visit the sins of the fathers on the children is unjust, but in this they are profoundly mistaken. Members of the same family and citizens of the same state are connected as parts of one organic whole; sharing in the benefits which accrue from the good deeds of their predecessors, it is right that they should also share in the responsibility for their crimes. Moreover, the posterity of the wicked inherit a sinful disposition which, as the gods can clearly foresee, would betray itself in overt acts were they not cut off in their youth. And it is equally an error to suppose that the original wrongdoers remain unaffected by the retribution which befalls their descendants. On the contrary, they witness it from the next world, where it adds poignancy to their remorse, and entails on them fresh penalties over and above those which they have already been doomed to suffer. This preference of pure abstract speculation to beneficent290 action may be traced to the influence of Aristotle. Some of the most enthusiastic expressions used by Plotinus in speaking of his supreme principle seem to have been suggested by the Metaphysics and the last book of the Nicomachean Ethics. The self-thinking thought of the Stagirite does not, indeed, take the highest rank with him. But it is retained in his system, and is only relegated to a secondary place because, for reasons which we shall explain hereafter, it does not fulfil equally well with Plato’s Idea of Good, the condition of absolute and indivisible unity, without which a first principle could not be conceived by any Greek philosopher. But this apparent return to the standpoint of the Republic really involves a still wider departure from its animating spirit. In other words, Plotinus differs from Aristotle as Aristotle himself had differed from Plato; he shares the same speculative tendency, and carries it to a greater extreme. "Yes?" she answered, and stroked the head of the fawn. She dropped beside him and tried to hold him down. "He did not know I was coming here," she pleaded. "It was a mistake, Jack! Will you wait until I tell you? Will you wait?" She was clinging around his neck and would not be shaken off. He dragged her in the dust, trying to get free himself. Feeling entirely at ease, he climbed into the car, with a copy of the Cincinnati Gazette, which he had bought of a newsboy, lighted his pipe, put on his spectacles, and settled down to a labored, but thorough perusal of the paper, beginning at the head-lines on the upper left-hand corner, and taking in every word, advertisements and all, as systematically as he would weed a garden-bed or milk a cow. The Deacon never did anything slip-shod, especially when he had to pay 10 cents for a copy of the Cincinnati Gazette. He was going to get his full money's worth, and if it was not in the news and editorials, he would take it out of the advertisements and patent medicine testimonials. He was just going through a convincing testimonial to the manifold virtues of Spalding's Prepared Glue, when there was a bump, the sound of coupling, and his car began to move off. Little Sammy Woggles came out presently to get some wood. Shorty called him to him. There was something fascinatingly mysterious in his tones and actions to that youth, who devoured dime novels on the sly. "GREAT Jehosephat, how hungry I am," suddenly ejaculated Shorty, stopping his cheering, as the thunder of the guns died away into an occasional shot after the rebels galloping back to the distant woods on the ridge from which they had emerged. "It isn't funny, Albin," Dodd said woodenly. "It isn't a game." "Who fill their pockets at Scott's Float, "No—I d?an't say it. I did write 'em. But it's all your fault that I did—so you've no right to miscall me." Alice Jury said nothing, and Reuben began to feel vaguely uncomfortable. What queer eyes she had!—they seemed to bore into him like nails. He suddenly rose to his feet. "Where's master?" "Now, lads, to your homes," cried Turner, as they hurried on, "every man of ye. Go by different roads, and you will not be suspected. There is not a man they can swear to but myself. Now, brave hearts, farewell! We may not meet together again: but all the harm I wish ye is, that Calverley and I may soon meet; and if ever he plagues free man or bond among ye after that, say Wat Turner is a coward—Away! Tom Merritt," said he, drawing the mason aside, "do you think of leaving Winchcombe?—you know there are always busy tongues." HoME美女护士性交不雅照
ENTER NUMBET 0017
nbwzzg.com.cn
www.gelao5.com.cn
www.xhestore.com.cn
trip7.com.cn
www.safevr.com.cn
www.tete1.net.cn
mibai5.net.cn
renfa1.net.cn
regen8.net.cn
www.ad-sonic.com.cn