Skip to content

Commit 83d9f54

Browse files
committed
Update release scripts a bit
1 parent ed0dde5 commit 83d9f54

File tree

3 files changed

+38
-24
lines changed

3 files changed

+38
-24
lines changed

scripts/static-build.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ function packandcopylinux() {
184184
rm -rf ${WK}/lib
185185
mkdir -p ${WK}/lib
186186
cp ${WK}/bin/libwkhtmltox*.so ${WK}/lib || exit 1
187-
cd ${WK} && tar -c --lzma -f ${BASE}/bin/libwkhtmltox-$1.tar.lzma lib include examples/Makefile examples/pdf_c_api.c
187+
cd ${WK} && tar -c --bzip2 -f ${BASE}/bin/libwkhtmltox-$1.tar.bz2 lib include examples/Makefile examples/pdf_c_api.c examples/image_c_api.c
188188
}
189189

190190

scripts/upload.sh

+23-19
Original file line numberDiff line numberDiff line change
@@ -25,25 +25,29 @@ function ul() {
2525
python googlecode_upload.py -u "$USER" -w "$PASS" -s "$1" -p "wkhtmltopdf" -l "$2" "$3"
2626
}
2727

28-
if ! [ -f "wkhtmltopdf-$1.tar.lzma" ] ||
29-
! [ -f "wkhtmltopdf-$1-static-i386.tar.lzma" ] ||
30-
! [ -f "wkhtmltopdf-$1-static-amd64.tar.lzma" ] ||
31-
! [ -f "wkhtmltox-$1-installer.exe" ] ||
32-
! [ -f "wkhtmltoimage-$1-static-i386.tar.lzma" ] ||
33-
! [ -f "wkhtmltoimage-$1-static-amd64.tar.lzma" ] ||
34-
! [ -f "libwkhtmltox-$1.zip" ] ||
35-
! [ -f "libwkhtmltox-$1-i386.tar.lzma" ] ||
36-
! [ -f "libwkhtmltox-$1-amd64.tar.lzma" ] ; then
37-
echo "File Missing"
38-
exit 1
39-
fi
28+
function checkf() {
29+
if ! [ -f "$1" ] ; then
30+
echo "$1 is missing"
31+
exit 1;
32+
fi
33+
}
34+
35+
checkf "wkhtmltopdf-$1.tar.bz2"
36+
checkf "wkhtmltopdf-$1-static-i386.tar.bz2"
37+
checkf "wkhtmltopdf-$1-static-amd64.tar.bz2"
38+
checkf "wkhtmltox-$1-installer.exe"
39+
checkf "wkhtmltoimage-$1-static-i386.tar.bz2"
40+
checkf "wkhtmltoimage-$1-static-amd64.tar.bz2"
41+
checkf "libwkhtmltox-$1.zip"
42+
checkf "libwkhtmltox-$1-i386.tar.bz2"
43+
checkf "libwkhtmltox-$1-amd64.tar.bz2"
4044

41-
ul "wkhtmltopdf-$1 Source" "Type-Source,OpSys-All,Featured" "wkhtmltopdf-$1.tar.lzma"
42-
ul "wkhtmltopdf-$1 Linux Static Binary (i368)" "Type-Executable,OpSys-Linux,Featured" "wkhtmltopdf-$1-static-i386.tar.lzma"
43-
ul "wkhtmltopdf-$1 Linux Static Binary (amd64)" "Type-Executable,OpSys-Linux,Featured" "wkhtmltopdf-$1-static-amd64.tar.lzma"
45+
ul "wkhtmltopdf-$1 Source" "Type-Source,OpSys-All,Featured" "wkhtmltopdf-$1.tar.bz2"
46+
ul "wkhtmltopdf-$1 Linux Static Binary (i368)" "Type-Executable,OpSys-Linux,Featured" "wkhtmltopdf-$1-static-i386.tar.bz2"
47+
ul "wkhtmltopdf-$1 Linux Static Binary (amd64)" "Type-Executable,OpSys-Linux,Featured" "wkhtmltopdf-$1-static-amd64.tar.bz2"
4448
ul "wkhtmltox-$1 Windows Installer (i368)" "Type-Installer,OpSys-Windows,Featured" "wkhtmltox-$1-installer.exe"
45-
ul "wkhtmltoimage-$1 Linux Static Binary (i368)" "Type-Executable,OpSys-Linux,Featured" "wkhtmltoimage-$1-static-i386.tar.lzma"
46-
ul "wkhtmltoimage-$1 Linux Static Binary (amd64)" "Type-Executable,OpSys-Linux,Featured" "wkhtmltoimage-$1-static-amd64.tar.lzma"
47-
ul "libwkhtmltox-$1 Linux Static Library (i368)" "Type-Archive,OpSys-Linux" "libwkhtmltox-$1-i386.tar.lzma"
48-
ul "libwxhtmltox-$1 Linux Static Library (amd64)" "Type-Archive,OpSys-Linux" "libwkhtmltox-$1-amd64.tar.lzma"
49+
ul "wkhtmltoimage-$1 Linux Static Binary (i368)" "Type-Executable,OpSys-Linux,Featured" "wkhtmltoimage-$1-static-i386.tar.bz2"
50+
ul "wkhtmltoimage-$1 Linux Static Binary (amd64)" "Type-Executable,OpSys-Linux,Featured" "wkhtmltoimage-$1-static-amd64.tar.bz2"
51+
ul "libwkhtmltox-$1 Linux Static Library (i368)" "Type-Archive,OpSys-Linux" "libwkhtmltox-$1-i386.tar.bz2"
52+
ul "libwxhtmltox-$1 Linux Static Library (amd64)" "Type-Archive,OpSys-Linux" "libwkhtmltox-$1-amd64.tar.bz2"
4953
ul "libwkhtmltox-$1 Windows Static Library (i368)" "Type-Archive,OpSys-Windows" "libwkhtmltox-$1.zip"

wkhtmltopdf.nsi.m4

+14-4
Original file line numberDiff line numberDiff line change
@@ -36,20 +36,30 @@ InstallDirRegKey HKCU "Software\wkhtmltopdf" ""
3636
;--------------------------------
3737
;Installer Sections
3838

39-
Section Wkhtmltopdf
39+
Section "Wkhtmltopdf" pdf
4040
SetOutPath "$INSTDIR"
4141
file wkhtmltopdf.exe
4242
SectionEnd
4343

44-
Section Wkhtmltoimage
44+
Section "Wkhtmltoimage" image
4545
SetOutPath "$INSTDIR"
4646
file wkhtmltoimage.exe
4747
SectionEnd
4848

49-
Section \o "Update PATH, WILL BREAK PATH IN VISTA AN WIN7"
49+
Section /o "Modify PATH" mpath
5050
${EnvVarUpdate} $0 "PATH" "A" "HKLM" "$INSTDIR"
5151
SectionEnd
5252

53+
LangString DESC_pdf ${LANG_ENGLISH} "Install wkhtmltopdf"
54+
LangString DESC_image ${LANG_ENGLISH} "Install wkhtmltoimage"
55+
LangString DESC_mpath ${LANG_ENGLISH} "Update PATH, WILL BREAK PATH IN VISTA AN WIN7"
56+
57+
!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
58+
!insertmacro MUI_DESCRIPTION_TEXT ${pdf} $(DESC_pdf)
59+
!insertmacro MUI_DESCRIPTION_TEXT ${image} $(DESC_image)
60+
!insertmacro MUI_DESCRIPTION_TEXT ${mpath} $(DESC_mpath)
61+
!insertmacro MUI_FUNCTION_DESCRIPTION_END
62+
5363
Section
5464
SetOutPath "$INSTDIR"
5565
file libgcc_s_dw2-1.dll
@@ -80,4 +90,4 @@ Section "Uninstall"
8090
Delete "$INSTDIR\uninstall.exe"
8191
RMDir "$INSTDIR"
8292
DeleteRegKey /ifempty HKCU "Software\wkhtmltopdf"
83-
SectionEnd
93+
SectionEnd

0 commit comments

Comments
 (0)