View Single Post
Old 18th May 2022, 19:28   #1
pkonduru
Member
 
Join Date: Jul 2015
Posts: 86
Building on linux , no install.log

Hi All,
We were building an NSIS installer on a linux container using the NSIS logging build(2.46). Everything was working fine till now with the installer generating an install.log file when it is run. We updated our base container image with new JDK and now the installer that is being built is no longer producing the install.log. I don't see how the JDK and NSIS are tied together. This is what I use to build the NSIS in the linux container.

RUN mkdir /tmp/nsis &&\
yum install -y ca-certificates &&\
wget https://jaist.dl.sourceforge.net/pro...sis-3.02.1.zip -P /tmp/nsis/ &&\
wget https://jaist.dl.sourceforge.net/pro....1-src.tar.bz2 -P /tmp/nsis/ &&\
yum install -y scons glibc-devel glibc-devel.i686 &&\
unzip /tmp/nsis/nsis-3.02.1.zip -d /usr/local/ &&\
mv /usr/local/nsis-* /usr/local/nsis &&\
tar -xvf /tmp/nsis/nsis-3.02.1-src.tar.bz2 -C /usr/local/src/ &&\
mv /usr/local/src/nsis-* /usr/local/src/nsis &&\
cd /usr/local/src/nsis &&\
echo "#define NSIS_CONFIG_LOG" >> /usr/local/src/nsis/Source/exehead/config.h &&\
scons SKIPSTUBS=all SKIPPLUGINS=all SKIPUTILS=all SKIPMISC=all NSIS_CONFIG_CONST_DATA_PATH=no PREFIX=/usr/local/nsis/bin install-compiler &&\
ln -s /usr/local/nsis/bin/makensis /usr/local/bin/makensis &&\
yum clean all &&\
rm -rf /var/cache/yum &&\
rm -rf /tmp/*

### we basically add the custom dialogs and plugins from our NSIS logging build here.
COPY 2.46.zip /tmp/
RUN mkdir /usr/local/nsis/p4thirdparty &&\
cd /usr/local/nsis/p4thirdparty &&\
unzip /tmp/2.46.zip &&\
cp -f Plugins/*.dll ../Plugins/x86-ansi/ &&\
cp -f Plugins/x86-ansi/*.dll ../Plugins/x86-ansi/ &&\
cp -rf Examples/* ../Examples/ &&\
cp -rf Stubs/* ../Stubs/ &&\
cp -rf Include/* ../Include/ &&\
cp -rf Contrib/* ../Contrib/ &&\
rm -rf /tmp/* &&\
rm -rf /usr/local/nsis/p4thirdparty
pkonduru is offline   Reply With Quote