Commit graph

44 commits

Author SHA1 Message Date
Dan Stillman
d879c507a5 Enable auto-scroll by default on Linux
Some checks are pending
CI / Build, Upload, Test (push) Waiting to run
Fixes #4537
2024-08-13 00:06:34 -04:00
Dan Stillman
b8b4bebfc5 Windows installer: Improve architecture detection
Show an appropriate error if the ARM64 installer is run on non-ARM
Windows or if the x64 installer is run on a 32-bit system, and set the
correct architecture in `CurrentVersion\Uninstall` registry key.

Also fix `x86`/`x64` being swapped in the registry
(https://groups.google.com/g/zotero-dev/c/1Aju4t2TNTo/m/Ga4V8vLrAQAJ)
2024-08-10 04:26:58 -04:00
Dan Stillman
6e155de3e1 Windows installer: Change HAVE_64BIT_OS to HAVE_64BIT_BUILD
https://bugzilla.mozilla.org/show_bug.cgi?id=598615
2024-08-10 02:14:40 -04:00
Dan Stillman
1d5971c48f Windows: Change Zotero version in "Add or remove programs" after update
Fixes #4454
2024-07-30 02:20:04 -04:00
Dan Stillman
352647a068 Fix path to removed-files on Linux
Follow-up to ef2cceba7
2024-07-25 06:29:27 +00:00
Dan Stillman
0f777efbf6 Don't bundle Safari extension test files 2024-07-25 02:13:22 -04:00
Dan Stillman
4bd46821de Stop using deprecated argument syntax for macOS codesign 2024-07-25 02:13:22 -04:00
Dan Stillman
ef2cceba7e Fix deleted files not getting removed after complete updates
Mozilla uses a `precomplete` file to delete local files when doing a
complete update, but since Zotero 5 in 2017 we've just been bundling an
empty file, which has meant that deleted or moved files have been left
behind. Among other things, this has likely been the primary cause of
Safari App Extension post-update brokenness for many years.

Incremental updates weren't affected, since those include explicit
removal instructions for moving from the given build to the latest one.

This restores proper generation of the `precomplete` file during builds,
using the Mozilla script added in 74ec6620e.

Separately, we'll update the `removed-file` for each platform to remove
files that should've been removed during previous updates.

Fixes #3133
2024-07-25 02:13:22 -04:00
Dan Stillman
934a74fba4 Use -jsdebugger for build_and_run, and don't bind devtools on port 6100
Since -jsdebugger apparently works fine, there's no reason to connect to
Zotero from Firefox anymore. So just open the Browser Toolbox when
passing the -d flag to build_and_run, and stop having the devtools
server listen on port 6100 for devtools-enabled builds, since
-jsdebugger uses a random port of its own.
2024-07-20 02:20:03 -04:00
Dan Stillman
34eb8205d1 Fix -jsdebugger flag on Linux
https://groups.google.com/g/zotero-dev/c/h4_UZDml-10/m/DjQCcl6PAAAJ
2024-07-20 02:16:32 -04:00
Dan Stillman
044e228a49 Omit additional files from Windows Firefox builds 2024-05-28 06:44:22 +01:00
Dan Stillman
7056513b77 Finish Windows ARM support
And rename to "ARM64"

Closes #3112
2024-05-28 06:44:21 +01:00
Dan Stillman
81edd1ee1c Don't show "Firefox Software Updater" on Windows
And fix other .exe metadata

Fixes #3571
2024-05-28 06:44:20 +01:00
Dan Stillman
dfaa0ce129
Use custom XUL binary on macOS (#4010)
Backports the following Mozilla fixes:

https://bugzilla.mozilla.org/show_bug.cgi?id=1858409
(AutoFill/Services menus; fixes #3927)

https://bugzilla.mozilla.org/show_bug.cgi?id=1884631
(sheets → dialogs; fixes #3936)

https://bugzilla.mozilla.org/show_bug.cgi?id=148624
(ghost tooltips, because why not)
2024-04-19 07:04:42 -04:00
Dan Stillman
d21fc40115 Update Mozilla strings for fx115
(Or technically 125, but I don't think any strings we need were
removed)

This fixes the Edit and Window menu (except for some macOS Window
strings that seem to come from the system) in non-English locales.
2024-04-10 07:33:40 -04:00
Dan Stillman
db19e52547 Use user-provided codesign script for Windows signing
The `app/win/codesign` script should take a path to a file and a
description (`/d` parameter to `signtool.exe`) and sign the file using
whatever process the certificate authority requires.
2024-04-08 10:12:58 +01:00
Dan Stillman
13754fe32c Stop copying vcruntime140_1.dll in x64 build
Now bundled with Firefox in 115
2024-04-06 16:16:05 -04:00
Dan Stillman
bcf8d72b0b Add Windows ARM build (#3112)
Unimplemented:

- ARM-native installer/uninstaller

Untested:

- Installer/uninstaller/updater
- Word integration DLL

Also updates the launcher and updater to 115.9.0esr for x64. win32 stays
on 115.4.0esr for the launcher and 102.11.0esr for the updater because I
can no longer build it.
2024-04-06 04:54:07 -04:00
Dan Stillman
2ec6c7c72e Ignore Firefox components folder during build
After the removal of zotero-service.js for fx115, we no longer have a
`components` folder, so we don't need to shuffle things around to merge
our folder with the one from Firefox.

This fixes a build failure we were getting in CI after #3894.
2024-03-30 01:02:08 -04:00
Adomas Venčkauskas
a92358bdd1 Fix fluent string breakage (regression 7276b8c50d). Closes #3894 2024-03-30 01:01:43 -04:00
Adomas Venčkauskas
7276b8c50d fx115: Readd support for -file, -url and winword command line handlers 2024-03-30 00:58:58 -04:00
Dan Stillman
13ab3bd87f fx115: Add command-line handling to Firefox command-line handler
XPCOM objects have to be statically registered now, so instead of
creating our own command-line handler, just stuff our code into the
Firefox one.

A few parameters require the Zotero object, which isn't available in the
Firefox CLH, so I've left those in zotero-service.js for now until we
decide how to deal with those.
2024-03-30 00:58:53 -04:00
Sebastian Fleer
a33603d496
build.sh: copy additional Linux icons (#3628) 2024-02-02 03:21:19 -05:00
Dan Stillman
1d8baa635a New app icons 2024-01-24 23:32:22 -05:00
Abe Jellinek
8d825f641a
Fix segfault when hyphenating text in main process (#3388) 2023-09-14 02:48:50 -04:00
Dan Stillman
7c25ab536f Skip 32-bit Linux build if SKIP_32 env variable is set 2023-07-06 18:46:38 -04:00
Adomas Venčkauskas
49eda8861e Improve build scripts to work in pathnames with spaces 2023-07-05 15:01:41 +03:00
Dan Stillman
00651d670d Switch to notarytool for Mac build notarization 2023-06-19 06:39:39 -04:00
Dan Stillman
d14d281e7c Avoid warning about null bytes when checking for Git LFS checkouts 2023-05-26 02:08:17 +00:00
Dan Stillman
feb12fafe8 Add Git LFS checkout checks to app build script
For people with existing repos who haven't re-run check_requirements
2023-05-25 03:24:18 -04:00
Dan Stillman
30f6cd44d8 Use correct WinWord DLL for 64-bit Windows
And omit 64-bit DLL from 32-bit build
2023-05-20 12:46:32 +01:00
Dan Stillman
90d5e1e551 Update Linux updater for Zotero 7 2023-05-20 10:51:47 +00:00
Dan Stillman
cc65ca032e Update Windows updater for Zotero 7 2023-05-18 04:58:35 +01:00
Dan Stillman
6261640a92 Update Mac updater for Zotero 7
We were previously using an old version of the Mozilla updater before they
added Mozilla signature verification, but it's Intel-only, so we need to build
our own version of the current updater with signature verification disabled.
2023-05-17 04:35:40 -04:00
Dan Stillman
19265d4e98 Don't notarize 'test' channel builds on macOS 2023-05-17 04:35:40 -04:00
Dan Stillman
3d7ce028e9 Change win64 to win-x64 in app build scripts 2023-05-11 05:17:52 +01:00
abaevbog
fa28228acb
Automatically run fetch_xulrunner if xulrunner is missing or out of date (#3111) 2023-05-09 05:41:27 -04:00
Dan Stillman
e6776fd922 Skip 32-bit Linux build in CI or tests 2023-04-30 06:10:14 -04:00
Dan Stillman
9a5275b92a Stop bundling the PDF tools 2023-04-29 07:14:51 -04:00
Dan Stillman
b6b6bbc3ee Load integration manifest files only on correct platform 2023-04-27 01:05:02 -04:00
Dan Stillman
a34a11b200 Remove a couple mozilla.org update URLs
Fixes #3097
2023-04-27 01:04:55 -04:00
Dan Stillman
3693674fc9 Fix Fluent localization for non-English locales
All declared Fluent files need to exist for a locale to be used (in a
window?). Since Mozilla code tries to load Fluent files, we need to copy
non-English Mozilla .ftl files to their default effective path (just in
the app omni.ja instead of the toolkit omni.ja).

Fixes #3094
2023-04-26 04:40:22 -04:00
Dan Stillman
c55ef8714b Update app build scripts for new combined repo
Also:

- Replace `install.rdf` with `version` file
- Remove lots of obsolete logic in `prepare_build` (formerly
  `build_xpi`)
2023-04-26 04:40:22 -04:00
Dan Stillman
a3d7b58b83 Add zotero-standalone-build repo as app folder
Minus obsolete 4.0 files
2023-04-26 04:40:22 -04:00