Skip to content

Commit

Permalink
Add packaging scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
kubo committed Dec 6, 2021
1 parent b36c85a commit 6cdd2e6
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
11 changes: 11 additions & 0 deletions packaging/autotools.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#! /bin/sh
set -e
./autogen.sh
mkdir work
cd work
../configure
make dist
mv snzip-*.tar.gz ..
cd ..
rm -rf work

16 changes: 16 additions & 0 deletions packaging/windows.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
@echo off
setlocal enableextensions
for /F "tokens=3" %%F in ('findstr /c:"project(snzip" CMakeLists.txt') do (set VER=%%F)

call :mkpkg 32 Win32
call :mkpkg 64 x64
exit /b

:mkpkg
cmake -G "Visual Studio 16 2019" -A %2 -S . -B build%1
cmake --build build%1 --config Release

mkdir snzip-%VER%-win%1
copy build%1\Release\snzip.exe snzip-%VER%-win%1\snzip.exe
copy build%1\Release\snzip.exe snzip-%VER%-win%1\snunzip.exe
zip -r snzip-%VER%-win%1.zip snzip-%VER%-win%1

0 comments on commit 6cdd2e6

Please sign in to comment.