CBICA / CaPTk

Cancer Imaging Phenomics Toolkit (CaPTk) is a software platform to perform image analysis and predictive modeling tasks. Documentation: https://cbica.github.io/CaPTk
https://www.cbica.upenn.edu/captk
Other
181 stars 64 forks source link

CaPTk installer does not accept "--accept" option #1222

Open MarkBergman-cbica opened 4 years ago

MarkBergman-cbica commented 4 years ago
[bergman@huajiao tmp]$ ./CaPTk_1.8.0.Beta_Installer.bin --help
Makeself version 2.4.0
 1) Getting help or info about ./CaPTk_1.8.0.Beta_Installer.bin :
  ./CaPTk_1.8.0.Beta_Installer.bin --help   Print this message
  ./CaPTk_1.8.0.Beta_Installer.bin --info   Print embedded info : title, default target directory, embedded script ...
  ./CaPTk_1.8.0.Beta_Installer.bin --lsm    Print embedded lsm entry (or no LSM)
  ./CaPTk_1.8.0.Beta_Installer.bin --list   Print the list of files in the archive
  ./CaPTk_1.8.0.Beta_Installer.bin --check  Checks integrity of the archive

 2) Running ./CaPTk_1.8.0.Beta_Installer.bin :
  ./CaPTk_1.8.0.Beta_Installer.bin [options] [--] [additional arguments to embedded script]
  with following options (in that order)
  --confirm             Ask before running embedded script
  --quiet               Do not print anything except error messages
  --accept              Accept the license
  --noexec              Do not run embedded script
  --keep                Do not erase target directory after running
                        the embedded script
  --noprogress          Do not show the progress during the decompression
  --nox11               Do not spawn an xterm
  --nochown             Do not give the extracted files to the current user
  --nodiskspace         Do not check for available disk space
  --target dir          Extract directly to a target directory (absolute or relative)
                        This directory may undergo recursive chown (see --nochown).
  --tar arg1 [arg2 ...] Access the contents of the archive through the tar command
  --                    Following arguments will be passed to the embedded script
[bergman@huajiao tmp]$ ./CaPTk_1.8.0.Beta_Installer.bin --quiet --accept --nox11 
By installing the Cancer and Phenomics Toolkit (CaPTk), the user agrees to the following licenses, which pertain to the code and its different co
nstituents:

1. SBIA Software License - https://www.med.upenn.edu/sbia/software-agreement.html
2. SBIA Non-Commercial Software License (applies to PHI Estimator) - https://www.med.upenn.edu/sbia/software-agreement-non-commercial.html
3. Insight Toolkit License - https://cmake.org/Wiki/ITK/License_Information
4. Visualization Toolkit License - http://www.vtk.org/licensing/
5. Qt Open Source License - https://doc.qt.io/qt-5.10/qtcore-index.html#licenses-and-attributions; our copy can be found at https://github.com/CB
ICA/qt
6. CC Attribution-ShareAlike for SRI24 data - https://creativecommons.org/licenses/by-sa/3.0/us/legalcode 
7. MRIcroGL License - BSD
8. YAML-CPP - MIT License and can be found at https://opensource.org/licenses/MIT
9. Eigen - MPL2 License and can be found at https://www.mozilla.org/en-US/MPL/2.0/
I accept the terms of the licenses above [Y/N] 

Actual Behavior Installation halts, awaiting license confirmation.

Expected Behavior Installation proceeds silently.

sarthakpati commented 2 years ago

Maybe the yes command [ref] is what you want?

AlexanderGetka-cbica commented 2 years ago

The above works for me on my machine. However, in terms of making the installer actually match the stated interface -- our install script doesn't actually show those options, that's the makeself package that contains it. and our install script isn't using the flag from makeself.

This is low priority right now but depending on how long other fixes take I'll try to get this fixed.