Skip to content

Commit

Permalink
make_chm: add tar.xz in addition to 7z archives
Browse files Browse the repository at this point in the history
Close #26
  • Loading branch information
myfreeer committed Dec 31, 2022
1 parent 8c0cf91 commit 787e97e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion make_chm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ sed "s/cppreference\.chm/cppreference-zh-${VERSION}\.chm/" cppreference.hhp > "c
# Compile and package UTF-8 version
"${HHC}" "cppreference-zh-${VERSION}.hhp"
"${_7Z}" a -mx9 "cppreference-zh-${VERSION}-chm-project.7z" "cppreference-zh-${VERSION}.hhp" cppreference.{hhc,hhk} hh{a.dll,c.exe} chmhelp/*
tar caf "cppreference-zh-${VERSION}-chm-project.tar.xz" "cppreference-zh-${VERSION}.hhp" cppreference.{hhc,hhk} hh{a.dll,c.exe} chmhelp/*

# Convert HTML to GBK
mv chmhelp chmhelp1
Expand All @@ -81,4 +82,5 @@ sed "s/cppreference\.chm/cppreference-zh-${VERSION}-gbk\.chm/" cppreference.hhp

# Compile and package GBK version
"${HHC}" "cppreference-zh-${VERSION}-gbk.hhp"
"${_7Z}" a -mx9 "cppreference-zh-${VERSION}-chm-project-gbk.7z" "cppreference-zh-${VERSION}-gbk.hhp" cppreference.{hhc,hhk} hh{a.dll,c.exe} chmhelp/*
"${_7Z}" a -mx9 "cppreference-zh-${VERSION}-chm-project-gbk.7z" "cppreference-zh-${VERSION}-gbk.hhp" cppreference.{hhc,hhk} hh{a.dll,c.exe} chmhelp/*
tar caf "cppreference-zh-${VERSION}-chm-project-gbk.tar.xz" "cppreference-zh-${VERSION}-gbk.hhp" cppreference.{hhc,hhk} hh{a.dll,c.exe} chmhelp/*

0 comments on commit 787e97e

Please sign in to comment.