Add initial distribution packaging script

This commit is contained in:
Tau 2019-11-07 18:18:14 -05:00
parent 0317a48280
commit 7d34d9f915
2 changed files with 35 additions and 0 deletions

1
.gitignore vendored
View File

@ -3,6 +3,7 @@
# Suggested names for build dirs # Suggested names for build dirs
_build32/ _build32/
_build64/ _build64/
_zip/
# External dependencies # External dependencies
subprojects/capnhook subprojects/capnhook

34
mkdist Executable file
View File

@ -0,0 +1,34 @@
#!/bin/sh
set -e
mkdir -p _zip/chuni/DEVICE
cp _build32/subprojects/capnhook/inject/inject.exe \
_build32/aimeio/aimeio.dll \
_build32/chuniio/chuniio.dll \
_build32/chunihook/chunihook.dll \
dist/chuni/segatools.ini \
dist/chuni/start.bat \
_zip/chuni/
cp pki/billing.pub \
pki/ca.crt \
_zip/chuni/DEVICE
mkdir -p _zip/idz/DEVICE
cp _build64/subprojects/capnhook/inject/inject.exe \
_build64/aimeio/aimeio.dll \
_build64/idzio/idzio.dll \
_build64/idzhook/idzhook.dll \
dist/idz/segatools.ini \
dist/idz/start.bat \
_zip/idz/
cp pki/billing.pub \
pki/ca.crt \
_zip/idz/DEVICE
strip _zip/{chuni,idz}/*.{exe,dll}