Skip to content

Commit 1e8acb2

Browse files
committed
dist: Update pack.bat
Include source codes in the package.
1 parent ca05172 commit 1e8acb2

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

pack.bat

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,25 @@
11
@echo off
22
if "%1"=="" goto usage
3-
setlocal
3+
setlocal DISABLEDELAYEDEXPANSION
44

55
:: Normal version
66
set execfiles=tcdll.tclock tclock.exe tcplayer.exe tcprop.exe tcsntp.exe tctimer.exe
77
set pkgfiles=readme-kt.txt config-kt.txt format-kt.txt readme.html
8+
set srcfiles=source source_all\config.h source_custom\config.h pack.bat make_all.bat prepare_custom.bat
89

9-
rem 7-zip32 a -mx=9 -m0=PPMd source.7z source pack.bat -xr!out -xr!out64 -xr!work -xr!work64 -xr!*.bak -xr!*.old
10-
rem 7-zip32 a -m0=PPMd:o=31:mem=25 source.7z source pack.bat -xr!out -xr!out64 -xr!work -xr!work64 -xr!*.bak -xr!*.old
10+
if not exist pkg mkdir pkg
11+
12+
rem 7-zip32 a -mx=9 -m0=PPMd source.7z %srcfiles% -xr!out -xr!out64 -xr!work -xr!work64 -xr!*.bak -xr!*.old -xr!*.sw? -xr!*~ -xr!*.aps -xr!tags
13+
7-zip32 a -m0=PPMd:o=31:mem=25 source.7z %srcfiles% -xr!out -xr!out64 -xr!work -xr!work64 -xr!*.bak -xr!*.old -xr!*.sw? -xr!*~ -xr!*.aps -xr!tags
14+
move /y source.7z pkg > nul
1115

1216
robocopy source\out pkg\x86 %execfiles% > nul
1317
robocopy source\out64 pkg\x64 %execfiles% > nul
14-
robocopy lang pkg\lang > nul
18+
robocopy lang pkg\lang /xf *~ *.sw? > nul
1519
robocopy . pkg %pkgfiles% > nul
1620

1721
cd pkg
18-
7-zip32 a -mx=9 tclocklight-%1.zip %pkgfiles% lang x86 x64
22+
7-zip32 a -mx=9 tclocklight-%1.zip %pkgfiles% lang x86 x64 source.7z
1923
cd ..
2024

2125

0 commit comments

Comments
 (0)