package script for windows

This commit is contained in:
Roy Qu 2022-01-16 20:50:26 +08:00
parent 5d2c104382
commit b2c94b51e0
3 changed files with 11 additions and 5 deletions

View File

@ -40,11 +40,13 @@ linux: {
win32: { win32: {
!isEmpty(PREFIX) { !isEmpty(PREFIX) {
target.path = $${PREFIX} target.path = $${PREFIX}
QMAKE_SUBSTITUTES += windows/installer-scripts/config.nsh.in QMAKE_SUBSTITUTES += windows/installer-scripts/config.nsh.in
QMAKE_SUBSTITUTES += windows/installer-scripts/config32.nsh.in
resources.path = $${PREFIX} resources.path = $${PREFIX}
resources.files += windows/templates resources.files += windows/templates
resources.files += windows/installer-scripts/config.nsh resources.files += windows/installer-scripts/config.nsh
resources.files += windows/installer-scripts/config32.nsh
resources.files += README.md resources.files += README.md
resources.files += NEWS.md resources.files += NEWS.md
resources.files += LICENSE resources.files += LICENSE

View File

@ -28,12 +28,13 @@ pushd .
cd "${PACKAGE_DIR}" cd "${PACKAGE_DIR}"
cp "${SOURCE_DIR}/windows/installer-scripts/lang.nsh" . cp "${SOURCE_DIR}/windows/installer-scripts/lang.nsh" .
cp "${SOURCE_DIR}/windows/installer-scripts/redpanda-nocompiler.nsi" . cp "${SOURCE_DIR}/windows/installer-scripts/redpanda-i686-nocompiler.nsi" .
"${NSIS}" redpanda-nocompiler.nsi "${NSIS}" redpanda-i686-nocompiler.nsi
rm -f lang.nsh rm -f lang.nsh
rm -f config32.nsh
rm -f config.nsh rm -f config.nsh
rm -f redpanda-nocompiler.nsi rm -f redpanda-i686-nocompiler.nsi
SETUP_NAME=`ls *.Setup.exe` SETUP_NAME=`ls *.Setup.exe`
PORTABLE_NAME=`echo $SETUP_NAME | sed 's/Setup.exe/Portable.7z/'` PORTABLE_NAME=`echo $SETUP_NAME | sed 's/Setup.exe/Portable.7z/'`
@ -43,7 +44,7 @@ popd
echo "Making no-compiler Portable Package..." echo "Making no-compiler Portable Package..."
7z a -mmt8 -mx9 "${PORTABLE_NAME}" "${PACKAGE_DIR}" 7z a -mmt8 -mx9 "${PORTABLE_NAME}" "${PACKAGE_DIR}"
# we need reinstall config.nsh # we need reinstall config32.nsh
pushd . pushd .
cd "${BUILD_DIR}" cd "${BUILD_DIR}"
make install make install
@ -60,6 +61,7 @@ cp "${SOURCE_DIR}/windows/installer-scripts/redpanda-i686.nsi" .
"${NSIS}" redpanda-i686.nsi "${NSIS}" redpanda-i686.nsi
rm -f lang.nsh rm -f lang.nsh
rm -f config32.nsh
rm -f config.nsh rm -f config.nsh
rm -f redpanda-i686.nsi rm -f redpanda-i686.nsi

View File

@ -33,6 +33,7 @@ cp "${SOURCE_DIR}/windows/installer-scripts/redpanda-nocompiler.nsi" .
"${NSIS}" redpanda-nocompiler.nsi "${NSIS}" redpanda-nocompiler.nsi
rm -f lang.nsh rm -f lang.nsh
rm -f config.nsh rm -f config.nsh
rm -f config32.nsh
rm -f redpanda-nocompiler.nsi rm -f redpanda-nocompiler.nsi
SETUP_NAME=`ls *.Setup.exe` SETUP_NAME=`ls *.Setup.exe`
@ -61,6 +62,7 @@ cp "${SOURCE_DIR}/windows/installer-scripts/redpanda-x64.nsi" .
"${NSIS}" redpanda-x64.nsi "${NSIS}" redpanda-x64.nsi
rm -f lang.nsh rm -f lang.nsh
rm -f config.nsh rm -f config.nsh
rm -f config32.nsh
rm -f redpanda-x64.nsi rm -f redpanda-x64.nsi
SETUP_NAME=`ls *.Setup.exe` SETUP_NAME=`ls *.Setup.exe`