Dan Scott [Sun, 5 Jan 2020 16:59:36 +0000 (11:59 -0500)]
LP1858344 Make curl follow redirects to retrieve lib/json-20160810.jar
Maven redirects some requests to other servers, but unless curl is told
to follow redirects using the -L/--location flag, it will simply
download the HTML response for the HTTP 301 "Moved permanently" message,
breaking the ability to compile Hatch.
This commit adds the "-L" flag to the curl request for
lib/json-20160810.jar, resolving the issue.
Signed-off-by: Dan Scott <dan@coffeecode.net> Signed-off-by: Bill Erickson <berickxx@gmail.com>
Bill Erickson [Fri, 12 Apr 2019 19:23:38 +0000 (15:23 -0400)]
LP1824391 Hatch set (file write) 'bare' option
Adds a "bare" option to the hatch "set" command indicating to Hatch the
string content should be written as-is instead of encoded as JSON first.
This essentially gives Hatch a text/plain print-to-file option.
Signed-off-by: Bill Erickson <berickxx@gmail.com> Signed-off-by: Jason Boyer <JBoyer@equinoxinitiative.org>
Kyle Huckins [Thu, 2 May 2019 21:11:09 +0000 (21:11 +0000)]
lp1825891 Hatch Windows Installer ProgramData logs
- Create ProgramData/Hatch dir and associated registry key upon installation
- Remove ProgramData/Hatch dir upon uninstallation
- Set hatch.properties and logging.properties data directory and logging path
to ProgramData/Hatch(/hatch.log)
Signed-off-by: Kyle Huckins <khuckins@catalyte.io> Signed-off-by: Bill Erickson <berickxx@gmail.com>
Changes to be committed:
modified: installer/windows/hatch.nsi
Signed-off-by: Jason Boyer <JBoyer@equinoxinitiative.org>
Bill Erickson [Wed, 24 Apr 2019 23:05:20 +0000 (19:05 -0400)]
LP1825896 Migrate values to new data directory
When the currently selected data (AKA profile) directory differs from
the default, migrate data from the default directory to the newly
configured directory.
This migration only occurs on the first instance of using the new
directory, specifically when Hatch determines the new directory does not
yet exist.
Signed-off-by: Bill Erickson <berickxx@gmail.com> Signed-off-by: Jason Boyer <JBoyer@equinoxinitiative.org>
Bill Erickson [Thu, 4 Apr 2019 21:19:13 +0000 (17:19 -0400)]
LP1817932 Improvements window Linux-base Windows building
Update build docs to assume Widnows builds are created on Linux. The
Windows instructions could be recovered, but not until there is a way to
fetch dependenies or the process is fully documented. For now, it's
Linux only.
Separte the extracted Windows and Linux Java dependencies so they can
live alongside each other.
Signed-off-by: Bill Erickson <berickxx@gmail.com> Signed-off-by: Jason Boyer <JBoyer@equinoxinitiative.org>
Adds a new fetch-deps.sh script for fetching and unpacking Windows
and Linux dependencies. It fetches OpenJDK 11, OpenJFX 11, and the JSON
library (which was previously fetched only for linux in hatch.sh).
Updates hatch.sh and hatch.bat to reference these new dependencies.
Signed-off-by: Bill Erickson <berickxx@gmail.com> Signed-off-by: Jason Boyer <JBoyer@equinoxinitiative.org>
Jason Boyer [Wed, 9 May 2018 00:55:51 +0000 (20:55 -0400)]
LP1731922: Add Firefox support to Hatch
Firefox has an unnecessarily picky manifest parser
so it requires a separate manifest, and there was
also an issue with the batch file and quoting
command line parameters that was causing silent
failures.
The installer has also been updated to put the
necessary NativeMessagingHosts key in place but
FF doesn't offer the same kind of auto-install
abilities that Chrome does.
Signed-off-by: Jason Boyer <JBoyer@library.in.gov> Signed-off-by: Bill Erickson <berickxx@gmail.com>
Chris Sharp [Mon, 29 Jan 2018 14:17:25 +0000 (09:17 -0500)]
LP#1743604 - Not all Java binaries like "--dry-run" so use "-version"
When doing the "are you there?" test in hatch.bat, my Windows 7 32-bit
VM's installed version of Java (1.8.0_161)did not recognize "--dry-run"
as a valid option. Changing the test to a simple "java -version" works.
Signed-off-by: Chris Sharp <csharp@georgialibraries.org> Signed-off-by: Jason Boyer <JBoyer@library.in.gov> Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Jason Boyer [Fri, 26 Jan 2018 04:20:17 +0000 (23:20 -0500)]
LP1743604: Try to find Java automatically
Starting sometime in the 1.8 timeframe Java
installations on Windows are making use of unix-
style symlinks available in NTFS to keep the
most reecnt version installed available at a
known location. We may as well look there if
the path isn't set correctly for some reason.
Signed-off-by: Jason Boyer <JBoyer@library.in.gov> Signed-off-by: Chris Sharp <csharp@georgialibraries.org> Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Jason Boyer [Sun, 7 Jan 2018 03:21:09 +0000 (22:21 -0500)]
LP1741309: Correct installed file permission
Because of the machinations of the _ReplaceInFile macro
the extension host JSON file does not inherit permissions
correctly. Adding the AccessControl NSIS plugin and using
the EnableFileInheritance function corrects this.
Signed-off-by: Jason Boyer <JBoyer@library.in.gov> Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
Jason Boyer [Sun, 26 Nov 2017 18:14:46 +0000 (13:14 -0500)]
LP1733692: Improve Hatch Un/Installer
Will find 23 or 64 bit JRE/JDK and install registry keys where
all user accounts can access them, as well as install the Chrome
Web Store version of the extention. Uninstaller could still
stand some work, I have an idea involving CopyFiles but that
will have to wait.
Signed-off-by: Jason Boyer <JBoyer@library.in.gov> Signed-off-by: Bill Erickson <berickxx@gmail.com>
Bill Erickson [Fri, 27 Jan 2017 15:35:11 +0000 (10:35 -0500)]
LP#1646166 Use content_scripts; no declarativeContent
Configure content_scripts in the extension manifest to specify which
sites should receive the content script. This allows us to dictate at
what stage of page loading the content script is inserted.
Code for building a Windows installer executable for Hatch.
The code makes no attempt to install a JRE. It only verifies that a JRE
version 1.8 or above is present. It also does not add the browser
extension to the browser, it only installs the files needed for the
extension to work once added to the browser.
See installer/windows/README.adoc for instructions on building the
Windows installer.
Signed-off-by: Kyle Huckins <khuckins@catalystdevworks.com> Signed-off-by: Bill Erickson <berickxx@gmail.com>
Adds ability to pass configuration data to Hatch via a new
hatch.properties file. Adds (for now) one new property "data.directory"
which overrides the default data storage directory.
Looking ahead to building a jar-based Windows installer, have the Linux
script build and use jar files instead of class files. These jars will
eventually make their way into the Windows installer.