Skip to content
This repository has been archived by the owner on Aug 13, 2020. It is now read-only.

Commit

Permalink
add: script of make zip include exe
Browse files Browse the repository at this point in the history
  • Loading branch information
atoring committed May 13, 2018
1 parent c485548 commit 2f79bfc
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions compile/make_zip.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
@echo off

set git="C:\Program Files\Git\bin\git.exe"

cd ..
%git% archive --format=zip --output=./compile/tmp.zip HEAD
cd compile

mkdir tmp
unzip -d ./tmp/ ./tmp.zip
del /Q tmp.zip

for %%f in (..\dat\*.exe) do copy %%f tmp\dat
for %%f in (..\binfont\*.exe) do copy %%f tmp\binfont
for %%f in (..\lang\*.exe) do copy %%f tmp\lang
for %%f in (..\general\*.exe) do copy %%f tmp\general

set d=%date:/=%
set t=%time:~0,5%
set t=%t::=%
cd tmp
..\zip -9 -r ..\frostpunk_mod_%d%_%t%.zip *.*
cd ..

rd /S /Q tmp

0 comments on commit 2f79bfc

Please sign in to comment.