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

Commit

Permalink
add: compile and make bat
Browse files Browse the repository at this point in the history
  • Loading branch information
atoring committed May 25, 2018
1 parent 740a96c commit bb478ad
Show file tree
Hide file tree
Showing 9 changed files with 40 additions and 0 deletions.
Binary file added compile/bzip2-1.0.5-bin.zip
Binary file not shown.
Binary file added compile/bzip2.dll
Binary file not shown.
14 changes: 14 additions & 0 deletions compile/make_exe.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
@echo off

set pyi="C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\Scripts\pyinstaller.exe"
set bin=frostpunk_mod

call make_ver.bat

cd ..\frostpunk_mod
%pyi% --clean --onefile --name %bin% --windowed --uac-admin main.py
copy /Y dist\*.exe ..\compile
rd /S /Q __pycache__
rd /S /Q build
rd /S /Q dist
del /Q *.spec
6 changes: 6 additions & 0 deletions compile/make_ver.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@echo off

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

%git% show --format="version_str=\"%%cd @%%h\"" --date=format:%%Y%%m%%d.%%H%%M -s>%py%
20 changes: 20 additions & 0 deletions compile/make_zip.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
@echo off

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

%git% show --format=%%cd --date=format:%%Y%%m%%d_%%H%%M -s>tmp
set /p dt=<tmp
del /Q tmp

mkdir tmp
copy %bin%.exe tmp
copy ..\README.md tmp
copy ..\LICENSE tmp
xcopy ..\frostpunk_mod\sysdic tmp\sysdic /I
mkdir tmp\data
copy ..\frostpunk_mod\data\notosanscjksc-medium.otf.binfont.zip tmp\data
cd tmp
..\zip -9 -r ..\frostpunk_mod_%dt%.zip *.*
cd ..
rd /S /Q tmp
Binary file added compile/unzip-5.51-1-bin.zip
Binary file not shown.
Binary file added compile/unzip.exe
Binary file not shown.
Binary file added compile/zip-3.0-bin.zip
Binary file not shown.
Binary file added compile/zip.exe
Binary file not shown.

0 comments on commit bb478ad

Please sign in to comment.